libdir.'/form/password.php'); /** * HTML class for a password type element with reveal option * * @author Petr Skoda * @access public */ class MoodleQuickForm_passwordreveal extends MoodleQuickForm_password { function toHtml() { if ($this->_flagFrozen) { return $this->getFrozenHtml(); } else { $id = $this->getAttribute('id'); $reveal = get_string('revealpassword', 'form'); $revealjs = ''; return $this->_getTabs() . '_getAttrString($this->_attributes) . ' />'.$revealjs; } } //end func toHtml } ?>