Public Member Functions | |
__construct () | |
getModes () | |
getSelectorLabel () | |
isMode ($mode) | |
Protected Attributes | |
$_modes |
Definition at line 34 of file Selector.php.
__construct | ( | ) |
Set block template and get available modes
Reimplemented from Varien_Object.
Definition at line 48 of file Selector.php.
00049 { 00050 $this->setTemplate('urlrewrite/selector.phtml'); 00051 $this->_modes = array( 00052 'category' => Mage::helper('adminhtml')->__('For category'), 00053 'product' => Mage::helper('adminhtml')->__('For product'), 00054 'id' => Mage::helper('adminhtml')->__('Custom'), 00055 ); 00056 }
getModes | ( | ) |
getSelectorLabel | ( | ) |
Label getter
Definition at line 73 of file Selector.php.
00074 { 00075 return Mage::helper('adminhtml')->__('Create Urlrewrite:'); 00076 }
isMode | ( | $ | mode | ) |
Check whether selection is in specified mode
string | $mode |
Definition at line 84 of file Selector.php.
00085 { 00086 return $this->getRequest()->has($mode); 00087 }
$_modes [protected] |
Definition at line 42 of file Selector.php.