/** * Class constructor * * @param string $elementLabel (optional)Link label * @param string $href (optional)Link href * @param string $text (optional)Link display text * @param mixed $attributes (optional)Either a typical HTML attribute string * or an associative array * @since 1.0 * @access public * @return void * @throws */ public function __construct($elementName = null, $elementLabel = null, $href = null, $text = null, $attributes = null) { parent::__construct($elementName, $elementLabel, $attributes); $this->_persistantFreeze = false; $this->_type = 'link'; $this->setHref($href); $this->_text = $text; }
/** * Class constructor * * @param string $elementName Header name * @param string $text Header text * @access public * @return void */ function HTML_QuickForm_header($elementName = null, $text = null) { if (!empty($elementName)) { $text = $elementName; } parent::__construct($elementName, null, $text); $this->_type = 'header'; }
/** * Class constructor * * @param string $elementName Header name * @param string $text Header text * @access public * @return void */ public function __construct($elementName = null, $text = null) { if (!empty($elementName)) { $text = $elementName; } parent::__construct($elementName, null, $text); $this->_type = 'header'; }
/** * constructor * * @param string $elementName (optional) name of the field * @param string $elementClass (optional) show as warning or notification => 'notifyproblem' * @param string $text (optional) Text to put in warning field */ public function __construct($elementName = null, $elementClass = 'notifyproblem', $text = null) { parent::__construct($elementName, null, $text); $this->_type = 'warning'; if (is_null($elementClass)) { $elementClass = 'notifyproblem'; } $this->_class = $elementClass; }
/** * Class constructor * * @param mixed $elementName custom element name or if its array then first element * is element name and the second one is template name */ function __construct($elementName = null, $elementLabel = null, $vars = null, $visible = true) { if (is_array($elementName)) { $name = $elementName[0]; $templateId = $elementName[1]; } else { $name = $elementName; $templateId = $elementName; } parent::__construct($name, $elementLabel); $this->_type = 'custom'; $this->templateId = $templateId; $this->vars = $vars; $this->visible = $visible; }
/** * Class constructor * * @param string $name element name * @param string $text raw HTML to add * @access public * @return void */ function __construct($name = null, $text = null) { parent::__construct($name, null, $text); $this->_type = 'html'; }
/** * constructor * * @param string $elementName (optional) name of the text field * @param string $elementLabel (optional) text field label * @param string $text (optional) Text to put in text field */ public function __construct($elementName = null, $elementLabel = null, $text = null) { parent::__construct($elementName, $elementLabel, $text); }
/** * Class constructor * * @param string $text raw HTML to add * @access public * @return void */ public function __construct($text = null) { parent::__construct(null, null, $text); $this->_type = 'html'; }
/** * Class constructor * * @param string $elementName Header name * @param string $text Header text * @access public * @return void */ public function __construct($elementName = null, $text = null) { parent::__construct($elementName, null, $text); $this->_type = 'header'; }
/** * Class constructor * * @param string $text raw HTML to add * @access public * @return void */ public function __construct($label = null, $text = null, $attributes = null) { parent::__construct(null, $label, $text, $attributes); $this->_type = 'html'; }
/** * Class constructor * * @param string $elementName Header name */ function __construct($elementName = null, $text = null) { parent::__construct($elementName, null, $text); $this->_type = 'break'; }