|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 00003 // +----------------------------------------------------------------------+ 00004 // | PHP version 4.0 | 00005 // +----------------------------------------------------------------------+ 00006 // | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | 00007 // +----------------------------------------------------------------------+ 00008 // | This source file is subject to version 2.0 of the PHP license, | 00009 // | that is bundled with this package in the file LICENSE, and is | 00010 // | available at through the world-wide-web at | 00011 // | http://www.php.net/license/2_02.txt. | 00012 // | If you did not receive a copy of the PHP license and are unable to | 00013 // | obtain it through the world-wide-web, please send a note to | 00014 // | license@php.net so we can mail you a copy immediately. | 00015 // +----------------------------------------------------------------------+ 00016 // | Authors: Adam Daniel <adaniel1@eesus.jnj.com> | 00017 // | Bertrand Mansion <bmansion@mamasam.com> | 00018 // +----------------------------------------------------------------------+ 00019 00020 require_once("HTML/QuickForm/button.php"); 00021 00031 class MoodleQuickForm_button extends HTML_QuickForm_button 00032 { 00038 var $_helpbutton=''; 00039 function MoodleQuickForm_button($elementName=null, $value=null, $attributes=null) { 00040 parent::HTML_QuickForm_button($elementName, $value, $attributes); 00041 } 00049 function setHelpButton($helpbuttonargs, $function='helpbutton'){ 00050 debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead'); 00051 } 00058 function getHelpButton(){ 00059 return $this->_helpbutton; 00060 } 00066 function getElementTemplateType(){ 00067 if ($this->_flagFrozen){ 00068 return 'nodisplay'; 00069 } else { 00070 return 'default'; 00071 } 00072 } 00073 } //end class MoodleQuickForm_button