Beispiel #1
0
 /**
  * Constructor
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
 }
 /**
  * Accepts a renderer
  *
  * @param HTML_QuickForm_Renderer $renderer An HTML_QuickForm_Renderer object
  * @param bool $required Whether a group is required
  * @param string $error An error message associated with a group
  */
 function accept(&$renderer, $required = false, $error = null)
 {
     $renderer->renderElement($this, $required, $error);
 }
Beispiel #3
0
 /**
  * Accepts a renderer
  *
  * @param HTML_QuickForm_Renderer $renderer An HTML_QuickForm_Renderer object
  * @param bool $required Whether a group is required
  * @param string $error An error message associated with a group
  */
 public function accept(&$renderer, $required = false, $error = null)
 {
     if ($this->is_tagging_enabled()) {
         $renderer->renderElement($this, $required, $error);
     } else {
         $renderer->renderHidden($this);
     }
 }
Beispiel #4
0
 /**
  * Constructor
  *
  * @access public
  */
 public function HTML_QuickForm_Renderer_Default()
 {
     parent::__construct();
 }
Beispiel #5
0
 /**
  * Constructor
  *
  * @param collecthidden bool    true: collect all hidden elements
  * @access public
  */
 public function __construct($collecthidden = false)
 {
     parent::__construct();
     $this->_collectHidden = $collecthidden;
     $this->_obj = new QuickformForm();
 }
Beispiel #6
0
 /**
  * Accepts a renderer
  *
  * @param HTML_QuickForm_Renderer $renderer a HTML_QuickForm_Renderer object
  */
 function accept(&$renderer)
 {
     $this->_text .= $this->getHelpButton();
     $renderer->renderHeader($this);
 }
Beispiel #7
0
 /**
  * Constructor
  *
  * @param  bool    true: collect all hidden elements into string; false: process them as usual form elements
  * @param  bool    true: render an array of labels to many labels, $key 0 to 'label' and the oterh to "label_$key"
  * @access public
  */
 public function __construct($collectHidden = false, $staticLabels = false)
 {
     parent::__construct();
     $this->_collectHidden = $collectHidden;
     $this->_staticLabels = $staticLabels;
 }
Beispiel #8
0
 /**
  * Displays the HTML to the screen
  *
  * @since     3.3.2
  * @access   public
  */
 function display()
 {
     if (isset($this->_renderer) && method_exists($this->_renderer, 'display')) {
         // Display output directly from renderer.
         return $this->_renderer->display();
     } else {
         // Fallback on old default.
         return $this->toHtml();
     }
 }
Beispiel #9
0
 /**
  * Accepts a renderer
  *
  * @param HTML_QuickForm_Renderer $renderer a HTML_QuickForm_Renderer object
  */
 function accept(&$renderer, $required = false, $error = null)
 {
     $this->_text .= $this->getHelpButton();
     $renderer->renderHeader($this);
 }
Beispiel #10
0
 /**
  * Constructor
  */
 public function __construct($namespace = '')
 {
     $this->namespace = $namespace;
     $this->_group_template = $this->_default_group_template;
     parent::__construct();
 }
 /**
  * Constructor
  *
  * @param HTML_Template_ITX|HTML_Template_Sigma     Template object to use
  */
 function __construct(&$tpl)
 {
     parent::__construct();
     $this->_tpl =& $tpl;
     $this->_tpl->setCurrentBlock('qf_main_loop');
 }
 /**
  * Constructor
  *
  * @param HTML_Template_IT|HTML_Template_Sigma   Template object to use
  */
 function __construct(&$tpl)
 {
     parent::__construct();
     $this->_tpl =& $tpl;
 }
Beispiel #13
0
 /**
  * Return the array for smarty
  * 
  * @return type
  */
 public function display()
 {
     $this->setDefaults();
     $renderer = \HTML_QuickForm_Renderer::factory('centreon');
     $this->formProcessor->render($renderer);
     $this->formProcessor->addRecursiveFilter("trim");
     return $this->rulesToArray($renderer->toArray());
 }