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

Class: TextField

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

Class TextField

Class Overview

Generates an INPUT element for a form

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

Located in /myphp-1.9/myphp-1.9-form/html/component/TextField.php [line 32]

Object
   |
   --Html
      |
      --Input
         |
         --TextField

Methods

[ Top ]
Direct descendents
Child Class Description
Zip Generates an INPUT element for a Zip form

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

Inherited From Input

Input::$checked
Input::$class
Input::$disabled
Input::$id
Input::$maxlength
Input::$name
Input::$onclick
Input::$readonly
Input::$size
Input::$tabindex
Input::$title
Input::$type
Input::$value

Inherited From Html

Html::$elements
Html::$sizeof

Inherited From Object

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

Inherited From Input

Input::Input()
Constructor
Input::display()
Display html
Input::getHtml()
Returns the complete html for an input control

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 ]
Method Summary
TextField   TextField()   Constructor
void   display()   Display html

[ Top ]
Methods
Constructor TextField  [line 46]

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

Constructor

Parameters:
String   $name:  The name
String   $value:  The value, if any
String   $class:  The class
String   $size:  The size
String   $maxlength:  The maxlength
String   $disabled:  The disabled
String   $readonly:  The readonly
String   $onclick:  On click event for javascript
String   $title:  The title
String   $tabindex:  The tabindex


[ Top ]
display  [line 70]

  void display( [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. TextField::display($name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);

Parameters:
String   $name:  The name
String   $value:  The value, if any
String   $class:  The class
String   $size:  The size
String   $maxlength:  The maxlength
String   $disabled:  The disabled
String   $readonly:  The readonly
String   $onclick:  On click event for javascript
String   $title:  The title
String   $tabindex:  The tabindex

API Tags:
Static:  


Redefinition of:
Input::display()
Display html

Redefined in descendants as:

[ Top ]

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