当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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');
 }
开发者ID:nverhoye,项目名称:mage-compta,代码行数:10,代码来源:Job.php

示例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);
 }
开发者ID:nemphys,项目名称:magento2,代码行数:14,代码来源:Rating.php

示例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);
 }
开发者ID:natxetee,项目名称:magento2,代码行数:17,代码来源:Attribute.php

示例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();
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:10,代码来源:Abstract.php

示例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');
 }
开发者ID:nemphys,项目名称:magento2,代码行数:10,代码来源:Data.php

示例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);
 }
开发者ID:natxetee,项目名称:magento2,代码行数:11,代码来源:Rating.php

示例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();
 }
开发者ID:QiuLihua83,项目名称:magento-enterprise-1.13.1.0,代码行数:10,代码来源:Crawler.php

示例8: __construct

 /**
  * Initialize resource
  */
 public function __construct()
 {
     parent::__construct();
     $this->_customerTable = $this->getTable('compta_customer/customer');
 }
开发者ID:nverhoye,项目名称:mage-compta,代码行数:8,代码来源:Customer.php

示例9: __construct

 public function __construct(array $data = array())
 {
     parent::__construct();
     $this->_urlLoggingCondition = isset($data['log_condition']) ? $data['log_condition'] : Mage::helper('log');
 }
开发者ID:staywithabhi,项目名称:porto,代码行数:5,代码来源:Visitor.php

示例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()));
 }
开发者ID:nemphys,项目名称:magento2,代码行数:9,代码来源:AbstractTest.php

示例11: __construct

 /**
  * Initialize resource
  */
 public function __construct()
 {
     parent::__construct();
     $this->_reportTable = $this->getTable('gpec_report/report');
 }
开发者ID:nverhoye,项目名称:mage-compta,代码行数:8,代码来源:Report.php

示例12: __construct

 /**
  * Initialize resource
  */
 public function __construct()
 {
     parent::__construct();
     $this->_invoiceTable = $this->getTable('compta_invoice/invoice');
 }
开发者ID:nverhoye,项目名称:mage-compta,代码行数:8,代码来源:Invoice.php

示例13: __construct

 /**
  * Initialize resource
  */
 public function __construct()
 {
     parent::__construct();
     $this->_jobUserTable = $this->getTable('gpec_job/user');
 }
开发者ID:nverhoye,项目名称:mage-compta,代码行数:8,代码来源:User.php

示例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;
 }
开发者ID:natxetee,项目名称:magento2,代码行数:12,代码来源:Data.php

示例15: __construct

 /**
  * Initialize resource
  */
 public function __construct()
 {
     parent::__construct();
     $this->_trainingTable = $this->getTable('gpec_training/training');
     $this->_trainingUserTable = $this->getTable('gpec_training/user');
 }
开发者ID:nverhoye,项目名称:mage-compta,代码行数:9,代码来源:Training.php


注:本文中的Mage_Core_Model_Resource_Db_Abstract::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。