2006-09-24 17:04:51 +00:00
|
|
|
<?php
|
|
|
|
require_once('HTML/QuickForm/password.php');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* HTML class for a password type element
|
2006-11-13 07:43:22 +00:00
|
|
|
*
|
2006-09-24 17:04:51 +00:00
|
|
|
* @author Jamie Pratt
|
|
|
|
* @access public
|
|
|
|
*/
|
2006-10-12 07:33:57 +00:00
|
|
|
class MoodleQuickForm_password extends HTML_QuickForm_password{
|
2006-09-24 17:04:51 +00:00
|
|
|
/**
|
|
|
|
* html for help button, if empty then no help
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
var $_helpbutton='';
|
2009-06-07 09:43:27 +00:00
|
|
|
function MoodleQuickForm_password($elementName=null, $elementLabel=null, $attributes=null) {
|
|
|
|
parent::HTML_QuickForm_password($elementName, $elementLabel, $attributes);
|
|
|
|
}
|
2006-09-24 17:04:51 +00:00
|
|
|
/**
|
|
|
|
* set html for help button
|
|
|
|
*
|
|
|
|
* @access public
|
|
|
|
* @param array $help array of arguments to make a help button
|
2006-11-13 07:43:22 +00:00
|
|
|
* @param string $function function name to call to get html
|
2006-09-24 17:04:51 +00:00
|
|
|
*/
|
2006-11-13 07:43:22 +00:00
|
|
|
function setHelpButton($helpbuttonargs, $function='helpbutton'){
|
2009-12-30 15:19:55 +00:00
|
|
|
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
|
2006-09-24 17:04:51 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* get html for help button
|
|
|
|
*
|
|
|
|
* @access public
|
|
|
|
* @return string html for help button
|
|
|
|
*/
|
|
|
|
function getHelpButton(){
|
|
|
|
return $this->_helpbutton;
|
|
|
|
}
|
|
|
|
}
|