/** * 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); }
/** * 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); } }
/** * Constructor * * @access public */ public function HTML_QuickForm_Renderer_Default() { parent::__construct(); }
/** * 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(); }
/** * Accepts a renderer * * @param HTML_QuickForm_Renderer $renderer a HTML_QuickForm_Renderer object */ function accept(&$renderer) { $this->_text .= $this->getHelpButton(); $renderer->renderHeader($this); }
/** * 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; }
/** * 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(); } }
/** * 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); }
/** * 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; }
/** * 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()); }