base\Model getAttributes()

getAttributes() public method

Returns attribute values.

public array getAttributes ( $names = null, $except = [] )
$names array

List of attributes whose value needs to be returned. Defaults to null, meaning all attributes listed in attributes() will be returned. If it is an array, only the attributes in the array will be returned.

$except array

List of attributes whose value should NOT be returned.

return array

Attribute values (name => value).

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

Please login to continue.