/** * 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 */ function MoodleQuickForm_warning($elementName = null, $elementClass = 'notifyproblem', $text = null) { parent::HTML_QuickForm_static($elementName, null, $text); $this->_type = 'warning'; if (is_null($elementClass)) { $elementClass = 'notifyproblem'; } $this->_class = $elementClass; }
function MoodleQuickForm_static($elementName = null, $elementLabel = null, $text = null) { parent::HTML_QuickForm_static($elementName, $elementLabel, $text); }
function HTML_QuickForm_SubForm($name = null, $label = null, $form = null) { if ($form !== null) { $this->setForm($form); } HTML_QuickForm_static::HTML_QuickForm_static($name, $label); }