Example #1
0
 protected function _init()
 {
     $this->_type = Application_Model_Models_Container::TYPE_CODE;
     parent::_init();
     $this->_cacheId = $this->_name . $this->_pageId;
     $this->_cacheable = false;
 }
Example #2
0
 protected function _init()
 {
     $this->_readonly = false;
     if (end($this->_options) == self::OPTION_READONLY) {
         $this->_readonly = true;
         unset($this->_options[array_search(self::OPTION_READONLY, $this->_options)]);
     }
     if (in_array('static', $this->_options)) {
         $this->_type = Application_Model_Models_Container::TYPE_PREPOPSTATIC;
         unset($this->_options[array_search('static', $this->_options)]);
     } else {
         $this->_type = Application_Model_Models_Container::TYPE_PREPOP;
     }
     parent::_init();
     $this->_prepopName = array_shift($this->_options);
     $this->_view = new Zend_View(array('scriptPath' => __DIR__ . '/views'));
     $this->_view->setHelperPath(APPLICATION_PATH . '/views/helpers/');
     $this->_view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $this->_view->prepopName = $this->_prepopName;
     $this->_view->websiteUrl = Zend_Controller_Action_HelperBroker::getStaticHelper('website')->getUrl();
     $this->_view->commonOptions = array('pageId' => $this->_pageId, 'containerType' => $this->_type, 'containerName' => $this->_name);
 }
Example #3
0
 protected function _init()
 {
     $this->_type = isset($this->_options[1]) && $this->_options[1] == 'static' ? Application_Model_Models_Container::TYPE_STATICCONTENT : Application_Model_Models_Container::TYPE_REGULARCONTENT;
     parent::_init();
 }