Source for file User.php

Documentation is available at User.php

  1. <?php
  2. /**
  3.  * Form for handling user login.
  4.  * 
  5.  * @author Margus Sellin <margus@bitweb.ee>
  6.  * @copyright Copyright (C) 2011. All rights reserved. Margus Sellin
  7.  * @package Form
  8.  * @project olymp
  9.  * 
  10.  */
  11. class Form_User extends Zend_Form {
  12.     
  13.     /**
  14.      * Initialization method.
  15.      * 
  16.      * Initializes the form with essential elements.
  17.      */
  18.     public function init()
  19.     {
  20.         $username new Zend_Form_Element_Text('username');
  21.         $username->setLabel('Kasutajanimi');
  22.         $username->setRequired(true);
  23.         
  24.         $password new Zend_Form_Element_Password('password');
  25.         $password->setLabel('Parool');
  26.         $password->setRequired(true);
  27.         
  28.         $this->addElement($username);
  29.         $this->addElement($password);
  30.     }
  31. }
  32.  
  33. ?>

Documentation generated on Mon, 20 Jun 2011 05:43:10 +0300 by phpDocumentor 1.4.1