/** * @return $this */ protected function _afterLoadData() { foreach ($this->_data as $data) { if (isset($data['additional']) && strlen($data['additional'])) { $data['additional'] = Mage::helper('core')->jsonDecode($data['additional']); } } parent::_afterLoadData(); }
/** * Ad information about attribute sets to collection result data * * @return Mage_Core_Model_Resource_Db_Collection_Abstract */ protected function _afterLoadData() { $this->_addSetInfo(); return parent::_afterLoadData(); }
/** * @return Mage_Wishlist_Model_Resource_Item_Collection|Varien_Data_Collection_Db */ protected function _afterLoadData() { parent::_afterLoadData(); if ($this->_addDaysInWishlist) { $gmtOffset = (int) Mage::getSingleton('Mage_Core_Model_Date')->getGmtOffset(); $nowTimestamp = Mage::getSingleton('Mage_Core_Model_Date')->timestamp(); foreach ($this as $wishlistItem) { $wishlistItemTimestamp = Mage::getSingleton('Mage_Core_Model_Date')->timestamp($wishlistItem->getAddedAt()); $wishlistItem->setDaysInWishlist((int) (($nowTimestamp - $gmtOffset - $wishlistItemTimestamp) / 24 / 60 / 60)); } } return $this; }