Mage_Paypal_Block_Express_Review Class Reference

Inheritance diagram for Mage_Paypal_Block_Express_Review:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getReview ()
 getBillingAddress ()
 getShippingAddress ()
 getAddress ()
 getShippingRates ()
 getCarrierName ($carrierCode)
 getAddressShippingMethod ()
 setMethod ($varName)
 getShippingPrice ($price, $flag)
 formatPrice ($price)
 isVirtual ()

Protected Attributes

 $_method = 'express'


Detailed Description

Definition at line 34 of file Review.php.


Member Function Documentation

formatPrice ( price  ) 

Definition at line 107 of file Review.php.

00108     {
00109         return $this->getReview()->getQuote()->getStore()->convertPrice($price, true);
00110     }

getAddress (  ) 

Definition at line 57 of file Review.php.

00058     {
00059         if (empty($this->_address)) {
00060             $this->_address = $this->getReview()->getQuote()->getShippingAddress();
00061         }
00062         return $this->_address;
00063     }

getAddressShippingMethod (  ) 

Definition at line 92 of file Review.php.

00093     {
00094         return $this->getAddress()->getShippingMethod();
00095     }

getBillingAddress (  ) 

Definition at line 47 of file Review.php.

00048     {
00049         return $this->getReview()->getQuote()->getBillingAddress();
00050     }

getCarrierName ( carrierCode  ) 

Definition at line 84 of file Review.php.

00085     {
00086         if ($name = Mage::getStoreConfig('carriers/'.$carrierCode.'/title')) {
00087             return $name;
00088         }
00089         return $carrierCode;
00090     }

getReview (  ) 

Get PayPal Express Review Information

Returns:
Mage_Paypal_Model_Express_Review

Definition at line 42 of file Review.php.

00043     {
00044         return Mage::getSingleton('paypal/express_review');
00045     }

getShippingAddress (  ) 

Definition at line 52 of file Review.php.

00053     {
00054         return $this->getReview()->getQuote()->getShippingAddress();
00055     }

getShippingPrice ( price,
flag 
)

Definition at line 102 of file Review.php.

00103     {
00104         return $this->formatPrice($this->helper('tax')->getShippingPrice($price, $flag, $this->getAddress()));
00105     }

getShippingRates (  ) 

Definition at line 65 of file Review.php.

00066     {
00067         if (empty($this->_rates)) {
00068             #$this->getAddress()->collectShippingRates()->save();
00069 
00070             $groups = $this->getAddress()->getGroupedAllShippingRates();
00071             /*if (!empty($groups)) {
00072                 $ratesFilter = new Varien_Filter_Object_Grid();
00073                 $ratesFilter->addFilter(Mage::app()->getStore()->getPriceFilter(), 'price');
00074 
00075                 foreach ($groups as $code => $groupItems) {
00076                     $groups[$code] = $ratesFilter->filter($groupItems);
00077                 }
00078             }*/
00079             return $this->_rates = $groups;
00080         }
00081         return $this->_rates;
00082     }

isVirtual (  ) 

Definition at line 112 of file Review.php.

00113     {
00114         return $this->getReview()->getQuote()->getIsVirtual();
00115     }

setMethod ( varName  ) 

Definition at line 97 of file Review.php.

00098     {
00099         $this->_method=$varName;
00100     }


Member Data Documentation

$_method = 'express' [protected]

Definition at line 36 of file Review.php.


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

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