Final Class Yiisoft\FormModel\Attribute\Safe
| Inheritance | Yiisoft\FormModel\Attribute\Safe |
|---|---|
| Implements | Yiisoft\Validator\RuleHandlerInterface, Yiisoft\Validator\RuleInterface |
Safe validation rule marks a model property as safe for filling with {@see FormHydrator::populate()}, {@see FormHydrator::populateAndValidate()}, {@see FormHydrator::populateFromPost()}, and {@see FormHydrator::populateFromPostAndValidate()}.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getHandler() | Yiisoft\FormModel\Attribute\Safe | |
| getName() | Yiisoft\FormModel\Attribute\Safe | |
| validate() | Yiisoft\FormModel\Attribute\Safe |
Method Details
| public \Yiisoft\Validator\RuleHandlerInterface getHandler ( ) |
public function getHandler(): RuleHandlerInterface
{
return $this;
}
| public \Yiisoft\Validator\Result validate ( mixed $value, object $rule, \Yiisoft\Validator\ValidationContext $context ) | ||
| $value | mixed | |
| $rule | object | |
| $context | \Yiisoft\Validator\ValidationContext | |
public function validate(mixed $value, object $rule, ValidationContext $context): Result
{
return new Result();
}
Signup or Login in order to comment.