updateAttributes() public method
Updates the specified attributes.
This method is a shortcut to update() when data validation is not needed and only a small set attributes need to be updated.
You may specify the attributes to be updated as name list or name-value pairs. If the latter, the corresponding attribute values will be modified accordingly. The method will then save the specified attributes into database.
Note that this method will not perform data validation and will not trigger events.
public integer updateAttributes ( $attributes ) | ||
---|---|---|
$attributes | array |
The attributes (names or name-value pairs) to be updated |
return | integer |
The number of rows affected. |
Please login to continue.