base\Model setAttributes()

setAttributes() public method

Sets the attribute values in a massive way.

See also:

public void setAttributes ( $values, $safeOnly = true )
$values array

Attribute values (name => value) to be assigned to the model.

$safeOnly boolean

Whether the assignments should only be done to the safe attributes. A safe attribute is one that is associated with a validation rule in the current $scenario.

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

Please login to continue.