behaviors\TimestampBehavior getValue()

getValue() protected method

Returns the value for the current attributes.

This method is called by evaluateAttributes(). Its return value will be assigned to the attributes corresponding to the triggering event.

In case, when the $value is null, the result of the PHP function time() will be used as value.

protected mixed getValue ( $event )
$event yii\base\Event

The event that triggers the current attribute updating.

return mixed

The attribute value

doc_Yii
2016-10-30 16:52:54
Comments
Leave a Comment

Please login to continue.