behaviors\BlameableBehavior 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 property is null, the value of Yii::$app->user->id will be used as the 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:50
Comments
Leave a Comment

Please login to continue.