Class Socialveo\Core\validation\validator\Callback

InheritanceSocialveo\Core\validation\validator\Callback
ImplementsPhalcon\Validation\ValidatorInterface

Class Callback

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Callback constructor. Socialveo\Core\validation\validator\Callback
getOption() Returns an option in the validator's options Returns null if the option hasn't set Socialveo\Core\validation\validator\Callback
hasOption() Checks if an option is defined Socialveo\Core\validation\validator\Callback
isSetOption() Checks if an option is defined Socialveo\Core\validation\validator\Callback
validate() Executes the validation Socialveo\Core\validation\validator\Callback

Property Details

$callback public property
public callable $callback null

Method Details

__construct() public method

Callback constructor.

public void __construct ( array $attributes = [] )
$attributes array
getOption() public method

Returns an option in the validator's options Returns null if the option hasn't set

public mixed getOption ( $key, $defaultValue null )
$key string
$defaultValue mixed
hasOption() public method

Checks if an option is defined

public boolean hasOption ( $key )
$key string
isSetOption() public method
Deprecated since 2.1.0

Checks if an option is defined

See also \Phalcon\Validation\Validator::hasOption().

public boolean isSetOption ( $key )
$key string
validate() public method

Executes the validation

public Phalcon\Validation\Message\Group validate ( Phalcon\Validation $validation, $attribute )
$validation Phalcon\Validation
$attribute string