public getAttributes ( array $names = null, array $except = [] ) : array | ||
$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). |