
Public Member Functions | |
| getId () | |
| getHtmlId () | |
| getCurrentUrl ($params=array()) | |
| getButtonHtml ($label, $onclick, $class='', $id=null) | |
| getGlobalIcon () | |
Protected Member Functions | |
| _addBreadcrumb ($label, $title=null, $link=null) | |
Definition at line 34 of file Widget.php.
| _addBreadcrumb | ( | $ | label, | |
| $ | title = null, |
|||
| $ | link = null | |||
| ) | [protected] |
Definition at line 54 of file Widget.php.
00055 { 00056 $this->getLayout()->getBlock('breadcrumbs')->addLink($label, $title, $link); 00057 }
| getButtonHtml | ( | $ | label, | |
| $ | onclick, | |||
| $ | class = '', |
|||
| $ | id = null | |||
| ) |
Create buttonn and return its html
| string | $label | |
| string | $onclick | |
| string | $class | |
| string | $id |
Definition at line 68 of file Widget.php.
00068 { 00069 return $this->getLayout()->createBlock('adminhtml/widget_button') 00070 ->setData(array( 00071 'label' => $label, 00072 'onclick' => $onclick, 00073 'class' => $class, 00074 'type' => 'button', 00075 'id' => $id, 00076 )) 00077 ->toHtml(); 00078 }
| getCurrentUrl | ( | $ | params = array() |
) |
Reimplemented in Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Grid.
Definition at line 49 of file Widget.php.
| getGlobalIcon | ( | ) |
Definition at line 80 of file Widget.php.
00081 { 00082 return '<img src="'.$this->getSkinUrl('images/fam_link.gif').'" alt="'.$this->__('Global Attribute').'" title="'.$this->__('This attribute shares the same value in all the stores').'" class="attribute-global"/>'; 00083 }
| getHtmlId | ( | ) |
Reimplemented in Mage_Adminhtml_Block_Dashboard_Graph, Mage_Adminhtml_Block_Sales_Order_View_Giftmessage, and Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract.
Definition at line 44 of file Widget.php.
00045 { 00046 return $this->getId(); 00047 }
| getId | ( | ) |
Retrieve object id
Reimplemented from Varien_Object.
Definition at line 36 of file Widget.php.
00037 { 00038 if ($this->getData('id')===null) { 00039 $this->setData('id', 'id_'.md5(microtime())); 00040 } 00041 return $this->getData('id'); 00042 }
1.5.8