Esempio n. 1
0
 /**
  * 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');
 }
Esempio n. 2
0
 /**
  * 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']);
     }
 }
Esempio n. 3
0
 /**
  * Init textarea element
  *
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('textarea');
 }
Esempio n. 4
0
 /**
  * Init checkbox element
  *
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('checkbox');
 }
Esempio n. 5
0
 /**
  * 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');
 }