Overview

Namespaces

  • None
  • PHP
  • Pry
    • Auth
      • Interfaces
    • Config
    • Controller
    • Date
    • Db
    • Feed
      • Abstracts
      • Writers
    • File
      • Decorator
    • Form
      • Element
    • Image
    • Log
      • Writer
    • Net
      • Exception
    • Session
    • Util
    • Validate
      • Validator
    • View

Classes

  • AutoCompleter
  • Checkbox
  • Colorpicker
  • Date
  • DatePicker
  • Email
  • File
  • Hidden
  • Html
  • Ip
  • Mac
  • Multi
  • NumericStepper
  • Password
  • Radio
  • Select
  • Slider
  • Submit
  • Text
  • Textarea
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: /**
 4:  * Pry Framework
 5:  *
 6:  * LICENSE
 7:  *
 8:  * This source file is subject to the new BSD license that is bundled
 9:  * with this package in the file LICENSE.txt.
10:  * 
11:  */
12: 
13: namespace Pry\Form\Element;
14: 
15: use Pry\Form\Input;
16: 
17: /**
18:  * Element Hidden
19:  * @category Pry
20:  * @package Form
21:  * @subpackage Form_Element
22:  * @version 1.0.0 
23:  * @author Olivier ROGER <oroger.fr>  
24:  *
25:  */
26: class Hidden extends Input
27: {
28: 
29:     /**
30:      * Constructeur
31:      *
32:      * @param string $nom
33:      * @param Form_Form $form
34:      * @access public
35:      */
36:     public function __construct($nom, $form)
37:     {
38:         parent::__construct($nom, $form);
39:         if (!isset($this->attrs['type']))
40:             $this->attrs['type'] = 'hidden';
41:     }
42: 
43:     /**
44:      * Ecriture de l'objet
45:      *
46:      * @access public
47:      * @return string
48:      */
49:     public function __toString()
50:     {
51:         $attributs = $this->attrsToString();
52:         return "\t" . '<input ' . $attributs . ' value="' . htmlspecialchars($this->value) . '" />' . "\n";
53:     }
54: 
55: }
56: 
57: ?>
Pry API documentation generated by ApiGen 2.8.0