本文整理汇总了PHP中Mage_Core_Model_Mysql4_Abstract::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Mysql4_Abstract::__construct方法的具体用法?PHP Mage_Core_Model_Mysql4_Abstract::__construct怎么用?PHP Mage_Core_Model_Mysql4_Abstract::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Mysql4_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Mysql4_Abstract::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* This ensures that the WordPress database connection has been initialised
* This fixes issues when calling WordPress functions via the CRON
* As the necessary event is not triggered
*
*/
public function __construct()
{
if (!Mage::helper('wordpress/db')->hasBeenInitialised()) {
Mage::getSingleton('wordpress/observer_databaseSetup')->initConnection();
}
parent::__construct();
}
示例2: __construct
public function __construct($data = null)
{
if (is_array($data)) {
if (isset($data['scope'])) {
$this->_scope = $data['scope'];
}
}
parent::__construct();
}
示例3: __construct
public function __construct()
{
$resource = Mage::getSingleton('core/resource');
$this->_currencyRateTable = $resource->getTableName('directory/currency_rate');
parent::__construct();
}
示例4: __construct
public function __construct()
{
parent::__construct();
}