/** * Creates the model * * @return \MUtil_Model_ModelAbstract */ protected function createModel() { if (!$this->model instanceof LogModel) { $this->model = $this->loader->getModels()->createLogModel(); $this->model->applyDetailSettings(); } return $this->model; }
/** * Adds rows from the model to the bridge that creates the browse table. * * Overrule this function to add different columns to the browse table, without * having to recode the core table building code. * * @param \MUtil_Model_Bridge_VerticalTableBridge $bridge * @param \MUtil_Model_ModelAbstract $model * @return void * / protected function addShowTableRows(\MUtil_Model_Bridge_VerticalTableBridge $bridge, \MUtil_Model_ModelAbstract $model) { parent::addShowTableRows($bridge, $model); } /** * Creates the model * * @return \MUtil_Model_ModelAbstract */ protected function createModel() { if (!$this->model instanceof \Gems_Model_AppointmentModel) { $this->model = $this->loader->getModels()->createAppointmentModel(); $this->model->applyDetailSettings(); } $this->model->set('gap_admission_time', 'formatFunction', array($this, 'displayDate')); $this->model->set('gap_discharge_time', 'formatFunction', array($this, 'displayDate')); return $this->model; }