Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/form/file.php
Go to the documentation of this file.
00001 <?php
00002 require_once('HTML/QuickForm/file.php');
00003 
00010 class MoodleQuickForm_file extends HTML_QuickForm_file{
00016     var $_helpbutton='';
00017     function MoodleQuickForm_file($elementName=null, $elementLabel=null, $attributes=null) {
00018         debugging('file forms element is deprecated, please use new filepicker instead');
00019         parent::HTML_QuickForm_file($elementName, $elementLabel, $attributes);
00020     }
00028     function setHelpButton($helpbuttonargs, $function='helpbutton'){
00029         debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
00030     }
00038     function getHelpButton(){
00039         return $this->_helpbutton;
00040     }
00041 
00045     function onQuickFormEvent($event, $arg, &$caller)
00046     {
00047         if ($event == 'createElement') {
00048             $className = get_class($this);
00049             $this->$className($arg[0], $arg[1].' ('.get_string('maxsize', '', display_size($caller->getMaxFileSize())).')', $arg[2]);
00050             return true;
00051         }
00052         return parent::onQuickFormEvent($event, $arg, $caller);
00053     } // end func onQuickFormEvent
00059     function getElementTemplateType(){
00060         if ($this->_flagFrozen){
00061             return 'static';
00062         } else {
00063             return 'default';
00064         }
00065     }
00066 
00067 }
 All Data Structures Namespaces Files Functions Variables Enumerations