Example #1
0
 /**
  * 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;
 }
Example #2
0
 function MoodleQuickForm_static($elementName = null, $elementLabel = null, $text = null)
 {
     parent::HTML_QuickForm_static($elementName, $elementLabel, $text);
 }
Example #3
0
 function HTML_QuickForm_SubForm($name = null, $label = null, $form = null)
 {
     if ($form !== null) {
         $this->setForm($form);
     }
     HTML_QuickForm_static::HTML_QuickForm_static($name, $label);
 }