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_Element_AutoCompleter
  • Form_Element_Checkbox
  • Form_Element_Colorpicker
  • Form_Element_Date
  • Form_Element_DatePicker
  • Form_Element_Email
  • Form_Element_File
  • Form_Element_Hidden
  • Form_Element_Html
  • Form_Element_Ip
  • Form_Element_Mac
  • Form_Element_Multi
  • Form_Element_NumericStepper
  • Form_Element_Password
  • Form_Element_Radio
  • Form_Element_Select
  • Form_Element_Slider
  • Form_Element_Submit
  • Form_Element_Text
  • Form_Element_Textarea
  • 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:  * Element submit
15:  * @category Pry
16:  * @package Form
17:  * @subpackage Form_Element
18:  * @version 1.0.0 
19:  * @author Olivier ROGER <oroger.fr>
20:  */
21: class Form_Element_Submit extends Form_Input
22: {
23:     /**
24:      * Constructeur
25:      *
26:      * @param string $nom
27:      * @param Form_Form $form
28:      * @access public
29:      */
30:     public function __construct($nom,$form)
31:     {
32:         parent::__construct($nom,$form);
33:         if(!isset($this->attrs['type']))
34:             $this->attrs['type'] = 'submit';
35:     }
36:     
37:     /**
38:      * Ecrit l'objet
39:      *
40:      * @access public
41:      * @return unknown
42:      */
43:     public function __toString()
44:     {
45:         $css = implode(' ',$this->class);
46:         if($css!='')
47:             $css = 'class="'.$css.'"';
48:         else
49:             $css ='';
50: 
51:         $attributs = $this->attrsToString();
52:         $field = "\t".'<input '.$css.' value="'.htmlspecialchars($this->value).'" '.$attributs.' />'."\n";
53:         if($this->fieldNewLine)
54:             $field.="\t".'<br />'."\n";
55:         return $field;
56:     }
57: }
58:  ?>
Pry Framework API documentation generated by ApiGen 2.6.1