protected function _afterLoad() { parent::_afterLoad(); if ($this->_addStoreDataFlag) { $this->_addStoreData(); } return $this; }
protected function _afterLoad() { parent::_afterLoad(); if ($this->getJoinFlag('add_stores_after')) { $this->_addStoresVisibility(); } return $this; }
/** * After load adding data * * @return Mage_Tag_Model_Mysql4_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; }
/** * 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; }
/** * 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; return $this; }