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


PHP Mage_Core_Model_Resource_Db_Collection_Abstract::load方法代码示例

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


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

示例1: load

 /**
  * Loads collection
  *
  * @param bool $printQuery
  * @param bool $logQuery
  * @return Mage_Tag_Model_Resource_Popular_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if ($this->isLoaded()) {
         return $this;
     }
     parent::load($printQuery, $logQuery);
     return $this;
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:15,代码来源:Collection.php

示例2: load

 /**
  * Loads collection
  *
  * @param bool $printQuery
  * @param bool $logQuery
  * @return Mage_Tag_Model_Resource_Tag_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if ($this->isLoaded()) {
         return $this;
     }
     parent::load($printQuery, $logQuery);
     if ($this->getFlag('add_stores_after')) {
         $this->_addStoresVisibility();
     }
     return $this;
 }
开发者ID:test3metizsoft,项目名称:test,代码行数:18,代码来源:Collection.php

示例3: load

 /**
  * Load collection data
  *
  * @param bool $printQuery
  * @param bool $logQuery
  * @return  Weboffice_GoogleShoppingApi_Model_Mysql4_Attribute_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if ($this->isLoaded()) {
         return $this;
     }
     if ($this->getJoinAttributeSetFlag()) {
         $this->_joinAttributeSet();
     }
     parent::load($printQuery, $logQuery);
     return $this;
 }
开发者ID:shakhawat4g,项目名称:MagentoExtensions,代码行数:18,代码来源:Collection.php

示例4: load

 /**
  * Load data
  *
  * @param boolean $printQuery
  * @param boolean $logQuery
  * @return Mage_Core_Model_Resource_Db_Collection_Abstract
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if ($this->isLoaded()) {
         return $this;
     }
     Mage::dispatchEvent('log_visitor_collection_load_before', array('collection' => $this));
     return parent::load($printQuery, $logQuery);
 }
开发者ID:blazeriaz,项目名称:youguess,代码行数:15,代码来源:Collection.php

示例5: load

 /**
  * Load data
  *
  * @param boolean $printQuery
  * @param boolean $logQuery
  * @return Mage_Review_Model_Resource_Review_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if ($this->isLoaded()) {
         return $this;
     }
     Mage::dispatchEvent('review_review_collection_load_before', array('collection' => $this));
     parent::load($printQuery, $logQuery);
     if ($this->_addStoreDataFlag) {
         $this->_addStoreData();
     }
     return $this;
 }
开发者ID:chucky515,项目名称:Magento-CE-Mirror,代码行数:19,代码来源:Collection.php

示例6: load

 /**
  * Load data (join attribute data)
  *
  * @param boolean $printQuery
  * @param boolean $logQuery
  * @return Mage_Eav_Model_Resource_Form_Element_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if (!$this->isLoaded()) {
         $this->_joinAttributeData();
     }
     return parent::load($printQuery, $logQuery);
 }
开发者ID:ravi2jdesign,项目名称:solvingmagento_1.7.0,代码行数:14,代码来源:Collection.php

示例7: load

 /**
  * Load collection data
  *
  * @param boolean $printQuery
  * @param boolean $logQuery
  * @return Mage_Core_Model_Resource_Website_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if (!$this->getLoadDefault()) {
         $this->getSelect()->where('main_table.website_id > ?', 0);
     }
     $this->unshiftOrder('main_table.name', Varien_Db_Select::SQL_ASC)->unshiftOrder('main_table.sort_order', Varien_Db_Select::SQL_ASC);
     // website sort order FIRST
     return parent::load($printQuery, $logQuery);
 }
开发者ID:quyip8818,项目名称:Mag,代码行数:16,代码来源:Collection.php

示例8: load

 /**
  * Loads collecion and adds customers info
  *
  * @param bool $printQuery
  * @param bool $logQuery
  * @return Mage_Newsletter_Model_Resource_Problem_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     parent::load($printQuery, $logQuery);
     if ($this->_subscribersInfoJoinedFlag && !$this->isLoaded()) {
         $this->_addCustomersData();
     }
     return $this;
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:15,代码来源:Collection.php

示例9: load

 /**
  * Load data
  * Redeclare parent load method just for adding method _beforeLoad
  *
  * @param bool $printQuery
  * @param bool $logQuery
  * @return Mage_Sales_Model_Resource_Report_Collection_Abstract
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if ($this->isLoaded()) {
         return $this;
     }
     $this->_initSelect();
     if ($this->_applyFilters) {
         $this->_applyDateRangeFilter();
         $this->_applyStoresFilter();
         $this->_applyCustomFilter();
     }
     return parent::load($printQuery, $logQuery);
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:21,代码来源:Abstract.php

示例10: load

 /**
  * Load collection data
  *
  * @param boolean $printQuery
  * @param boolean $logQuery
  * @return Mage_Core_Model_Resource_Store_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if (!$this->getLoadDefault()) {
         $this->setWithoutDefaultFilter();
     }
     if (!$this->isLoaded()) {
         $this->addOrder('CASE WHEN main_table.store_id = 0 THEN 0 ELSE 1 END', Varien_Db_Select::SQL_ASC)->addOrder('main_table.sort_order', Varien_Db_Select::SQL_ASC)->addOrder('main_table.name', Varien_Db_Select::SQL_ASC);
     }
     return parent::load($printQuery, $logQuery);
 }
开发者ID:blazeriaz,项目名称:youguess,代码行数:17,代码来源:Collection.php

示例11: load

 /**
  * Adds subscribers info to select and loads collection
  *
  * @param bool $printQuery
  * @param bool $logQuery
  * @return Mage_Newsletter_Model_Resource_Queue_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     if ($this->_addSubscribersFlag && !$this->isLoaded()) {
         $this->_addSubscriberInfoToSelect();
     }
     return parent::load($printQuery, $logQuery);
 }
开发者ID:natxetee,项目名称:magento2,代码行数:14,代码来源:Collection.php

示例12: load

 /**
  * Load collection data
  *
  * @param boolean $printQuery
  * @param boolean $logQuery
  * @return Mage_Core_Model_Resource_Website_Collection
  */
 public function load($printQuery = false, $logQuery = false)
 {
     $this->unshiftOrder('main_table.name', Varien_Db_Select::SQL_ASC)->unshiftOrder('main_table.sort_order', Varien_Db_Select::SQL_ASC);
     // website sort order FIRST
     return parent::load($printQuery, $logQuery);
 }
开发者ID:natxetee,项目名称:magento2,代码行数:13,代码来源:Collection.php

示例13: prepareCollection

 protected function prepareCollection(Mage_Core_Model_Resource_Db_Collection_Abstract $collection)
 {
     $collection->getSelect()->limit();
     $collection->setPageSize(0);
     $collection->load();
 }
开发者ID:kirchbergerknorr,项目名称:payone-magento,代码行数:6,代码来源:Collection.php


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