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 FormHydrator::populate(), FormHydrator::populateAndValidate(), FormHydrator::populateFromPost(), and 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 getHandler( ): \Yiisoft\Validator\RuleHandlerInterface |
public function getHandler(): RuleHandlerInterface
{
return $this;
}
| public validate( mixed $value, object $rule, \Yiisoft\Validator\ValidationContext $context ): \Yiisoft\Validator\Result | ||
| $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.