Item
[ class tree: Item ] [ index: Item ] [ all elements ]

Source for file Password.php

Documentation is available at Password.php

  1. <?php
  2. /**
  3.  * Formagic
  4.  *
  5.  * LICENCE
  6.  *
  7.  * This source file is subject to the new BSD license that is bundled
  8.  * with this package in the file LICENSE.txt.
  9.  * It is also available through the world-wide-web at
  10.  * http://formagic.weasle.de/licence.txt
  11.  * If you did not receive a copy of the license and are unable to
  12.  * obtain it through the world-wide-web, please send an email
  13.  * to licence@weasle.de so we can send you a copy immediately.
  14.  *
  15.  * @category    Formagic
  16.  * @package     Item
  17.  * @author      Florian Sonnenburg
  18.  * @copyright   Copyright (c) 2007 Florian Sonnenburg
  19.  * @license     http://formagic.weasle.de/licence.txt     New BSD License
  20.  * @revision    $Revision: 11 $
  21.  */
  22.  
  23. /**
  24.  * Password type input field für formagic formgenerator
  25.  *
  26.  * @category    Formagic
  27.  * @package     Item
  28.  * @author      Florian Sonnenburg
  29.  * @copyright   Copyright (c) 2007
  30.  * @version     $Id: Password.php 11 2007-08-12 20:02:57Z meweasle $
  31.  */
  32.  
  33.     /**
  34.      * Returns string representation of password item.
  35.      *
  36.      * Will not render clear text password to HTML
  37.      *
  38.      * @return string 
  39.      */
  40.     public function getHtml()
  41.     {
  42.         $val $this->getValue();
  43.  
  44.         if ($this->_isBlocked{
  45.             $str str_repeat('*'strlen($val));
  46. //            if ($this->isPostItem) {
  47. //                $str .= '<input type="hidden" name="' . $this->name . '" value="' . $val . '" />';
  48. //            }
  49.         else {
  50. //            $str = '<input type="password" name="' . $this->name . '" id="' . $this->id .
  51. //                '" value="' . $val . '"' . $this->_getAttributeStr() . ' />';
  52.             $str "<input type=\"password\" name=\"{$this->name}\" id=\"{$this->id}\"" .
  53.                 $this->_getAttributeStr(' />';        }
  54.         return $str;
  55.     }
  56.  

Documentation generated on Thu, 23 Aug 2007 00:29:46 +0200 by phpDocumentor 1.4.0