Mage_Adminhtml_Block_Customer_Edit_Tab_Carts Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Customer_Edit_Tab_Carts:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _prepareLayout ()
 _toHtml ()


Detailed Description

Obtain all carts contents for specified client

Definition at line 31 of file Carts.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Add shopping cart grid of each website

Returns:
Mage_Adminhtml_Block_Customer_Edit_Tab_Carts

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 38 of file Carts.php.

00039     {
00040         $sharedWebsiteIds = Mage::registry('current_customer')->getSharedWebsiteIds();
00041         $isShared = count($sharedWebsiteIds) > 1;
00042         foreach ($sharedWebsiteIds as $websiteId) {
00043             $blockName = 'customer_cart_' . $websiteId;
00044             $block = $this->getLayout()->createBlock('adminhtml/customer_edit_tab_cart', $blockName, array('website_id' => $websiteId));
00045             if ($isShared) {
00046                     $block->setWebsiteId($websiteId)
00047                         ->setCartHeader($this->__('Shopping Cart from %s', Mage::app()->getWebsite($websiteId)->getName()))
00048                     ;
00049             }
00050 
00051             $this->setChild($blockName, $block);
00052         }
00053 
00054         return parent::_prepareLayout();
00055     }

_toHtml (  )  [protected]

Just get child blocks html

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 62 of file Carts.php.

00063     {
00064         return $this->getChildHtml();
00065     }


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

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