/** * Creates the model * * @return \MUtil_Model_ModelAbstract */ protected function createModel() { if (!$this->model instanceof RoundModel) { $this->model = $this->trackEngine->getRoundModel(false, 'index'); } // Now add the joins so we can sort on the real name // $this->model->addTable('gems__surveys', array('gro_id_survey' => 'gsu_id_survey')); // $this->model->set('gsu_survey_name', $this->model->get('gro_id_survey')); return $this->model; }
private function getRepeater($trackId) { if (!$this->trackEngine instanceof \Gems_Tracker_Engine_TrackEngineInterface) { $this->trackEngine = $this->loader->getTracker()->getTrackEngine($trackId); } $roundModel = $this->trackEngine->getRoundModel(true, null); return $roundModel->loadRepeatable(array('gro_id_track' => $trackId, 'gro_active' => 1)); }
/** * Creates the model * * @return \MUtil_Model_ModelAbstract */ protected function createModel() { return $this->trackEngine->getRoundModel(true, $this->createData ? 'create' : 'edit'); }
/** * Creates the model * * @return \MUtil_Model_ModelAbstract */ protected function createModel() { return $this->trackEngine->getRoundModel(true, 'show'); }