/** * Init multiline element * * @param array $attributes */ public function __construct($attributes = array()) { if (!isset($attributes['line_count'])) { Mage::throwException(Mage::helper('xmlconnect')->__('"line_count" attribute is required for "multiline" element.')); } parent::__construct($attributes); $this->setType('multiline'); }
/** * Init validator rule element abstract * * @param array $attributes */ public function __construct($attributes = array()) { parent::__construct($attributes); $this->_renderer = Mage_XmlConnect_Model_Simplexml_Form::getValidatorRuleRenderer(); $this->_setDefaultValidatorTypeMessages(); if (isset($attributes['type'])) { $this->setType($attributes['type']); } }
/** * Init textarea element * * @param array $attributes */ public function __construct($attributes = array()) { parent::__construct($attributes); $this->setType('textarea'); }
/** * Init checkbox element * * @param array $attributes */ public function __construct($attributes = array()) { parent::__construct($attributes); $this->setType('checkbox'); }
/** * Init fieldset object * * @param array $attributes */ public function __construct($attributes = array()) { parent::__construct($attributes); $this->_renderer = Mage_XmlConnect_Model_Simplexml_Form::getFieldsetRenderer(); $this->setType('fieldset'); }
/** * Init password element * * @param array $attributes */ public function __construct($attributes = array()) { parent::__construct($attributes); $this->setType('password'); }