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.  * @project olymp
  8.  * 
  9.  */
  10. class Form_User extends Zend_Form {
  11.     
  12.     /**
  13.      * Initialization method.
  14.      * 
  15.      * Initializes the form with essential elements.
  16.      */
  17.     public function init()
  18.     {
  19.         $username new Zend_Form_Element_Text('username');
  20.         $username->setLabel('Kasutajanimi');
  21.         $username->setRequired(true);
  22.         
  23.         $password new Zend_Form_Element_Password('password');
  24.         $password->setLabel('Parool');
  25.         $password->setRequired(true);
  26.         
  27.         $this->addElement($username);
  28.         $this->addElement($password);
  29.     }
  30. }
  31.  
  32. ?>

Documentation generated on Tue, 14 Jun 2011 16:13:52 +0300 by phpDocumentor 1.4.1