00001 <?php 00002 00003 namespace Habari; 00004 00005 00010 class FormControlPassword extends FormControlText 00011 { 00012 00016 public function _extend() 00017 { 00018 $this->properties['type'] = 'password'; 00019 } 00020 00027 public function get( Theme $theme ) 00028 { 00029 $this->vars['value'] = $this->value == '' ? '' : substr( md5( $this->value ), 0, 8 ); 00030 return parent::get($theme); 00031 } 00032 00033 00034 } 00035 00036 ?>