Source for file jFormsControlSecret.class.php

Documentation is available at jFormsControlSecret.class.php

  1. <?php
  2. /**
  3. @package     jelix
  4. @subpackage  forms
  5. @author      Laurent Jouanneau
  6. @contributor Loic Mathaud
  7. @copyright   2006-2008 Laurent Jouanneau
  8. @copyright   2007 Loic Mathaud
  9. @link        http://www.jelix.org
  10. @licence     http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
  11. */
  12.  
  13. /**
  14.  *
  15.  * @package     jelix
  16.  * @subpackage  forms
  17.  */
  18. class jFormsControlSecret extends jFormsControl {
  19.     public $type='secret';
  20.     public $size=0;
  21.  
  22.     function getDisplayValue($value){
  23.         return str_repeat("*"strlen($value));
  24.     }
  25. }

Documentation generated on Wed, 04 Jan 2017 22:54:54 +0100 by phpDocumentor 1.4.3