Source for file jFormsControlSecretConfirm.class.php

Documentation is available at jFormsControlSecretConfirm.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 jFormsControlSecretConfirm extends jFormsControl {
  19.     public $type='secretconfirm';
  20.     public $size=0;
  21.     /**
  22.      * ref value of the associated secret control
  23.      */
  24.     public $primarySecret='';
  25.  
  26.     function check(){
  27.         if($this->container->data[$this->ref!= $this->form->getData($this->primarySecret))
  28.             return $this->container->errors[$this->refjForms::ERRDATA_INVALID;
  29.         return null;
  30.     }
  31. }

Documentation generated on Mon, 26 Oct 2015 21:54:15 +0100 by phpDocumentor 1.4.3