Overview

Packages

  • Auth
  • Config
  • Controller
  • Date
  • Db
  • Feed
    • Abstract
    • Writers
  • File
    • Decorator
  • Form
    • Element
  • Image
  • Log
    • Writer
  • Net
    • Exception
  • None
  • PHP
  • PHPMailer
  • Session
  • Util
  • Validate
    • Validator
  • Zend
    • Registry

Classes

  • Form_Error
  • Form_Field
  • Form_Form
  • Form_Input
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Pry Framework
 4:  *
 5:  * LICENSE
 6:  *
 7:  * This source file is subject to the new BSD license that is bundled
 8:  * with this package in the file LICENSE.txt.
 9:  * 
10:  * @version $Revision: 276 $
11:  */
12: 
13: /**
14:  *
15:  * @category Pry
16:  * @package Form
17:  * @abstract 
18:  * @version 1.0.5 
19:  * @author Olivier ROGER <oroger.fr>
20:  *       
21:  */
22: abstract class Form_Input extends Form_Field
23: {
24:     /**
25:      * Constructeur.
26:      *
27:      * @param string $nom
28:      * @param Form_Form $form
29:      * @access protected
30:      */
31:     protected function __construct($nom,$form)
32:     {
33:         parent::__construct($nom,$form);
34:         $this->attrs['name'] = $nom;
35:     }
36:     
37:     /**
38:      * Défini un attribut de l'élément
39:      *
40:      * @param string $nom
41:      * @param string $valeur
42:      */
43:     public function setAttributes($nom,$valeur)
44:     {
45:         if(!isset($this->attrs[$nom]))
46:             $this->attrs[$nom] = $valeur;
47:         return $this;
48:     }
49: }
50:  ?>
Pry Framework API documentation generated by ApiGen 2.6.1