當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Mage_Catalog_Model_Resource_Product_Collection::_afterLoad方法代碼示例

本文整理匯總了PHP中Mage_Catalog_Model_Resource_Product_Collection::_afterLoad方法的典型用法代碼示例。如果您正苦於以下問題:PHP Mage_Catalog_Model_Resource_Product_Collection::_afterLoad方法的具體用法?PHP Mage_Catalog_Model_Resource_Product_Collection::_afterLoad怎麽用?PHP Mage_Catalog_Model_Resource_Product_Collection::_afterLoad使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Mage_Catalog_Model_Resource_Product_Collection的用法示例。


在下文中一共展示了Mage_Catalog_Model_Resource_Product_Collection::_afterLoad方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _afterLoad

 /**
  * Processing collection items after loading
  * Raise additional event
  *
  * @return Mage_Catalog_Model_Resource_Product_Collection
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     if (count($this) > 0) {
         Mage::dispatchEvent('mongo_catalog_product_collection_load_after', array('collection' => $this));
     }
     return $this;
 }
開發者ID:tiagosampaio,項目名稱:mongogento,代碼行數:14,代碼來源:Collection.php

示例2: _afterLoad

 /**
  * Set store id for each collection item when collection was loaded
  *
  * @return void
  */
 public function _afterLoad()
 {
     parent::_afterLoad();
     if ($this->getStoreId() && $this->_items) {
         foreach ($this->_items as $item) {
             $item->setStoreId($this->getStoreId());
         }
     }
     return $this;
 }
開發者ID:shebin512,項目名稱:Magento_Zoff,代碼行數:15,代碼來源:Collection.php

示例3: _afterLoad

 /**
  * Action after load
  *
  * @return Mage_Review_Model_Resource_Review_Product_Collection
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     if ($this->_addStoreDataFlag) {
         $this->_addStoreData();
     }
     return $this;
 }
開發者ID:buttasg,項目名稱:cowgirlk,代碼行數:13,代碼來源:Collection.php

示例4: _afterLoad

 /**
  * Reorder collection according to current sort order.
  *
  * @return Smile_ElasticSearch_Model_Resource_Catalog_Product_Collection
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     if (!empty($this->_searchedEntityIds)) {
         $sortedItems = array();
         foreach ($this->_searchedEntityIds as $id) {
             if (isset($this->_items[$id])) {
                 $sortedItems[$id] = $this->_items[$id];
             }
         }
         $this->_items =& $sortedItems;
     }
     return $this;
 }
開發者ID:diglin,項目名稱:smile-magento-elasticsearch,代碼行數:19,代碼來源:Collection.php

示例5: _afterLoad

 /**
  * After load adding data
  *
  * @return Mage_Tag_Model_Resource_Product_Collection
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     if ($this->getFlag('add_stores_after')) {
         $this->_addStoresVisibility();
     }
     if (count($this) > 0) {
         Mage::dispatchEvent('tag_tag_product_collection_load_after', array('collection' => $this));
     }
     return $this;
 }
開發者ID:natxetee,項目名稱:magento2,代碼行數:16,代碼來源:Collection.php

示例6: _afterLoad

 /**
  * Sort items
  *
  * @return Mage_Catalog_Model_Resource_Product_Collection
  */
 protected function _afterLoad()
 {
     $result = parent::_afterLoad();
     $this->_sort();
     return $result;
 }
開發者ID:hyhoocchan,項目名稱:mage-local,代碼行數:11,代碼來源:Abstract.php

示例7: _afterLoad

 /**
  * Sort collection items by sort order of found ids
  *
  * @return Enterprise_Search_Model_Resource_Collection
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     $sortedItems = array();
     foreach ($this->_searchedEntityIds as $id) {
         if (isset($this->_items[$id])) {
             $sortedItems[$id] = $this->_items[$id];
         }
     }
     $this->_items =& $sortedItems;
     /**
      * Revert page size for proper paginator ranges
      */
     $this->_pageSize = $this->_storedPageSize;
     return $this;
 }
開發者ID:hyhoocchan,項目名稱:mage-local,代碼行數:21,代碼來源:Collection.php

示例8: _afterLoad

 /**
  * Sort collection items by sort order of found ids
  *
  * @return Enterprise_Search_Model_Resource_Collection
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     $this->_items = $this->_sortResultItems();
     /**
      * Revert page size for proper paginator ranges
      */
     $this->_pageSize = $this->_storedPageSize;
     return $this;
 }
開發者ID:adrianoaguiar,項目名稱:magento-elasticsearch-module,代碼行數:15,代碼來源:Collection.php


注:本文中的Mage_Catalog_Model_Resource_Product_Collection::_afterLoad方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。