Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/form/radio.php
Go to the documentation of this file.
00001 <?php
00002 require_once('HTML/QuickForm/radio.php');
00003 
00010 class MoodleQuickForm_radio extends HTML_QuickForm_radio{
00016     var $_helpbutton='';
00017     function MoodleQuickForm_radio($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) {
00018         parent::HTML_QuickForm_radio($elementName, $elementLabel, $text, $value, $attributes);
00019     }
00027     function setHelpButton($helpbuttonargs, $function='helpbutton'){
00028         debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
00029     }
00036     function getHelpButton(){
00037         return $this->_helpbutton;
00038     }
00039 
00045     function getElementTemplateType(){
00046         if ($this->_flagFrozen){
00047             return 'static';
00048         } else {
00049             return 'default';
00050         }
00051     }
00057     function getFrozenHtml()
00058     {
00059         $output = '<input type="radio" disabled="disabled" id="'.$this->getAttribute('id').'" ';
00060         if ($this->getChecked()) {
00061             $output .= 'checked="checked" />'.$this->_getPersistantData();
00062         } else {
00063             $output .= '/>';
00064         }
00065         return $output;
00066     }
00067     function toHtml()
00068     {
00069         return '<span>' . parent::toHtml() . '</span>';
00070     }
00071 }
 All Data Structures Namespaces Files Functions Variables Enumerations