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


PHP Mage_Core_Model_Mysql4_Collection_Abstract::_construct方法代码示例

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


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

示例1: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('slideshow/category');
     $this->_map['fields']['category_id'] = 'main_table.category_id';
     $this->_map['fields']['store'] = 'store_table.store_id';
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:7,代码来源:Collection.php

示例2: _construct

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

示例3: __construct

 /**
  * Initialize custom resource model
  */
 public function __construct()
 {
     parent::_construct();
     $this->setModel('adminhtml/report_item');
     $this->_resource = Mage::getResourceModel('sales/order_item');
     $this->setConnection($this->getResource()->getReadConnection());
 }
开发者ID:enjoy2000,项目名称:gemz,代码行数:10,代码来源:Collection.php

示例4: __construct

 /**
  * Initialize custom resource model
  */
 public function __construct()
 {
     parent::_construct();
     $this->setModel('adminhtml/report_item');
     $this->_resource = Mage::getResourceModel('advancedreports/salesbyhour')->init('advancedreports/salesbyhour');
     $this->setConnection($this->getResource()->getReadConnection());
 }
开发者ID:ramantalkin,项目名称:tmp01skin,代码行数:10,代码来源:Collection.php

示例5: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('payperrentals/rentalqueue');
     if (!Mage::app()->isSingleStoreMode() && Mage::app()->getStore()->getId()) {
         $this->setStoreId(Mage::app()->getStore()->getId());
     }
 }
开发者ID:hueyl77,项目名称:fourwindsgear,代码行数:8,代码来源:Collection.php

示例6: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('rocketweb_search/query');
     $this->_map['fields']['query_id'] = 'main_table.query_id';
     $this->_map['fields']['store'] = 'store_table.store_id';
     $this->_map['fields']['sku'] = 'sku_table.store_id';
 }
开发者ID:beejhuff,项目名称:magento-kick-butt-search,代码行数:8,代码来源:Collection.php

示例7: _construct

 /**
  * Constructor
  *
  * Configures collection
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_subscriberTable = Mage::getSingleton('core/resource')->getTableName('newsletter/subscriber');
     $this->_queueLinkTable = Mage::getSingleton('core/resource')->getTableName('newsletter/queue_link');
     $this->_storeTable = Mage::getSingleton('core/resource')->getTableName('core/store');
     $this->_init('newsletter/subscriber');
 }
开发者ID:joebushi,项目名称:magento-mirror,代码行数:13,代码来源:Collection.php

示例8: _construct

 public function _construct()
 {
     parent::_construct();
     if ($storeId = Mage::app()->getStore()->getId()) {
         $this->setStoreId($storeId);
     }
     $this->_init('membership/package');
 }
开发者ID:xiaoguizhidao,项目名称:magento,代码行数:8,代码来源:Collection.php

示例9: _construct

 /**
  * Load Default Constructor
  */
 public function _construct()
 {
     /**
      * Load Parent Constructor
      */
     parent::_construct();
     /**
      * Initialize sellerreview Block
      */
     $this->_init('marketplace/sellerreview');
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:14,代码来源:Collection.php

示例10: _construct

 /**
  * Constructor
  *
  * Configures collection
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_subscriberTable = Mage::getSingleton('core/resource')->getTableName('newsletter/subscriber');
     $this->_queueLinkTable = Mage::getSingleton('core/resource')->getTableName('newsletter/queue_link');
     $this->_storeTable = Mage::getSingleton('core/resource')->getTableName('core/store');
     $this->_init('newsletter/subscriber');
     // 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'] = 'IF(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:hunnybohara,项目名称:magento-chinese-localization,代码行数:20,代码来源:Collection.php

示例11: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_init('amseogooglesitemap/sitemap');
 }
开发者ID:xiaoguizhidao,项目名称:cupboardglasspipes.ecomitize.com,代码行数:5,代码来源:Collection.php


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