validators\Validator isActive()

isActive() public method

Returns a value indicating whether the validator is active for the given scenario and attribute.

A validator is active if

  • the validator's on property is empty, or
  • the validator's on property contains the specified scenario
public boolean isActive ( $scenario )
$scenario string

Scenario name

return boolean

Whether the validator applies to the specified scenario.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.