/** * Creates the model * * @return \MUtil_Model_ModelAbstract */ protected function createModel() { $model = parent::createModel(); $translated = $this->util->getTranslated(); $model->set('calc_used_date', 'formatFunction', $translated->formatDateNever, 'tdClass', 'date'); $model->set('gto_changed', 'dateFormat', 'dd-MM-yyyy HH:mm:ss', 'tdClass', 'date'); return $model; }
public function createModel() { $model = parent::createModel(); if (!$model->has('forgroup')) { $model->addColumn('gems__groups.ggp_name', 'forgroup'); } return $model; }