Exemplo n.º 1
0
 public function init($options = null)
 {
     parent::init();
     if ($this->_getParam('catID')) {
         $this->_categoryID = $this->_getParam('catID');
     }
 }
Exemplo n.º 2
0
 public function init()
 {
     parent::init();
     $dataImagePath = "../../" . $this->_config->document_root . "/data/images/";
     //        $this->_catalogImageFolder = $dataImagePath
     //                                        . $this->_moduleTitle . "/";
     $this->_imageFolder = $dataImagePath . $this->_moduleTitle . "/" . $this->_name . "/";
     $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/" . $this->_name . "/";
 }
Exemplo n.º 3
0
 /**
  * Initialize object.
  * Initialize some specific parameters for file management.
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     $dataPath = $_SERVER['DOCUMENT_ROOT'] . Zend_Registry::get("www_root") . "/data/";
     $this->_exportFilesFolder = $dataPath . "files/" . $this->_moduleTitle . "/" . "export/";
     $this->_importFilesFolder = $dataPath . "files/" . $this->_moduleTitle . "/" . "import/";
     $this->_imageFolder = $dataPath . "images/" . $this->_moduleTitle . "/";
     $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/";
     $this->view->assign('interval', $this->_interval);
     set_time_limit(180);
 }
Exemplo n.º 4
0
 public function init()
 {
     parent::init();
     $dataImagePath = "../../" . $this->_config->document_root . "/data/images/";
     //        $this->_catalogImageFolder = $dataImagePath
     //                                        . $this->_moduleTitle . "/";
     $this->_imagesFolder = $dataImagePath . $this->_moduleTitle . "/" . $this->_name . "/";
     $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/" . $this->_name . "/";
     $this->_rootFilePath = "../../" . "data/files/" . $this->_moduleTitle . "/" . $this->_name . "/";
     $this->view->cleaction = $this->_name;
     $this->_imgIndex = 'imagefeat';
     $config = Zend_Registry::get('config')->toArray();
     //banners.imagefeat.number
     $this->_imgFeatureNumber = $config[$this->_moduleTitle][$this->_imgIndex]['number'];
     //echo $this->_imgFeatureNumber;
 }
Exemplo n.º 5
0
 /**
  * Set some properties to redirect and process actions.
  *
  * @access public
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     // Sets the called action name. This will be dispatched to the method
     $this->_currentAction = $this->_getParam('action');
     // The action (process) to do for the selected object
     $this->_actionKey = $this->_getParam('actionKey');
     $this->_formatName();
     $this->view->assign('cleaction', $this->_labelSuffix);
     $dataImagePath = "../../" . $this->_config->document_root . "/data/images/";
     if (isset($this->_objectList[$this->_currentAction])) {
         $this->_imageFolder = $dataImagePath . $this->_moduleTitle . "/" . $this->_objectList[$this->_currentAction] . "/";
     }
     if (isset($this->_objectList[$this->_currentAction])) {
         $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/" . $this->_objectList[$this->_currentAction] . "/";
     }
 }
Exemplo n.º 6
0
 /**
  * Set some properties to redirect and process actions.
  *
  * @access public
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     // Sets the called action name. This will be dispatched to the method
     $this->_currentAction = $this->_getParam('action');
     // The action (process) to do for the selected object
     $this->_actionKey = $this->_getParam('actionKey');
     $this->_formatName();
     $this->view->assign('cleaction', $this->_labelSuffix);
     $dataImagePath = "../../" . $this->_config->document_root . "/data/images/";
     if (isset($this->_objectList[$this->_currentAction])) {
         $this->_imageFolder = $dataImagePath . $this->_moduleTitle . "/" . $this->_objectList[$this->_currentAction] . "/";
     }
     if (isset($this->_objectList[$this->_currentAction])) {
         $this->_rootImgPath = Zend_Registry::get("www_root") . "/data/images/" . $this->_moduleTitle . "/" . $this->_objectList[$this->_currentAction] . "/";
     }
     $modules = Cible_FunctionsModules::modulesFilters();
     $this->_modules = $this->_getModulesFields($modules);
     $this->view->headScript()->appendFile($this->view->locateFile('reportsAction.js'));
     $this->view->headLink()->appendStylesheet($this->view->locateFile('reports.css'));
 }
Exemplo n.º 7
0
 public function init()
 {
     parent::init();
 }