Final Class Yiisoft\FormModel\Attribute\Safe
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
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\ |
|
| getName() | Yiisoft\ |
|
| validate() | Yiisoft\ |
Method Details
| public \ |
public function getHandler(): RuleHandlerInterface
{
return $this;
}
| public \ | ||
| $value | mixed | |
| $rule | object | |
| $context | \ |
|
public function validate(mixed $value, object $rule, ValidationContext $context): Result
{
return new Result();
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.