public function afterRegistry() { parent::afterRegistry(); // Make sure we have at least some default data if (empty($this->_data)) { $this->_data = $this->_getDefaults(); } }
/** * Called after the check that all required registry values * have been set correctly has run. * * @return void */ public function afterRegistry() { parent::afterRegistry(); // Load the pdf class from the project settings if available if (isset($this->project->export) && isset($this->project->export['pdfExportCommand'])) { $this->_pdfExportCommand = $this->project->export['pdfExportCommand']; } }
/** * Should be called after answering the request to allow the Target * to check if all required registry values have been set correctly. * * @return boolean False if required are missing. */ public function checkRegistryRequestsAnswers() { if ($this->cache) { $cacheId = $this->_getCacheId(); $this->_data = $this->cache->load($cacheId); } else { $cacheId = false; } if (!$this->_data) { $this->_data = $this->loadData($this->_id); if ($cacheId) { $this->cache->save($this->_data, $cacheId, $this->_cacheTags); } } // \MUtil_Echo::track($this->_data); return is_array($this->_data) && parent::checkRegistryRequestsAnswers(); }
/** * Called after the check that all required registry values * have been set correctly has run. * * @return void */ public function afterRegistry() { parent::afterRegistry(); $this->model = $this->loader->getModels()->getRespondentModel(true); if ($this->addLoginCheck) { $this->model->addLoginCheck(); } // Load the data $this->refresh(); }