verify

API default verify Class for Parameter validation

package

SYSTEM\API

Methods

Verify All - everything is allowed

ALL(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify ARY - array check

ARY(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify BOOL - allow booleans

BOOL(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify DATE - string parseable as date

DATE(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify EMAIL - verify email

EMAIL(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify FLOAT - every float value

FLOAT(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify INT - all integers

INT(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify JSON - JSON format check

JSON(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify LANG - verify supported languages

LANG(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify RESULT - verify possible resulttypes

RESULT(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify STRING - allow every string - thats all

STRING(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify TIMEUNIX - unixtimestamp number

TIMEUNIX(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify UINT - Positive Integer excluding 0

UINT(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type

Verify UINT0 - Positive Integer including 0

UINT0(mixed $param) : boolean
static

Arguments

$param

mixed

Input Paramter

Response

boolean

Returns boolean if the Value matches the type