phpDocumentor form
[ class tree: form ] [ index: form ] [ all elements ]

Class: Input

Source Location: /myphp-1.9/myphp-1.9-form/html/component/Input.php

Class Input

Class Overview

Generates an INPUT element for a form

  1. <input type="$type" name="$name" value="$value" class="$class"
  2. size="$size" maxlength="$maxlength" disabled="disabled"
  3. readonly="readonly" onclick="$onclick" title="$title" tabindex="" />
  4. Usage:
  5. $input = new Input($type,$name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);
  6. print $input->getHtml();
  7. Or
  8. Input::display($type,$name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);

Located in /myphp-1.9/myphp-1.9-form/html/component/Input.php [line 35]

Object
   |
   --Html
      |
      --Input

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
Button Generates an INPUT element for a form, as a Button
CancelButton Generates an INPUT element for a form, as a Cancel Button
Checkbox Generates an INPUT element for a form, which is a Checkbox control
Disabled Generates an INPUT element for a form, which is disabled
Fileupload Generates an INPUT element for a form, which is File upload
Hidden Generates an INPUT element for a form, which is Hidden
ImageButton Generates an INPUT image element for a form, as a Submit Button
Password Generates an INPUT element for a form, as a Password
Radio Generates an INPUT element for a form, which is a Radio control
Readonly Generates an INPUT element for a form, which is Readonly
ResetButton Generates an INPUT element for a form, as a Reset Button
SubmitButton Generates an INPUT element for a form, as a Submit Button
TextField Generates an INPUT element for a form

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Html

Html::$elements
Html::$sizeof

Inherited From Object

Object::$cachefile
Object::$html
Object::$sql

Inherited From Html

Html::Html()
Constructor
Html::add()
Add an element, the number of elements are stored internally in an array.
Html::content()
Read the content of the specified filename
Html::display()
Display the html
Html::get()
Get the complete html for a key
Html::getAttribute()
Get the complete html for an attribute, i.e. <a class="myclass" ...
Html::getElement()
Get the element at position $i in array
Html::getElements()
Get all the elements as html
Html::getHtml()
Get Html
Html::getHtmlHelp()
Get html help
Html::getSizeof()
Get the number of elements added
Html::getTag()
Get the complete html for a html tag, i.e. <p>My paragraph</p>
Html::read()
Read the content of the specified filename and language
Html::set()
Set the named attribute (key) of a class to specified value
Html::setObject()
Set the named object to the class attribute (key), with same name
Html::showsource()
Show source
Html::update()
Save the content of the specified filename and language

Inherited From Object

Object::Object()
Constructor
Object::addHtml()
Add the current html to the SourceCode object
Object::getCacheFileName()
Returns the name of the cache file name
Object::getClassName()
Returns the name of the instanciated class
Object::getHtml()
Returns the html for the element
Object::getMsg()
Get the formatted message and debug level and Log to file ?
Object::save()
Save the SQL cache file
Object::setCacheFileName()
Set the path/name of the cache file
Object::toString()
Returns the information for this class
Object::write()
Write the content to the file opened by fp

[ Top ]
Property Summary
mixed   $checked  
mixed   $class  
mixed   $disabled  
mixed   $id  
mixed   $maxlength  
mixed   $name  
mixed   $onclick  
mixed   $readonly  
mixed   $size  
mixed   $tabindex  
mixed   $title  
mixed   $type  
mixed   $value  

[ Top ]
Method Summary
Input   Input()   Constructor
void   display()   Display html
String   getHtml()   Returns the complete html for an input control

[ Top ]
Properties
mixed   $checked = '' [line 45]

[ Top ]
mixed   $class = '' [line 40]

[ Top ]
mixed   $disabled = '' [line 43]

[ Top ]
mixed   $id = '' [line 38]

[ Top ]
mixed   $maxlength = '' [line 42]

[ Top ]
mixed   $name = '' [line 37]

[ Top ]
mixed   $onclick = '' [line 46]

[ Top ]
mixed   $readonly = '' [line 44]

[ Top ]
mixed   $size = '' [line 41]

[ Top ]
mixed   $tabindex = '' [line 48]

[ Top ]
mixed   $title = '' [line 47]

[ Top ]
mixed   $type = '' [line 36]

[ Top ]
mixed   $value = '' [line 39]

[ Top ]
Methods
Constructor Input  [line 64]

  Input Input( [String $type = ''], [String $name = ''], [String $value = ''], [String $class = ''], [String $size = ''], [String $maxlength = ''], [String $disabled = ''], [String $readonly = ''], [String $onclick = ''], [String $title = ''], [String $tabindex = '']  )

Constructor

Parameters:
String   $type:  The type (text, radio, checkbox, file, button, hidden, submit, reset)
String   $name:  The name
String   $value:  The value, if any
String   $class:  The class
String   $size:  The size / or checked for radio/checkbox
String   $maxlength:  The maxlength
String   $disabled:  The disabled
String   $readonly:  The readonly
String   $onclick:  On click event for javascript
String   $title:  The tooltip
String   $tabindex:  The tabindex


[ Top ]
display  [line 248]

  void display( [String $type = ''], [String $name = ''], [String $value = ''], [String $class = ''], [String $size = ''], [String $maxlength = ''], [String $disabled = ''], [String $readonly = ''], [String $onclick = ''], [String $title = ''], [String $tabindex = '']  )

Display html

  1. Usage:
  2. Input::display($type,$name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);

Parameters:
String   $type:  The type (text, radio, checkbox, file, button, hidden, submit, reset)
String   $name:  The name
String   $value:  The value, if any
String   $class:  The class
String   $size:  The size / or checked for radio/checkbox
String   $maxlength:  The maxlength
String   $disabled:  The disabled
String   $readonly:  The readonly
String   $onclick:  On click event for javascript
String   $title:  The tooltip
String   $tabindex:  The tabindex

API Tags:
Static:  


Redefinition of:
Html::display()
Display the html

Redefined in descendants as:

[ Top ]
getHtml  [line 158]

  String getHtml( )

Returns the complete html for an input control


API Tags:
Return:  the complete html


Redefinition of:
Html::getHtml()
Get Html

[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:12:14 +0100 by phpDocumentor 1.3.0RC3