Mage_Checkout_Block_Cart Class Reference

Inheritance diagram for Mage_Checkout_Block_Cart:

Mage_Checkout_Block_Cart_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 chooseTemplate ()
 hasError ()
 getItemsSummaryQty ()
 isWishlistActive ()
 getCheckoutUrl ()
 getContinueShoppingUrl ()
 getIsVirtual ()


Detailed Description

Definition at line 34 of file Cart.php.


Member Function Documentation

chooseTemplate (  ) 

Definition at line 37 of file Cart.php.

00038     {
00039         if ($this->getQuote()->getItemsCount()) {
00040             $this->setTemplate($this->getCartTemplate());
00041         } else {
00042             $this->setTemplate($this->getEmptyTemplate());
00043         }
00044     }

getCheckoutUrl (  ) 

Definition at line 66 of file Cart.php.

00067     {
00068         return $this->getUrl('checkout/onepage', array('_secure'=>true));
00069     }

getContinueShoppingUrl (  ) 

Definition at line 71 of file Cart.php.

00072     {
00073         $url = $this->getData('continue_shopping_url');
00074         if (is_null($url)) {
00075             $url = Mage::getSingleton('checkout/session')->getContinueShoppingUrl(true);
00076             if (!$url) {
00077                 $url = Mage::getUrl();
00078             }
00079             $this->setData('continue_shopping_url', $url);
00080         }
00081         return $url;
00082     }

getIsVirtual (  ) 

Definition at line 84 of file Cart.php.

00085     {
00086         return $this->helper('checkout/cart')->getIsVirtualQuote();
00087     }

getItemsSummaryQty (  ) 

Definition at line 51 of file Cart.php.

00052     {
00053         return $this->getQuote()->getItemsSummaryQty();
00054     }

hasError (  ) 

Definition at line 46 of file Cart.php.

00047     {
00048         return $this->getQuote()->getHasError();
00049     }

isWishlistActive (  ) 

Definition at line 56 of file Cart.php.

00057     {
00058         $isActive = $this->_getData('is_wishlist_active');
00059         if ($isActive === null) {
00060             $isActive = Mage::getStoreConfig('wishlist/general/active') && Mage::getSingleton('customer/session')->isLoggedIn();
00061             $this->setIsWishlistActive($isActive);
00062         }
00063         return $isActive;
00064     }


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

Generated on Sat Jul 4 17:23:49 2009 for Magento by  doxygen 1.5.8