db\BaseActiveRecord getOldAttribute()

getOldAttribute() public method

Returns the old value of the named attribute.

If this record is the result of a query and the attribute is not loaded, null will be returned.

See also hasAttribute().

public mixed getOldAttribute ( $name )
$name string

The attribute name

return mixed

The old attribute value. null if the attribute is not loaded before or does not exist.

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

Please login to continue.