mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-31 02:28:35 +08:00
Add visibility for all class elements (#20557)
This commit is contained in:
@ -83,16 +83,16 @@ class Model extends Component implements StaticInstanceInterface, IteratorAggreg
|
||||
/**
|
||||
* The name of the default scenario.
|
||||
*/
|
||||
const SCENARIO_DEFAULT = 'default';
|
||||
public const SCENARIO_DEFAULT = 'default';
|
||||
/**
|
||||
* @event ModelEvent an event raised at the beginning of [[validate()]]. You may set
|
||||
* [[ModelEvent::isValid]] to be false to stop the validation.
|
||||
*/
|
||||
const EVENT_BEFORE_VALIDATE = 'beforeValidate';
|
||||
public const EVENT_BEFORE_VALIDATE = 'beforeValidate';
|
||||
/**
|
||||
* @event Event an event raised at the end of [[validate()]]
|
||||
*/
|
||||
const EVENT_AFTER_VALIDATE = 'afterValidate';
|
||||
public const EVENT_AFTER_VALIDATE = 'afterValidate';
|
||||
|
||||
/**
|
||||
* @var array validation errors (attribute name => array of errors)
|
||||
|
||||
Reference in New Issue
Block a user