Example #1
0
 public function __construct($spec, $options = array())
 {
     $options = array_merge($options, array('disableLoadDefaultDecorators' => true));
     parent::__construct($spec, $options);
     $this->_decorator = new Monkeys_Form_Decorator_Composite();
     $this->addDecorator($this->_decorator);
 }
Example #2
0
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->bsUtils = new Zendstrap_Form_MyBootstrapUtils();
 }
 public function __construct($spec = null, $options = null, $required = false)
 {
     parent::__construct($spec, $options);
     $this->setLabel($options['label'])->setChecked($options['value'])->setRequired($required)->setDescription($options['desc'] ? $options['desc'] : null)->setCheckedValue($options['checkedValue'])->setUncheckedValue($options['uncheckedValue'])->setDecorators(array(new vkNgine_Form_Element_Decorator_Checkbox(array('placement' => $options['placement'], 'labelClass' => 'empty'))));
 }
Example #4
0
 /**
  * Constructor
  *
  * $spec may be:
  * - string: name of element
  * - array: options with which to configure element
  * - \Zend_Config: \Zend_Config with options for configuring element
  *
  * @param  string|array|\Zend_Config $spec
  * @param  array|\Zend_Config $options
  * @return void
  * @throws \Zend_Form_Exception if no element name after initialization
  */
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->setAttrib('label_class', 'radio-inline');
 }
Example #5
0
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->setAttrib('class', 'z-form-checkbox');
 }