本文整理匯總了PHP中module::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP module::__construct方法的具體用法?PHP module::__construct怎麽用?PHP module::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類module
的用法示例。
在下文中一共展示了module::__construct方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* 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());
}
示例2: __construct
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);
}
示例3: __construct
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'];
}
示例4:
function __construct(DOMElement $e, structure $struct)
{
parent::__construct($e, $struct);
}