PHP Class Ouzo\Validatable

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

Protected Properties

Property Type Description
$_errorFields
$_errors

Public Methods

Method Description
getErrorFields ( )
getErrorObjects ( )
getErrors ( )
isValid ( )
validate ( )
validateAssociated ( Validatable $validatable )
validateAssociatedCollection ( $validatables )
validateDateTime ( $value, $errorMessage, $errorField = null )
validateEmpty ( $value, $errorMessage, $errorField = null )
validateNotBlank ( $value, $errorMessage, $errorField = null )
validateNotEmpty ( $value, $errorMessage, $errorField = null )
validateStringMaxLength ( $value, $maxLength, $errorMessage, $errorField = null )
validateTrue ( $value, $errorMessage, $errorField = null )
validateUnique ( array $values, $errorMessage, $errorField = null )

Protected Methods

Method Description
error ( $error, $code )
errors ( array $errors, $code )

Method Details

error() protected method

protected error ( $error, $code )

errors() protected method

protected errors ( array $errors, $code )
$errors array

getErrorFields() public method

public getErrorFields ( )

getErrorObjects() public method

public getErrorObjects ( )

getErrors() public method

public getErrors ( )

isValid() public method

public isValid ( )

validate() public method

public validate ( )

validateAssociated() public method

public validateAssociated ( Validatable $validatable )
$validatable Validatable

validateAssociatedCollection() public method

public validateAssociatedCollection ( $validatables )

validateDateTime() public method

public validateDateTime ( $value, $errorMessage, $errorField = null )

validateEmpty() public method

public validateEmpty ( $value, $errorMessage, $errorField = null )

validateNotBlank() public method

public validateNotBlank ( $value, $errorMessage, $errorField = null )

validateNotEmpty() public method

public validateNotEmpty ( $value, $errorMessage, $errorField = null )

validateStringMaxLength() public method

public validateStringMaxLength ( $value, $maxLength, $errorMessage, $errorField = null )

validateTrue() public method

public validateTrue ( $value, $errorMessage, $errorField = null )

validateUnique() public method

public validateUnique ( array $values, $errorMessage, $errorField = null )
$values array

Property Details

$_errorFields protected_oe property

protected $_errorFields

$_errors protected_oe property

protected $_errors