/** * Setup module. Check privileges. */ public function init() { parent::init(); // Highlight menu entries. if (true === Opus_Security_Realm::getInstance()->checkModule('admin')) { $this->getHelper('MainMenu')->setActive('admin'); } else { $this->getHelper('MainMenu')->setActive('review'); } $this->loggedUser = new Publish_Model_LoggedUser(); $this->view->title = $this->view->translate('review_index_title'); }
/** * Initializes controller. */ public function init() { parent::init(); $this->__documentsHelper = $this->_helper->getHelper('Documents'); $this->__workflowHelper = $this->_helper->getHelper('Workflow'); $config = Zend_Registry::get('Zend_Config'); if (isset($config->confirmation->document->statechange->enabled)) { $this->__confirmChanges = $config->confirmation->document->statechange->enabled == 1 ? true : false; } else { $this->__confirmChanges = true; } }
/** * Initializes controller. */ public function init() { parent::init(); $config = Zend_Registry::get('Zend_Config'); if (!isset($config->enrichmentkey->protected->modules)) { throw new Opus_Exception("config key 'enrichmentkey.protected.modules' is not defined in config file"); } foreach (explode(',', $config->enrichmentkey->protected->modules) as $protectedEnrichmentkey) { array_push($this->protectedEnrichmentkeys, $protectedEnrichmentkey); } if (!isset($config->enrichmentkey->protected->migration)) { throw new Opus_Exception("config key 'enrichmentkey.protected.migration' is not defined in config file"); } foreach (explode(',', $config->enrichmentkey->protected->migration) as $protectedEnrichmentkey) { array_push($this->protectedEnrichmentkeys, $protectedEnrichmentkey); } }
public function init() { parent::init(); $this->model = new Admin_Model_IndexMaintenance($this->_logger); // TODO features will be enabled in later version $this->view->disabledFeatureFulltextExtractionCheck = true; // TODO OPUSVIER-2955 $this->view->disabledFeatureIndexOptimization = true; // TODO OPUSVIER-2956 if ($this->model->getFeatureDisabled()) { $this->view->featureDisabled = true; } else { $this->view->allowConsistencyCheck = $this->model->allowConsistencyCheck(); $this->view->allowFulltextExtractionCheck = $this->model->allowFulltextExtractionCheck(); $this->view->allowIndexOptimization = $this->model->allowIndexOptimization(); } }
public function init() { parent::init(); $this->_config = Zend_Registry::get("Zend_Config"); if (isset($this->_config->admin->documents->linkToAuthorSearch)) { $this->view->linkToAuthorSearch = $this->_config->admin->documents->linkToAuthorSearch; } else { $this->view->linkToAuthorSearch = 0; } if (isset($this->_config->admin->documents->maxDocsDefault)) { $this->_maxDocsDefault = $this->_config->admin->documents->maxDocsDefault; } else { $this->_maxDocsDefault = 10; } if (isset($this->_config->admin->documents->defaultview)) { $default = $this->_config->admin->documents->defaultview; if (!in_array($default, $this->docOptions)) { $this->getLogger()->err("Option 'admin.documents.defaultview' hat ungegueltigen Wert '{$default}'."); } $this->_stateOptionDefault = $default; } }
/** * Setup theme path * * @return void */ public function init() { parent::init(); }
/** * Initializes controller. */ public function init() { parent::init(); $this->documentsHelper = $this->_helper->getHelper('Documents'); }
public function init() { parent::init(); $this->facetMenu = new Solrsearch_Model_FacetMenu(); $this->_helper->mainMenu('search'); }
public function init() { parent::init(); $this->statisticsModel = new Admin_Model_Statistics(); }
/** * Common init function. */ public function init() { parent::init(); // $this->_helper->layout->setLayout('client-admin-default'); }
public function init() { parent::init(); $this->_helper->mainMenu('browsing'); }
public function init() { parent::init(); $this->documentTypesHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('DocumentTypes'); }
public function init() { $this->session = new Zend_Session_Namespace('Publish'); parent::init(); }
/** * Initialisiert den Controller. */ public function init() { parent::init(); $this->loadDefaultMessages(); }