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) |
Please login to continue.