예제 #1
0
 protected function _construct()
 {
     $this->_initSession('admin', 'p4ssw0rd');
     $this->_helper = Mage::helper('pugmore_mageploy');
     $this->_io = new PugMoRe_Mageploy_Model_Io_File();
     return parent::_construct();
 }
 /**
  * Initializes global area and dispatches an event to trigger autoloader initialization
  *
  * @return AutoloaderInitializer
  */
 protected function _construct()
 {
     parent::_construct();
     Mage::getConfig()->init()->loadEventObservers('global');
     Mage::app()->addEventArea('global');
     Mage::dispatchEvent('add_spl_autoloader');
     return $this;
 }
예제 #3
0
 /**
  * Additional initialize instruction
  *
  * @return Mage_Shell_Abstract
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_core = new Webgriffe_Golive_Model_Core();
     $this->_out = Mage::helper('webgriffe_golive/output');
     if (isset($this->_args['nocolors'])) {
         $this->_useColors = false;
     }
     return $this;
 }
예제 #4
0
 public function _construct()
 {
     $this->logFile = Mage::getBaseDir() . '/var/log/сorrector_data.log';
     return parent::_construct();
 }
 /**
  * Additional initialization
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_db = Mage::getModel('core/resource')->getConnection('core_write');
 }