mongodb\file\ActiveRecord attributes()

attributes() public method

Returns the list of all attribute names of the model.

This method could be overridden by child classes to define available attributes. Note: all attributes defined in base Active Record class should be always present in returned array. For example:

public function attributes()
{
    return array_merge(
        parent::attributes(),
        ['tags', 'status']
    );
}
public array attributes ( )
return array

List of attribute names.

doc_Yii
2016-10-30 17:08:15
Comments
Leave a Comment

Please login to continue.