db\BaseActiveRecord getAttribute()

getAttribute() public method

Returns the named attribute value.

If this record is the result of a query and the attribute is not loaded, null will be returned.

See also hasAttribute().

public mixed getAttribute ( $name )
$name string

The attribute name

return mixed

The attribute value. null if the attribute is not set or does not exist.

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

Please login to continue.