db\BaseActiveRecord getDirtyAttributes()

getDirtyAttributes() public method

Returns the attribute values that have been modified since they are loaded or saved most recently.

The comparison of new and old values is made for identical values using ===.

public array getDirtyAttributes ( $names = null )
$names string[]|null

The names of the attributes whose values may be returned if they are changed recently. If null, attributes() will be used.

return array

The changed attribute values (name-value pairs)

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

Please login to continue.