base\DynamicModel __unset()

__unset() public method Sets a component property to be null. This method will check in the following order and act accordingly: a property defined by a setter: set the property value to be null a property of a behavior: set the property value to be null Do not call this method directly as it is a PHP magic method that will be implicitly called when executing unset($component->property). public void __unset ( $name )$name string The property name throws yii\base\InvalidCallException

base\DynamicModel __set()

__set() public method Sets the value of a component property. This method will check in the following order and act accordingly: a property defined by a setter: set the property value an event in the format of "on xyz": attach the handler to the event "xyz" a behavior in the format of "as xyz": attach the behavior named as "xyz" a property of a behavior: set the behavior property value Do not call this method directly as it is a PHP magic method that will be implicitly called when executing

base\DynamicModel __isset()

__isset() public method Checks if a property is set, i.e. defined and not null. This method will check in the following order and act accordingly: a property defined by a setter: return whether the property is set a property of a behavior: return whether the property is set return false for non existing properties Do not call this method directly as it is a PHP magic method that will be implicitly called when executing isset($component->property). public boolean __isset ( $name )$name

base\DynamicModel __get()

__get() public method Returns the value of a component property. This method will check in the following order and act accordingly: a property defined by a getter: return the getter result a property of a behavior: return the behavior property value Do not call this method directly as it is a PHP magic method that will be implicitly called when executing $value = $component->property;. public mixed __get ( $name )$name string The property name return mixed The property value or the

base\DynamicModel __construct()

__construct() public method Constructors. public void __construct ( array $attributes = [], $config = [] )$attributes array The dynamic attributes (name-value pairs, or names) being defined $config array The configuration array to be applied to this object.

base\DynamicModel validateData()

validateData() public static method Validates the given data with the specified validation rules. This method will create a DynamicModel instance, populate it with the data to be validated, create the specified validation rules, and then validate the data using these rules. public static static validateData ( array $data, $rules = [] )$data array The data (name-value pairs) to be validated $rules array The validation rules. Please refer to yii\base\Model::rules() on the format of this

base\DynamicModel undefineAttribute()

undefineAttribute() public method Undefines an attribute. public void undefineAttribute ( $name )$name string The attribute name

base\DynamicModel defineAttribute()

defineAttribute() public method Defines an attribute. public void defineAttribute ( $name, $value = null )$name string The attribute name $value mixed The attribute value

base\DynamicModel attributes()

attributes() public method Returns the list of attribute names. By default, this method returns all public non-static properties of the class. You may override this method to change the default behavior. public array attributes ( )return array List of attribute names.

base\DynamicModel addRule()

addRule() public method Adds a validation rule to this model. You can also directly manipulate $validators to add or remove validation rules. This method provides a shortcut. public $this addRule ( $attributes, $validator, $options = [] )$attributes string|array The attribute(s) to be validated by the rule $validator mixed The validator for the rule.This can be a built-in validator name, a method name of the model class, an anonymous function, or a validator class name. $options arr