db\BaseActiveRecord isAttributeChanged()

isAttributeChanged() public method

Returns a value indicating whether the named attribute has been changed.

public boolean isAttributeChanged ( $name, $identical = true )
$name string

The name of the attribute.

$identical boolean

Whether the comparison of new and old value is made for identical values using ===, defaults to true. Otherwise == is used for comparison. This parameter is available since version 2.0.4.

return boolean

Whether the attribute has been changed

doc_Yii
2016-10-30 16:56:50
Comments
Leave a Comment

Please login to continue.