Class Socialveo\Core\validation\validator\Exists

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

Class Exists

Public Methods

Hide inherited methods

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

Property Details

$className public property
public string $className null
$column public property
public string $column null
$message public property
public string $message null

Method Details

__construct() public method

Exists 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 boolean validate ( Phalcon\Validation $validation, $attribute )
$validation Phalcon\Validation
$attribute string