libdir.'/form/password.php'); /** * HTML class for a password type element with unmask option * * @author Petr Skoda * @access public */ class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password { function MoodleQuickForm_passwordunmask($elementName=null, $elementLabel=null, $attributes=null) { parent::MoodleQuickForm_password($elementName, $elementLabel, $attributes); } function toHtml() { if ($this->_flagFrozen) { return $this->getFrozenHtml(); } else { $id = $this->getAttribute('id'); $unmask = get_string('unmaskpassword', 'form'); $unmaskjs = ''; return $this->_getTabs() . '_getAttrString($this->_attributes) . ' />'.$unmaskjs; } } //end func toHtml } ?>