__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 |
if the property is read only. |
Please login to continue.