* @package tao */ class tao_helpers_form_elements_xhtml_Password extends tao_helpers_form_elements_Password { use XhtmlRenderingTrait; /** * Short description of method feed * * @access public * @author Joel Bout, */ public function feed() { if (isset($_POST[$this->name]) && is_array($_POST[$this->name])) { $this->setValue(array_values($_POST[$this->name])); } } /** * Short description of method render * * @access public * @author Joel Bout, * @return string */ public function render() { $returnValue = (string) ''; // custom label rendering if (! isset($this->attributes['noLabel'])) { $returnValue .= ""; } else { unset($this->attributes['noLabel']); } $returnValue .= "renderAttributes(); $returnValue .= ' value="" />

'; $returnValue .= ""; $returnValue .= "renderAttributes(); $returnValue .= ' value="" />'; return (string) $returnValue; } /** * returns the md5 hash of the password * * @access public * @author Joel Bout, * @return mixed */ public function getEvaluatedValue() { $returnValue = null; $arr = $this->getRawValue(); $returnValue = core_kernel_users_Service::getPasswordHash()->encrypt(array_shift($arr)); return $returnValue; } }