Source for file Page.php

Documentation is available at Page.php

  1. <?php
  2. /**
  3.  * Form for handling static pages' data.
  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_Page extends Zend_Form {
  12.     /**
  13.      * Initialization method.
  14.      * 
  15.      * Initializes the form with essential elements.
  16.      */
  17.     public function init()
  18.     {
  19.          
  20.         $title new Zend_Form_Element_Text('title');
  21.         $title->setLabel('Lehe pealkiri');
  22.         $title->setRequired(true);
  23.         
  24.         $value new Zend_Form_Element_Textarea('value');
  25.         $value->setLabel('Lehe sisu');
  26.         $value->setRequired(false);
  27.         
  28.         $this->addElement($title);
  29.         $this->addElement($value);
  30.  
  31.     }
  32. }

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