Public Member Functions | |
getBookUrl () | |
getEditUrl () | |
getDeleteUrl () | |
getCreateUrl () | |
getRenderer ($renderer) | |
getConfig ($key, $store=null) | |
getStreetLines ($store=null) | |
getFormat ($code) | |
Protected Attributes | |
$_config | |
$_streetLines | |
$_formatTemplate = array() |
Definition at line 32 of file Address.php.
getBookUrl | ( | ) |
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 | ( | ) |
getDeleteUrl | ( | ) |
getEditUrl | ( | ) |
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 }
$_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.