Mage_Adminhtml_Block_Widget Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Options Mage_Adminhtml_Block_Catalog_Product_Attribute_New_Product_Created Mage_Adminhtml_Block_Catalog_Product_Created Mage_Adminhtml_Block_Catalog_Product_Edit Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute_Tab_Inventory Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute_Tab_Websites Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Inventory Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Option Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Abstract Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Price_Tier Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config Mage_Adminhtml_Block_Catalog_Product_Helper_Form_Gallery_Content Mage_Adminhtml_Block_Dashboard_Abstract Mage_Adminhtml_Block_Extensions_Config_Edit Mage_Adminhtml_Block_Media_Editor Mage_Adminhtml_Block_Media_Uploader Mage_Adminhtml_Block_Newsletter_Template_Edit Mage_Adminhtml_Block_Newsletter_Template_Preview Mage_Adminhtml_Block_Sales_Order_Abstract Mage_Adminhtml_Block_Sales_Order_Create_Abstract Mage_Adminhtml_Block_Sales_Order_Create_Newsletter_Form Mage_Adminhtml_Block_Sales_Order_View_Giftmessage Mage_Adminhtml_Block_System_Cache_Edit Mage_Adminhtml_Block_System_Config_Edit Mage_Adminhtml_Block_System_Config_Tabs Mage_Adminhtml_Block_System_Design_Edit Mage_Adminhtml_Block_System_Email_Template_Edit Mage_Adminhtml_Block_System_Email_Template_Preview Mage_Adminhtml_Block_Tax_Rate_ImportExport Mage_Adminhtml_Block_Widget_Accordion Mage_Adminhtml_Block_Widget_Accordion_Item Mage_Adminhtml_Block_Widget_Button Mage_Adminhtml_Block_Widget_Form Mage_Adminhtml_Block_Widget_Grid Mage_Adminhtml_Block_Widget_Grid_Column Mage_Adminhtml_Block_Widget_Grid_Massaction_Abstract Mage_Adminhtml_Block_Widget_Grid_Massaction_Item Mage_Adminhtml_Block_Widget_Tabs Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Search Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Selection Mage_Downloadable_Block_Adminhtml_Catalog_Product_Edit_Tab_Downloadable Mage_Downloadable_Block_Adminhtml_Catalog_Product_Edit_Tab_Downloadable_Samples Mage_Weee_Block_Renderer_Weee_Tax

List of all members.

Public Member Functions

 getId ()
 getHtmlId ()
 getCurrentUrl ($params=array())
 getButtonHtml ($label, $onclick, $class='', $id=null)
 getGlobalIcon ()

Protected Member Functions

 _addBreadcrumb ($label, $title=null, $link=null)


Detailed Description

Definition at line 34 of file Widget.php.


Member Function Documentation

_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

Parameters:
string $label
string $onclick
string $class
string $id
Returns:
string

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.

00050     {
00051         return $this->getUrl('*/*/*', array('_current'=>true));
00052     }

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 (  ) 

getId (  ) 

Retrieve object id

Returns:
mixed

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     }


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