Mage_Adminhtml_Block_Urlrewrite_Selector Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Urlrewrite_Selector:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getModes ()
 getSelectorLabel ()
 isMode ($mode)

Protected Attributes

 $_modes


Detailed Description

Definition at line 34 of file Selector.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

getModes (  ) 

Available modes getter

Returns:
array

Definition at line 63 of file Selector.php.

00064     {
00065         return $this->_modes;
00066     }

getSelectorLabel (  ) 

Label getter

Returns:
array

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

Parameters:
string $mode
Returns:
bool

Definition at line 84 of file Selector.php.

00085     {
00086         return $this->getRequest()->has($mode);
00087     }


Member Data Documentation

$_modes [protected]

Definition at line 42 of file Selector.php.


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

Generated on Sat Jul 4 17:23:06 2009 for Magento by  doxygen 1.5.8