Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/form/warning.php
Go to the documentation of this file.
00001 <?php
00002 require_once("HTML/QuickForm/static.php");
00003 
00010 class MoodleQuickForm_warning extends HTML_QuickForm_static{
00011     var $_elementTemplateType='warning';
00017     var $_helpbutton='';
00018     var $_class='';
00019 
00020     function MoodleQuickForm_warning($elementName=null, $elementClass='notifyproblem', $text=null) {
00021         parent::HTML_QuickForm_static($elementName, null, $text);
00022         $this->_type = 'warning';
00023         if (is_null($elementClass)) {
00024             $elementClass = 'notifyproblem';
00025         }
00026         $this->_class = $elementClass;
00027     }
00028 
00036     function setHelpButton($helpbuttonargs, $function='helpbutton'){
00037         debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
00038     }
00039 
00040     function toHtml() {
00041         global $OUTPUT;
00042         return $OUTPUT->notification($this->_text, $this->_class);
00043     }
00044 
00051     function getHelpButton(){
00052         return $this->_helpbutton;
00053     }
00054 
00055     function getElementTemplateType(){
00056         return $this->_elementTemplateType;
00057     }
00058 }
 All Data Structures Namespaces Files Functions Variables Enumerations