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


PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_construct方法代码示例

本文整理汇总了PHP中Mage_Core_Model_Resource_Db_Collection_Abstract::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_construct方法的具体用法?PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_construct怎么用?PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Core_Model_Resource_Db_Collection_Abstract的用法示例。


在下文中一共展示了Mage_Core_Model_Resource_Db_Collection_Abstract::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _construct

 /**
  * Slider Collection Resource Constructor
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('antoinek_slider/slider');
     $this->_map['fields']['store'] = 'store_table.store_id';
     $this->_map['fields']['slider_id'] = 'main_table.slider_id';
 }
开发者ID:christinecardoso,项目名称:AntoineK_Slider,代码行数:11,代码来源:Collection.php

示例2: _construct

 /**
  * Constructor
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('esendex_sms/event');
     // Enable caching for collection
     $cache = Mage::app()->getCacheInstance();
     $this->initCache($cache, 'esendex_sms_collection', array(Esendex_Sms_Model_Event::CACHE_TAG));
 }
开发者ID:WeareJH,项目名称:esendex-magento-extension,代码行数:11,代码来源:Collection.php

示例3: _construct

 protected function _construct()
 {
     parent::_construct();
     /**
      * Tell Magento the Model and Resource Model to use for this 
      * Collection. Since both aliases are the same we can ommit
      * the second paramater if we wished.
      */
     $this->_init('bhargav_accordion/accordion', 'bhargav_accordion/accordion');
 }
开发者ID:bhargavmehta,项目名称:accordion,代码行数:10,代码来源:Collection.php

示例4: _construct

 /**
  * Constructor
  * Configures collection
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('newsletter/subscriber');
     $this->_queueLinkTable = $this->getTable('newsletter/queue_link');
     $this->_storeTable = $this->getTable('core/store');
     // defining mapping for fields represented in several tables
     $this->_map['fields']['customer_lastname'] = 'customer_lastname_table.value';
     $this->_map['fields']['customer_firstname'] = 'customer_firstname_table.value';
     $this->_map['fields']['type'] = $this->getResource()->getReadConnection()->getCheckSql('main_table.customer_id = 0', 1, 2);
     $this->_map['fields']['website_id'] = 'store.website_id';
     $this->_map['fields']['group_id'] = 'store.group_id';
     $this->_map['fields']['store_id'] = 'main_table.store_id';
 }
开发者ID:quyip8818,项目名称:Mag,代码行数:19,代码来源:Collection.php

示例5: _construct

 /**
  * Constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('salesrule/coupon');
 }
开发者ID:lightyoruichi,项目名称:Magento-Pre-Patched-Files,代码行数:9,代码来源:Collection.php

示例6: _construct

 /**
  * constructor
  *
  * @access public
  * @return void
  * 
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('db1_anymarket/anymarketproducts');
     $this->_map['fields']['store'] = 'store_table.store_id';
 }
开发者ID:novapc,项目名称:magento,代码行数:13,代码来源:Collection.php

示例7: _construct

 /**
  * Define resource model
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Mage_Core_Model_Layout_Link', 'Mage_Core_Model_Resource_Layout_Link');
 }
开发者ID:,项目名称:,代码行数:8,代码来源:

示例8: _construct

 /**
  * Collection constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('salesrule/rule_product');
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:9,代码来源:Collection.php

示例9: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('mycdn/job');
 }
开发者ID:mygento,项目名称:cdn,代码行数:5,代码来源:Collection.php

示例10: _construct

 /**
  * constructor.
  */
 public function _construct()
 {
     parent::_construct();
     $this->_init('ddg_automation/catalog');
 }
开发者ID:dotmailer,项目名称:dotmailer-magento-extension,代码行数:8,代码来源:Collection.php

示例11: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->_init('ultimatenewmedia_social/review', 'ultimatenewmedia_social/review');
 }
开发者ID:greghoole,项目名称:magento_extensions,代码行数:5,代码来源:Collection.php

示例12: _construct

 /**
  * constructor
  *
  * @access public
  * @return void
  * @author Ultimate Module Creator
  */
 public function _construct()
 {
     parent::_construct();
     $this->_init('ibrams_cmsextended/cmspage_comment');
     $this->_map['fields']['store'] = 'store_table.store_id';
 }
开发者ID:pboethig,项目名称:vagrant_puppet_magento,代码行数:13,代码来源:Collection.php

示例13: _construct

 /**
  * constructor
  * @access public
  * @return void
  * @author Marius Strajeru <marius.strajeru@gmail.com>
  */
 public function _construct()
 {
     parent::_construct();
     $this->_init('easylife_switcher/hashcode');
 }
开发者ID:mourdeveloper,项目名称:Switcher,代码行数:11,代码来源:Collection.php

示例14: _construct

 /**
  *  Define resource model
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('core/variable');
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:9,代码来源:Collection.php

示例15: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('deal/deal');
     $this->_map['fields']['store'] = 'store_table.store_id';
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:6,代码来源:Collection.php


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