PHP Class Validation, spaghettiphp

ファイルを表示 Open project: spaghettiphp/spaghettiphp Class Usage Examples

Public Methods

Method Description
alphanumeric ( $value )
between ( $value, $min, $max )
blank ( $value )
boolean ( $value )
comparison ( $value1, $operator, $value2 )
creditCard ( $value )
date ( $value )
decimal ( $value, $places = null )
email ( $value )
equal ( $value, $compare )
inList ( $value, $list )
ip ( $value )
maxLength ( $value, $length )
minLength ( $value, $length )
multiple ( $values, $list, $min = null, $max = null )
notEmpty ( $value )
numeric ( $value )
range ( $value, $lower = null, $upper = null )
regex ( $value, $regex )
time ( $value )
url ( $value )

Method Details

alphanumeric() public static method

public static alphanumeric ( $value )

between() public static method

public static between ( $value, $min, $max )

blank() public static method

public static blank ( $value )

boolean() public static method

public static boolean ( $value )

comparison() public static method

public static comparison ( $value1, $operator, $value2 )

creditCard() public static method

public static creditCard ( $value )

date() public static method

public static date ( $value )

decimal() public static method

public static decimal ( $value, $places = null )

email() public static method

public static email ( $value )

equal() public static method

public static equal ( $value, $compare )

inList() public static method

public static inList ( $value, $list )

ip() public static method

public static ip ( $value )

maxLength() public static method

public static maxLength ( $value, $length )

minLength() public static method

public static minLength ( $value, $length )

multiple() public static method

public static multiple ( $values, $list, $min = null, $max = null )

notEmpty() public static method

public static notEmpty ( $value )

numeric() public static method

public static numeric ( $value )

range() public static method

public static range ( $value, $lower = null, $upper = null )

regex() public method

public regex ( $value, $regex )

time() public static method

public static time ( $value )

url() public static method

public static url ( $value )