本文整理汇总了PHP中Mage_Core_Model_Resource_Db_Abstract::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Resource_Db_Abstract::__construct方法的具体用法?PHP Mage_Core_Model_Resource_Db_Abstract::__construct怎么用?PHP Mage_Core_Model_Resource_Db_Abstract::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Resource_Db_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Resource_Db_Abstract::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Initialize resource
*/
public function __construct()
{
parent::__construct();
$this->_jobTable = $this->getTable('gpec_job/job');
$this->_jobSkillTable = $this->getTable('gpec_job/skill');
$this->_skillTable = $this->getTable('gpec_skill/skill');
}
示例2: __construct
/**
* Class constructor
*
* @param array $arguments
* @throws InvalidArgumentException
*/
public function __construct(array $arguments = array())
{
$this->_app = isset($arguments['app']) ? $arguments['app'] : Mage::app();
if (!$this->_app instanceof Mage_Core_Model_App) {
throw new InvalidArgumentException('Required app object is invalid');
}
parent::__construct($arguments);
}
示例3: __construct
/**
* Class constructor
*
* @param array $arguments
*/
public function __construct(Mage_Core_Model_Resource $resource, array $arguments = array())
{
if (isset($arguments['application']) && $arguments['application'] instanceof Mage_Core_Model_App) {
$this->_application = $arguments['application'];
unset($arguments['application']);
}
if (isset($arguments['helper']) && $arguments['helper'] instanceof Mage_Core_Helper_Abstract) {
$this->_helperInstance = $arguments['helper'];
unset($arguments['helper']);
}
parent::__construct($resource);
}
示例4: __construct
/**
* Initialize factory instance
*
* @param array $args
*/
public function __construct(array $args = array())
{
$this->_factory = !empty($args['factory']) ? $args['factory'] : Mage::getSingleton('catalog/factory');
parent::__construct();
}
示例5: __construct
/**
* Class constructor
*
* @param array $arguments
*/
public function __construct(array $arguments = array())
{
parent::__construct($arguments);
$this->_jsonHelper = isset($arguments['json_helper']) ? $arguments['json_helper'] : Mage::helper('Mage_Core_Helper_Data');
}
示例6: __construct
/**
* Class constructor
*
* @param Mage_Core_Model_Resource $resource
* @param Mage_Core_Model_App $app
*/
public function __construct(Mage_Core_Model_Resource $resource, Mage_Core_Model_App $app)
{
$this->_app = $app;
parent::__construct($resource);
}
示例7: __construct
/**
* Initialize application, adapter factory
*
* @param array $args
*/
public function __construct(array $args = array())
{
$this->_app = !empty($args['app']) ? $args['app'] : Mage::app();
parent::__construct();
}
示例8: __construct
/**
* Initialize resource
*/
public function __construct()
{
parent::__construct();
$this->_customerTable = $this->getTable('compta_customer/customer');
}
示例9: __construct
public function __construct(array $data = array())
{
parent::__construct();
$this->_urlLoggingCondition = isset($data['log_condition']) ? $data['log_condition'] : Mage::helper('log');
}
示例10: testConstructorException
/**
* Test that only valid resource instance can be passed to the constructor
*
* @expectedException InvalidArgumentException
*/
public function testConstructorException()
{
$this->_model->__construct(array('resource' => new stdClass()));
}
示例11: __construct
/**
* Initialize resource
*/
public function __construct()
{
parent::__construct();
$this->_reportTable = $this->getTable('gpec_report/report');
}
示例12: __construct
/**
* Initialize resource
*/
public function __construct()
{
parent::__construct();
$this->_invoiceTable = $this->getTable('compta_invoice/invoice');
}
示例13: __construct
/**
* Initialize resource
*/
public function __construct()
{
parent::__construct();
$this->_jobUserTable = $this->getTable('gpec_job/user');
}
示例14: __construct
/**
* Class constructor
*
* @param Mage_Core_Model_Resource $resource
* @param Mage_Core_Helper_Data $coreHelper
* @param array $arguments
*/
public function __construct(Mage_Core_Model_Resource $resource, Mage_Core_Helper_Data $coreHelper, array $arguments = array())
{
parent::__construct($resource);
$this->_jsonHelper = $coreHelper;
}
示例15: __construct
/**
* Initialize resource
*/
public function __construct()
{
parent::__construct();
$this->_trainingTable = $this->getTable('gpec_training/training');
$this->_trainingUserTable = $this->getTable('gpec_training/user');
}