Mage_Paypal_Block_Link_Shortcut Class Reference

Inheritance diagram for Mage_Paypal_Block_Link_Shortcut:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getCheckoutUrl ()
 getImageUrl ()
 _toHtml ()


Detailed Description

Definition at line 34 of file Shortcut.php.


Member Function Documentation

_toHtml (  ) 

Render block HTML

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 51 of file Shortcut.php.

00052     {
00053         if (Mage::getStoreConfigFlag('payment/paypal_express/active')
00054             && Mage::getSingleton('checkout/session')->getQuote()->validateMinimumAmount()) {
00055             return parent::_toHtml();
00056         }
00057 
00058         return '';
00059     }

getCheckoutUrl (  ) 

Definition at line 36 of file Shortcut.php.

00037     {
00038         return $this->getUrl('paypal/express/shortcut', array('_secure'=>true));
00039     }

getImageUrl (  ) 

Definition at line 41 of file Shortcut.php.

00042     {
00043         $locale = Mage::app()->getLocale()->getLocaleCode();
00044         if (strpos('en_GB', $locale)===false) {
00045             $locale = 'en_US';
00046         }
00047 
00048         return 'https://www.paypal.com/'.$locale.'/i/btn/btn_xpressCheckout.gif';
00049     }


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