
Public Member Functions | |
| count () | |
| getCollection () | |
| dateFormat ($date) | |
| getAllTagsUrl () | |
Protected Member Functions | |
| _construct () | |
| _getCollection () | |
| _toHtml () | |
Protected Attributes | |
| $_collection | |
Definition at line 35 of file Recent.php.
| _construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 39 of file Recent.php.
00040 { 00041 parent::_construct(); 00042 00043 $this->_collection = Mage::getModel('tag/tag')->getEntityCollection() 00044 ->addStoreFilter(Mage::app()->getStore()->getId()) 00045 ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId()) 00046 ->setDescOrder() 00047 ->setPageSize(5) 00048 ->setActiveFilter() 00049 ->load() 00050 ->addProductTags(); 00051 }
| _getCollection | ( | ) | [protected] |
| _toHtml | ( | ) | [protected] |
Render block HTML
Reimplemented from Mage_Core_Block_Template.
Definition at line 78 of file Recent.php.
00079 { 00080 if ($this->_collection->getSize() > 0) { 00081 return parent::_toHtml(); 00082 } 00083 return ''; 00084 }
| count | ( | ) |
| dateFormat | ( | $ | date | ) |
Definition at line 68 of file Recent.php.
00069 { 00070 return $this->formatDate($date, Mage_Core_Model_Locale::FORMAT_TYPE_SHORT); 00071 }
| getAllTagsUrl | ( | ) |
Definition at line 73 of file Recent.php.
00074 { 00075 return Mage::getUrl('tag/customer'); 00076 }
| getCollection | ( | ) |
$_collection [protected] |
Definition at line 37 of file Recent.php.
1.5.8