Mage_Adminhtml_Block_Report_Wishlist Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Report_Wishlist:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 _beforeToHtml ()

Public Attributes

 $wishlists_count
 $items_bought
 $shared_count
 $referrals_count
 $conversions_count
 $customer_with_wishlist


Detailed Description

Definition at line 34 of file Wishlist.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 44 of file Wishlist.php.

00045     {
00046         parent::__construct();
00047         $this->setTemplate('report/wishlist.phtml');
00048     }


Member Function Documentation

_beforeToHtml (  ) 

Before rendering html, but after trying to load cache

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 50 of file Wishlist.php.

00051     {
00052         $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/report_wishlist_grid', 'report.grid'));
00053 
00054         $collection = Mage::getResourceModel('reports/wishlist_collection');
00055 
00056         list($customerWithWishlist, $wishlistsCount) = $collection->getWishlistCustomerCount();
00057         $this->setCustomerWithWishlist($customerWithWishlist);
00058         $this->setWishlistsCount($wishlistsCount);
00059         $this->setItemsBought(0);
00060         $this->setSharedCount($collection->getSharedCount());
00061         $this->setReferralsCount(0);
00062         $this->setConversionsCount(0);
00063 
00064         return $this;
00065     }


Member Data Documentation

$conversions_count

Definition at line 41 of file Wishlist.php.

$customer_with_wishlist

Definition at line 42 of file Wishlist.php.

$items_bought

Definition at line 38 of file Wishlist.php.

$referrals_count

Definition at line 40 of file Wishlist.php.

$shared_count

Definition at line 39 of file Wishlist.php.

$wishlists_count

Definition at line 37 of file Wishlist.php.


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

Generated on Sat Jul 4 17:22:57 2009 for Magento by  doxygen 1.5.8