Mage_Wishlist_Block_Links Class Reference

Inheritance diagram for Mage_Wishlist_Block_Links:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 addWishlistLink ()


Detailed Description

Definition at line 35 of file Links.php.


Member Function Documentation

addWishlistLink (  ) 

Add link on wishlist page in parent block

Returns:
Mage_Wishlist_Block_Links

Definition at line 42 of file Links.php.

00043     {
00044         $parentBlock = $this->getParentBlock();
00045         if ($parentBlock && $this->helper('wishlist')->isAllow()) {
00046             $count = $this->helper('wishlist')->getItemCount();
00047             if( $count > 1 ) {
00048                 $text = $this->__('My Wishlist (%d items)', $count);
00049             } elseif( $count == 1 ) {
00050                 $text = $this->__('My Wishlist (%d item)', $count);
00051             } else {
00052                 $text = $this->__('My Wishlist');
00053             }
00054             $parentBlock->addLink($text, 'wishlist', $text, true, array(), 30, null, 'class="top-link-wishlist"');
00055         }
00056         return $this;
00057     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:56 2009 for Magento by  doxygen 1.5.8