Mage_Adminhtml_Block_Widget_Form_Element Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Form_Element:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 setElement ($element)
 setForm ($form)
 setFormBlock ($formBlock)

Protected Member Functions

 _beforeToHtml ()

Protected Attributes

 $_element
 $_form
 $_formBlock


Detailed Description

Definition at line 34 of file Element.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 40 of file Element.php.

00041     {
00042         parent::__construct();
00043         $this->setTemplate('widget/form/element.phtml');
00044     }


Member Function Documentation

_beforeToHtml (  )  [protected]

Before rendering html, but after trying to load cache

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 64 of file Element.php.

00065     {
00066         $this->assign('form', $this->_form);
00067         $this->assign('element', $this->_element);
00068         $this->assign('formBlock', $this->_formBlock);
00069 
00070         return parent::_beforeToHtml();
00071     }

setElement ( element  ) 

Definition at line 46 of file Element.php.

00047     {
00048         $this->_element = $element;
00049         return $this;
00050     }

setForm ( form  ) 

Definition at line 52 of file Element.php.

00053     {
00054         $this->_form = $form;
00055         return $this;
00056     }

setFormBlock ( formBlock  ) 

Definition at line 58 of file Element.php.

00059     {
00060         $this->_formBlock = $formBlock;
00061         return $this;
00062     }


Member Data Documentation

$_element [protected]

Definition at line 36 of file Element.php.

$_form [protected]

Definition at line 37 of file Element.php.

$_formBlock [protected]

Definition at line 38 of file Element.php.


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

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