Mage_Customer_Helper_Address Class Reference

Inheritance diagram for Mage_Customer_Helper_Address:

Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 getBookUrl ()
 getEditUrl ()
 getDeleteUrl ()
 getCreateUrl ()
 getRenderer ($renderer)
 getConfig ($key, $store=null)
 getStreetLines ($store=null)
 getFormat ($code)

Protected Attributes

 $_config
 $_streetLines
 $_formatTemplate = array()


Detailed Description

Customer address helper

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Address.php.


Member Function Documentation

getBookUrl (  ) 

Addresses url

Definition at line 41 of file Address.php.

00042     {
00043 
00044     }

getConfig ( key,
store = null 
)

Definition at line 70 of file Address.php.

00071     {
00072         if (is_null($this->_config)) {
00073             $this->_config = Mage::getStoreConfig('customer/address');
00074         }
00075         return isset($this->_config[$key]) ? $this->_config[$key] : null;
00076     }

getCreateUrl (  ) 

Definition at line 56 of file Address.php.

00057     {
00058 
00059     }

getDeleteUrl (  ) 

Definition at line 51 of file Address.php.

00052     {
00053 
00054     }

getEditUrl (  ) 

Definition at line 46 of file Address.php.

00047     {
00048 
00049     }

getFormat ( code  ) 

Definition at line 87 of file Address.php.

00088     {
00089         $format = Mage::getSingleton('customer/address_config')->getFormatByCode($code);
00090         return $format->getRenderer() ? $format->getRenderer()->getFormat() : '';
00091     }

getRenderer ( renderer  ) 

Definition at line 61 of file Address.php.

00062     {
00063         if(is_string($renderer) && $className = Mage::getConfig()->getBlockClassName($renderer)) {
00064             return new $className();
00065         } else {
00066             return $renderer;
00067         }
00068     }

getStreetLines ( store = null  ) 

Definition at line 78 of file Address.php.

00079     {
00080         if (is_null($this->_streetLines)) {
00081             $lines = $this->getConfig('street_lines', $store);
00082             $this->_streetLines = min(4, max(1, (int)$lines));
00083         }
00084         return $this->_streetLines;
00085     }


Member Data Documentation

$_config [protected]

Definition at line 34 of file Address.php.

$_formatTemplate = array() [protected]

Definition at line 36 of file Address.php.

$_streetLines [protected]

Definition at line 35 of file Address.php.


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

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