attributes() public method

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: php public function attributes() { return array_merge( parent::attributes(), ['tags', 'status'] ); }
public attributes ( ) : array
return array list of attribute names.
Esempio n. 1
0
 public function attributes()
 {
     return array_merge(parent::attributes(), ['ownerId', 'contentType']);
 }
Esempio n. 2
0
 public function attributes()
 {
     return array_merge(parent::attributes(), ['mimeType']);
 }
Esempio n. 3
0
 public function attributes()
 {
     return array_merge(parent::attributes(), ['filename', 'metadata', 'metadatanew', 'uploadDate', 'groups', 'onlineStatus', 'updated_by', 'updated_at']);
 }
 public function attributes()
 {
     return array_merge(parent::attributes(), ['userId', 'contentType', 'description']);
 }
Esempio n. 5
0
 public function attributes()
 {
     return array_merge(parent::attributes(), ['filesize', 'filetype']);
 }