Example #1
0
 /**
  * @brief	Constructeur de classe
  *
  *
  * @author	francoisespinet
  * @version 1 mars 2012 - 11:58:44
  */
 function __construct($sId)
 {
     //appel du constructeur du parent
     parent::__construct($sId);
     //utilisation de notre dé notre décorateur joli
     $this->setDecorators(array(new Projet_Form_Decorator_RemAjBoutons()));
 }
Example #2
0
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->bsUtils = new Zendstrap_Form_MyBootstrapUtils();
     #Garanto a apresentação padrão de layout
     if (is_null($this->getAttrib('class'))) {
         $this->setColorLayout();
     }
 }
 /**
  * Create a button to toggle all cyhackboxes found by a given jQuery selector
  *
  * Specify the 'selector' in the options http://api.jquery.com/category/selectors/
  *
  * Usage:
  * $element = new \Gems_JQuery_Form_Element_ToggleCheckboxes('name', array('selector'=>'input[name^=oid]')
  *
  * @param type $spec
  * @param type $options
  */
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
 }
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->addClass($this->_elementClass);
 }
 public function __construct($spec = null, $options = null)
 {
     parent::__construct($spec, $options);
     $this->removeDecorator('DtDdWrapper')->setAttribs(array('class' => 'ui-button float-right ui-state-default ui-corner-all'))->setLabel($options['label']);
 }