
Public Member Functions | |
| _construct () | |
| showPrefix () | |
| isPrefixRequired () | |
| getPrefixOptions () | |
| showMiddlename () | |
| showSuffix () | |
| isSuffixRequired () | |
| getSuffixOptions () | |
| getClassName () | |
| getContainerClassName () | |
Protected Member Functions | |
| _showConfig ($key) | |
Definition at line 27 of file Name.php.
| _construct | ( | ) |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 29 of file Name.php.
00030 { 00031 parent::_construct(); 00032 00033 // default template location 00034 $this->setTemplate('customer/widget/name.phtml'); 00035 }
| _showConfig | ( | $ | key | ) | [protected] |
| getClassName | ( | ) |
| getContainerClassName | ( | ) |
Definition at line 116 of file Name.php.
00117 { 00118 $class = $this->getClassName(); 00119 $class .= $this->showPrefix() ? '-prefix' : ''; 00120 $class .= $this->showMiddlename() ? '-middlename' : ''; 00121 $class .= $this->showSuffix() ? '-suffix' : ''; 00122 return $class; 00123 }
| getPrefixOptions | ( | ) |
Definition at line 67 of file Name.php.
00068 { 00069 $options = trim($this->getConfig('prefix_options')); 00070 if (!$options) { 00071 return false; 00072 } 00073 $options = explode(';', $options); 00074 foreach ($options as &$v) { 00075 $v = $this->htmlEscape(trim($v)); 00076 } 00077 return $options; 00078 }
| getSuffixOptions | ( | ) |
Definition at line 95 of file Name.php.
00096 { 00097 $options = trim($this->getConfig('suffix_options')); 00098 if (!$options) { 00099 return false; 00100 } 00101 $options = explode(';', $options); 00102 foreach ($options as &$v) { 00103 $v = $this->htmlEscape(trim($v)); 00104 } 00105 return $options; 00106 }
| isPrefixRequired | ( | ) |
| isSuffixRequired | ( | ) |
| showMiddlename | ( | ) |
Definition at line 80 of file Name.php.
00081 { 00082 return $this->_showConfig('middlename_show'); 00083 }
| showPrefix | ( | ) |
Can show prefix
Definition at line 57 of file Name.php.
00058 { 00059 return $this->_showConfig('prefix_show'); 00060 }
| showSuffix | ( | ) |
Definition at line 85 of file Name.php.
00086 { 00087 return $this->_showConfig('suffix_show'); 00088 }
1.5.8