Class Mage_Adminhtml_Block_Widget_Container

Description

Adminhtml container block

Located in /Adminhtml/Block/Widget/Container.php (line 34)

Varien_Object
   |
   --Mage_Core_Block_Abstract
      |
      --Mage_Core_Block_Template
         |
         --Mage_Adminhtml_Block_Template
            |
            --Mage_Adminhtml_Block_Widget_Container
Direct descendents
Class Description
Mage_Adminhtml_Block_Cms_Wysiwyg_Images_Content Wysiwyg Images content block
Mage_Adminhtml_Block_Catalog_Product Catalog manage products block
Mage_Adminhtml_Block_Urlrewrite_Edit Block for Urlrewrites edit form and selectors container
Mage_Adminhtml_Block_Sales_Transactions_Detail Adminhtml transaction detail
Mage_Adminhtml_Block_System_Convert_Gui_Edit_Tab_Wizard Convert profile edit tab
Mage_Adminhtml_Block_Widget_Form_Container Adminhtml form container block
Mage_Adminhtml_Block_Widget_View_Container Adminhtml view container block
Mage_Adminhtml_Block_Widget_Grid_Container Adminhtml grid container block
Mage_Sales_Block_Adminhtml_Recurring_Profile_View Recurring profile view page
Variable Summary
array $_buttons
string $_controller
string $_headerText
Method Summary
Mage_Adminhtml_Block_Widget_Container addButton (string $id, array $data, [integer $level = 0], [integer $sortOrder = 100], [ $area = 'header'], string|null $placement)
string getButtonsHtml ([string $area = null])
string getHeaderCssClass ()
string getHeaderHtml ()
string getHeaderText ()
boolean hasFooterButtons ()
Mage_Adminhtml_Block_Widget_Container updateButton (string $id, [string|null $key = null], mixed $data)
Mage_Adminhtml_Block_Widget_Container _addButton (string $id, array $data, [integer $level = 0], [integer $sortOrder = 100], [ $area = 'header'], string|null $placement)
string _prepareButtonBlockId (string $id)
string _toHtml ()
Mage_Adminhtml_Block_Widget_Container _updateButton (string $id, [string|null $key = null], mixed $data)
Variables
array $_buttons = array(
-1 => array(),0=>array(),1=>array(),)
(line 50)

Array of buttons

  • access: protected
string $_controller = 'empty' (line 42)

So called "container controller" to specify group of blocks participating in some action

  • access: protected

Redefined in descendants as:
string $_headerText = 'Container Widget Header' (line 61)

Header text

  • access: protected

Inherited Variables

Inherited from Mage_Core_Block_Template

Mage_Core_Block_Template::$_baseUrl
Mage_Core_Block_Template::$_jsUrl
Mage_Core_Block_Template::$_showTemplateHints
Mage_Core_Block_Template::$_showTemplateHintsBlocks
Mage_Core_Block_Template::$_template
Mage_Core_Block_Template::$_viewDir
Mage_Core_Block_Template::$_viewVars

Inherited from Mage_Core_Block_Abstract

Mage_Core_Block_Abstract::$_alias
Mage_Core_Block_Abstract::$_anonSuffix
Mage_Core_Block_Abstract::$_childGroups
Mage_Core_Block_Abstract::$_children
Mage_Core_Block_Abstract::$_childrenHtmlCache
Mage_Core_Block_Abstract::$_frameCloseTag
Mage_Core_Block_Abstract::$_frameOpenTag
Mage_Core_Block_Abstract::$_isAnonymous
Mage_Core_Block_Abstract::$_layout
Mage_Core_Block_Abstract::$_messagesBlock
Mage_Core_Block_Abstract::$_nameInLayout
Mage_Core_Block_Abstract::$_parent
Mage_Core_Block_Abstract::$_parentBlock
Mage_Core_Block_Abstract::$_request
Mage_Core_Block_Abstract::$_sortedChildren
Mage_Core_Block_Abstract::$_urlModel
Methods
addButton (line 93)

Public wrapper for protected _addButton method

  • access: public
Mage_Adminhtml_Block_Widget_Container addButton (string $id, array $data, [integer $level = 0], [integer $sortOrder = 100], [ $area = 'header'], string|null $placement)
  • string $id
  • array $data
  • integer $level
  • integer $sortOrder
  • string|null $placement: area, that button should be displayed in ('header', 'footer', null)
  • $area
getButtonsHtml (line 215)

Produce buttons HTML

  • access: public
string getButtonsHtml ([string $area = null])
  • string $area

Redefined in descendants as:
getHeaderHtml (line 265)

Get header HTML

  • access: public
string getHeaderHtml ()

Redefined in descendants as:
getHeaderText (line 245)

Get header text

  • access: public
string getHeaderText ()

Redefined in descendants as:
hasFooterButtons (line 275)

Check if there's anything to display in footer

  • access: public
boolean hasFooterButtons ()
removeButton (line 120)

Public wrapper for the _removeButton() method

  • access: public
Mage_Adminhtml_Block_Widget_Container removeButton (string $id)
  • string $id
updateButton (line 164)

Public wrapper for protected _updateButton method

  • access: public
Mage_Adminhtml_Block_Widget_Container updateButton (string $id, [string|null $key = null], mixed $data)
  • string $id
  • string|null $key
  • mixed $data
_addButton (line 73)

Add a button

  • access: protected
Mage_Adminhtml_Block_Widget_Container _addButton (string $id, array $data, [integer $level = 0], [integer $sortOrder = 100], [ $area = 'header'], string|null $placement)
  • string $id
  • array $data
  • integer $level
  • integer $sortOrder
  • string|null $placement: area, that button should be displayed in ('header', 'footer', null)
  • $area
_addButtonChildBlock (line 202)

Adding child block with specified child's id.

  • access: protected
Mage_Adminhtml_Block_Widget_Button _addButtonChildBlock (string $childId)
  • string $childId
_prepareButtonBlockId (line 191)

Prepare block id for button's id

  • access: protected
string _prepareButtonBlockId (string $id)
  • string $id
_prepareLayout (line 174)

Preparing child blocks for each added button

  • access: protected
Mage_Core_Block_Abstract _prepareLayout ()

Redefinition of:
Mage_Core_Block_Abstract::_prepareLayout()
Preparing global layout

Redefined in descendants as:
_removeButton (line 104)

Remove existing button

  • access: protected
Mage_Adminhtml_Block_Widget_Container _removeButton (string $id)
  • string $id
_toHtml (line 292)

Prepare html output

  • access: protected
string _toHtml ()

Redefinition of:
Mage_Adminhtml_Block_Template::_toHtml()
Prepare html output

Redefined in descendants as:
_updateButton (line 133)

Update specified button property

  • access: protected
Mage_Adminhtml_Block_Widget_Container _updateButton (string $id, [string|null $key = null], mixed $data)
  • string $id
  • string|null $key
  • mixed $data

Inherited Methods

Inherited From Mage_Adminhtml_Block_Template

Mage_Adminhtml_Block_Template::getFormKey()
Mage_Adminhtml_Block_Template::isOutputEnabled()
Mage_Adminhtml_Block_Template::_getUrlModelClass()
Mage_Adminhtml_Block_Template::_toHtml()

Inherited From Mage_Core_Block_Template

Mage_Core_Block_Template::assign()
Mage_Core_Block_Template::fetchView()
Mage_Core_Block_Template::getArea()
Mage_Core_Block_Template::getBaseUrl()
Mage_Core_Block_Template::getCacheKeyInfo()
Mage_Core_Block_Template::getDirectOutput()
Mage_Core_Block_Template::getJsUrl()
Mage_Core_Block_Template::getObjectData()
Mage_Core_Block_Template::getShowTemplateHints()
Mage_Core_Block_Template::getTemplate()
Mage_Core_Block_Template::getTemplateFile()
Mage_Core_Block_Template::renderView()
Mage_Core_Block_Template::setScriptPath()
Mage_Core_Block_Template::setTemplate()
Mage_Core_Block_Template::_construct()
Mage_Core_Block_Template::_toHtml()

Inherited From Mage_Core_Block_Abstract

Mage_Core_Block_Abstract::addToChildGroup()
Mage_Core_Block_Abstract::addToParentGroup()
Mage_Core_Block_Abstract::append()
Mage_Core_Block_Abstract::countChildren()
Mage_Core_Block_Abstract::escapeHtml()
Mage_Core_Block_Abstract::escapeUrl()
Mage_Core_Block_Abstract::formatDate()
Mage_Core_Block_Abstract::formatTime()
Mage_Core_Block_Abstract::getAction()
Mage_Core_Block_Abstract::getAnonSuffix()
Mage_Core_Block_Abstract::getBlockAlias()
Mage_Core_Block_Abstract::getBlockHtml()
Mage_Core_Block_Abstract::getCacheKey()
Mage_Core_Block_Abstract::getCacheKeyInfo()
Mage_Core_Block_Abstract::getCacheLifetime()
Mage_Core_Block_Abstract::getCacheTags()
Mage_Core_Block_Abstract::getChild()
Mage_Core_Block_Abstract::getChildChildHtml()
Mage_Core_Block_Abstract::getChildData()
Mage_Core_Block_Abstract::getChildGroup()
Mage_Core_Block_Abstract::getChildHtml()
Mage_Core_Block_Abstract::getHelper()
Mage_Core_Block_Abstract::getIsAnonymous()
Mage_Core_Block_Abstract::getLayout()
Mage_Core_Block_Abstract::getMessagesBlock()
Mage_Core_Block_Abstract::getModuleName()
Mage_Core_Block_Abstract::getNameInLayout()
Mage_Core_Block_Abstract::getParentBlock()
Mage_Core_Block_Abstract::getRequest()
Mage_Core_Block_Abstract::getSkinUrl()
Mage_Core_Block_Abstract::getSortedChildBlocks()
Mage_Core_Block_Abstract::getSortedChildren()
Mage_Core_Block_Abstract::getUrl()
Mage_Core_Block_Abstract::getUrlBase64()
Mage_Core_Block_Abstract::getUrlEncoded()
Mage_Core_Block_Abstract::helper()
Mage_Core_Block_Abstract::htmlEscape()
Mage_Core_Block_Abstract::insert()
Mage_Core_Block_Abstract::jsQuoteEscape()
Mage_Core_Block_Abstract::setAnonSuffix()
Mage_Core_Block_Abstract::setAttribute()
Mage_Core_Block_Abstract::setBlockAlias()
Mage_Core_Block_Abstract::setChild()
Mage_Core_Block_Abstract::setFrameTags()
Mage_Core_Block_Abstract::setIsAnonymous()
Mage_Core_Block_Abstract::setLayout()
Mage_Core_Block_Abstract::setMessagesBlock()
Mage_Core_Block_Abstract::setNameInLayout()
Mage_Core_Block_Abstract::setParentBlock()
Mage_Core_Block_Abstract::stripTags()
Mage_Core_Block_Abstract::toHtml()
Mage_Core_Block_Abstract::unsetCallChild()
Mage_Core_Block_Abstract::unsetChild()
Mage_Core_Block_Abstract::unsetChildren()
Mage_Core_Block_Abstract::urlEscape()
Mage_Core_Block_Abstract::_afterCacheUrl()
Mage_Core_Block_Abstract::_afterToHtml()
Mage_Core_Block_Abstract::_beforeCacheUrl()
Mage_Core_Block_Abstract::_beforeChildToHtml()
Mage_Core_Block_Abstract::_beforeToHtml()
Mage_Core_Block_Abstract::_construct()
Mage_Core_Block_Abstract::_getChildHtml()
Mage_Core_Block_Abstract::_getUrlModel()
Mage_Core_Block_Abstract::_getUrlModelClass()
Mage_Core_Block_Abstract::_loadCache()
Mage_Core_Block_Abstract::_prepareLayout()
Mage_Core_Block_Abstract::_saveCache()
Mage_Core_Block_Abstract::_toHtml()
Mage_Core_Block_Abstract::__()
Class Constants

Documentation generated on Fri, 11 Feb 2011 16:59:34 +0200 by phpDocumentor 1.4.3