Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/form/text.php
Go to the documentation of this file.
00001 <?php
00002 require_once("HTML/QuickForm/text.php");
00003 
00010 class MoodleQuickForm_text extends HTML_QuickForm_text{
00016     var $_helpbutton='';
00017     var $_hiddenLabel=false;
00018 
00019     function MoodleQuickForm_text($elementName=null, $elementLabel=null, $attributes=null) {
00020         parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
00021     }
00022 
00023     function setHiddenLabel($hiddenLabel){
00024         $this->_hiddenLabel = $hiddenLabel;
00025     }
00026     function toHtml(){
00027         if ($this->_hiddenLabel){
00028             $this->_generateId();
00029             return '<label class="accesshide" for="'.$this->getAttribute('id').'" >'.
00030                         $this->getLabel().'</label>'.parent::toHtml();
00031         } else {
00032              return parent::toHtml();
00033         }
00034     }
00035 
00043     function setHelpButton($helpbuttonargs, $function='helpbutton'){
00044         debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
00045     }
00052     function getHelpButton(){
00053         return $this->_helpbutton;
00054     }
00062     function getElementTemplateType(){
00063         if ($this->_flagFrozen){
00064             return 'static';
00065         } else {
00066             return 'default';
00067         }
00068     }
00069 }
 All Data Structures Namespaces Files Functions Variables Enumerations