Exemplo n.º 1
0
 public function fields()
 {
     if ($this->_fields !== NULL) {
         return $this->_fields;
     }
     $this->_fields = parent::fields();
     $fields = DataSource_Hybrid_Field_Factory::get_section_fields($this->_section->id());
     foreach ($fields as $key => $field) {
         $this->_fields[$field->name] = array('name' => $field->header, 'visible' => (bool) $field->in_headline, 'db_name' => 'ds.' . $field->name, 'searchable' => $field->is_searchable());
     }
     $this->_fields['created_on'] = array('name' => 'Date of creation', 'width' => 150, 'class' => 'text-right text-muted text-sm', 'visible' => TRUE, 'searchable' => FALSE);
     return $this->_fields;
 }