PHP Class Intervention\Validation\Validator

Datei anzeigen Open project: intervention/validation Class Usage Examples

Public Methods

Method Description
isAlphaSpace ( mixed $value ) : boolean Checks if value only has alphabetic characters and/or spaces
isBic ( mixed $value ) : boolean Checks if given value is valid International Bank Account Number (IBAN).
isCreditcard ( mixed $value ) : boolean Checks if value is valid creditcard number.
isHexcolor ( mixed $value ) : boolean Checks if value is valid hexadecimal color code.
isHtmlclean ( mixed $value ) : boolean Checks if value is free of HTML code
isIban ( mixed $value ) : boolean Checks if given value is valid International Bank Account Number (IBAN).
isIsbn ( mixed $value ) : boolean Checks if given value is valid International Standard Book Number (ISBN).
isIsin ( mixed $value ) : boolean Checks if given value is International Securities Identification Number (ISIN)
isIsodate ( mixed $value ) : boolean Checks if given value is date in ISO 8601 format.
isPassword ( mixed $value ) : boolean Checks if password has certain strength
isUsername ( mixed $value ) : boolean Checks if value is Username

Private Methods

Method Description
getIbanLength ( string $iban ) : integer Returns the designated length of IBAN for given IBAN

Method Details

isAlphaSpace() public static method

Checks if value only has alphabetic characters and/or spaces
public static isAlphaSpace ( mixed $value ) : boolean
$value mixed
return boolean

isBic() public static method

Checks if given value is valid International Bank Account Number (IBAN).
public static isBic ( mixed $value ) : boolean
$value mixed
return boolean

isCreditcard() public static method

Checks if value is valid creditcard number.
public static isCreditcard ( mixed $value ) : boolean
$value mixed
return boolean

isHexcolor() public static method

Checks if value is valid hexadecimal color code.
public static isHexcolor ( mixed $value ) : boolean
$value mixed
return boolean

isHtmlclean() public static method

Checks if value is free of HTML code
public static isHtmlclean ( mixed $value ) : boolean
$value mixed
return boolean

isIban() public static method

Checks if given value is valid International Bank Account Number (IBAN).
public static isIban ( mixed $value ) : boolean
$value mixed
return boolean

isIsbn() public static method

Checks if given value is valid International Standard Book Number (ISBN).
public static isIsbn ( mixed $value ) : boolean
$value mixed
return boolean

isIsin() public static method

Checks if given value is International Securities Identification Number (ISIN)
public static isIsin ( mixed $value ) : boolean
$value mixed
return boolean

isIsodate() public static method

Checks if given value is date in ISO 8601 format.
public static isIsodate ( mixed $value ) : boolean
$value mixed
return boolean

isPassword() public static method

Checks if password has certain strength
public static isPassword ( mixed $value ) : boolean
$value mixed
return boolean

isUsername() public static method

Checks if value is Username
public static isUsername ( mixed $value ) : boolean
$value mixed
return boolean