Example #1
0
 /**
  * constructor
  */
 public function __construct($moduleInfo)
 {
     global $My_Kernel, $My_Sql;
     parent::__construct($moduleInfo);
     //$this->_newsModel = $My_Kernel->getClass('news', $My_Kernel->getSystemDbHandler());
     $this->_loadModel($My_Kernel->getSystemDbHandler());
 }
Example #2
0
 public function __construct($moduleInfo)
 {
     global $My_Kernel;
     parent::__construct($moduleInfo);
     $this->_moduleInfo = $moduleInfo;
     $this->templater = $My_Kernel->getTemplater();
     $this->templater->clearAssign()->assign('module_id', $this->_moduleInfo['moduleId'])->assign('module_name', $this->_moduleInfo['moduleName'])->assign('MY_ROOT_URL', MY_ROOT_URL);
 }
 public function __construct()
 {
     $this->name = 'supramulticurrency';
     $this->tab = 'front_office_features';
     $this->version = 1.0;
     $this->author = 'PT.SUPRABAKTI MANDIRI';
     parent::__construct();
     $this->_errors = array();
     $this->page = basename(__FILE__, '.php');
     $this->displayName = $this->l('Supra Multi Currency Product');
     $this->description = $this->l('Supra Multi Currency Product');
     $this->confirmUninstall = $this->l('Apakah Anda Akan Mendelete Module ini ?');
     $config = Configuration::getMultiple(array('MLC_TASK_TIME', 'MLC_UPDATE_PRICES', 'MLC_UPDATE_RATES', 'MLC_LAST_UPDATE', 'MLC_ROUND_MODE', 'MLC_UPDATE_SOURCE', 'MLC_SHOW_PRODUCT_PAGE', 'MLC_SHOW_PRICE'));
     $this->task_time = (int) $config['MLC_TASK_TIME'] * 3600;
     $this->update_source = $config['MLC_UPDATE_SOURCE'];
     $this->update_prices = $config['MLC_UPDATE_PRICES'];
     $this->update_rates = $config['MLC_UPDATE_RATES'];
     $this->round = $config['MLC_ROUND_MODE'];
     $this->last_update = $config['MLC_LAST_UPDATE'];
     $this->show_price = $config['MLC_SHOW_PRICE'];
 }
Example #4
0
 function __construct(DOMElement $e, structure $struct)
 {
     parent::__construct($e, $struct);
 }