本文整理匯總了PHP中Varien_Data_Form::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Varien_Data_Form::__construct方法的具體用法?PHP Varien_Data_Form::__construct怎麽用?PHP Varien_Data_Form::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Varien_Data_Form
的用法示例。
在下文中一共展示了Varien_Data_Form::__construct方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
/** @var $helper Hackathon_GUAEvent_Helper_Event */
$helper = Mage::helper('hackathon_guaevent/event');
$this->addData(array('id' => 'edit_form', 'method' => 'post', 'use_container' => true));
$fieldset = $this->addFieldset('base_fieldset', array('legend' => $helper->__('General Information')));
$fieldset->addField('trigger_type', 'text', array('name' => 'trigger_type', 'label' => $helper->__('Trigger Type'), 'title' => $helper->__('Trigger Type')));
$fieldset->addField('trigger_data', 'textarea', array('name' => 'trigger_data', 'label' => $helper->__('Trigger Data'), 'title' => $helper->__('Trigger Data')));
$fieldset->addField('event_category', 'text', array('name' => 'event_category', 'label' => $helper->__('Event Category'), 'title' => $helper->__('Event Category'), 'required' => true));
$fieldset->addField('event_action', 'text', array('name' => 'event_action', 'label' => $helper->__('Event Action'), 'title' => $helper->__('Event Action'), 'required' => true));
$fieldset->addField('event_label', 'text', array('name' => 'event_label', 'label' => $helper->__('Event Label'), 'title' => $helper->__('Event Label')));
$fieldset->addField('event_value', 'text', array('name' => 'event_value', 'label' => $helper->__('Event Value'), 'title' => $helper->__('Event Value')));
}