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

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