Example #1
0
 /**
  * Turn this item into an array
  *
  * @return array
  */
 public function toArray()
 {
     $arr = parent::toArray();
     $arr['date_format'] = $this->date_format;
     $arr['time_format'] = $this->time_format;
     return $arr;
 }
Example #2
0
 /**
  * Turn this item into an array
  *
  * @return array
  */
 public function toArray()
 {
     $arr = parent::toArray();
     $arr['table'] = $this->table;
     $arr['column'] = $this->column;
     $arr['foreignKey'] = $this->foreignKey;
     $arr['name_field'] = $this->nameField;
     $arr['options'] = $this->options;
     $arr['selfRelationship'] = $this->selfRelationship;
     $arr['autocomplete'] = $this->autocomplete;
     $arr['num_options'] = $this->numOptions;
     $arr['search_fields'] = $this->searchFields;
     $arr['constraints'] = $this->constraints;
     return $arr;
 }
Example #3
0
 /**
  * Turn this item into an array
  *
  * @return array
  */
 public function toArray()
 {
     $arr = parent::toArray();
     $arr['location'] = $this->location;
     $arr['size_limit'] = $this->sizeLimit;
     $arr['upload_url'] = $this->uploadUrl;
     return $arr;
 }