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

Class: Textarea

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

Class Textarea

Class Overview

Generates a html form elements, TEXTAREA

  1. Usage:
  2. $textarea = new Textarea($name,$text,$rows,$cols,$class,$title,$tabindex);
  3. print $textarea->getHtml();
  4. Or
  5. $textarea = new Textarea($name,$text,$rows,$cols,$class,$title,$tabindex);
  6. print $textarea->getStart();
  7. print "Display some text";
  8. print $textarea->getEnd();
  9. Or
  10. Textarea::display($name,$text,$rows,$cols,$class,$title,$tabindex);
  11. Or
  12. Textarea::start($name,$text,$rows,$cols,$class,$title,$tabindex);
  13. Raw::display('Display some text');
  14. Textarea::end($name,$text,$rows,$cols,$class,$title,$tabindex);

Located in /myphp-1.9/myphp-1.9-form/html/component/Textarea.php [line 39]

Object
   |
   --Html
      |
      --Textarea

Properties

Methods

[ 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   $class  
mixed   $cols  
mixed   $id  
mixed   $name  
mixed   $rows  
mixed   $tabindex  
mixed   $text  
mixed   $title  

[ Top ]
Method Summary
Textarea   Textarea()   Constructor
void   display()   Display html
void   end()   Display end html
String   getEnd()   Returns the complete html for the end of a textarea control
String   getHtml()   Returns the complete html for a textarea control
String   getStart()   Returns the complete html for the start of a textarea control
void   start()   Display start html

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

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

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

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

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

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

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

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

[ Top ]
Methods
Constructor Textarea  [line 58]

  Textarea Textarea( String $name, [String $text = ''], [String $rows = ''], [String $cols = ''], [String $class = ''], [mixed $title = ''], [String $tabindex = '']  )

Constructor

Parameters:
String   $name:  The name of the control
String   $text:  The text value, if any
String   $rows:  The number of rows
String   $cols:  The number of columns
String   $class:  The class name
String   $tabindex:  The tabindex


[ Top ]
display  [line 156]

  void display( String $name, [String $text = ''], [String $rows = ''], [String $cols = ''], [String $class = ''], [mixed $title = ''], [String $tabindex = '']  )

Display html

  1. Usage:
  2. Textarea::display($name,$text,$rows,$cols,$class,$title,$tabindex);

Parameters:
String   $name:  The name of the control
String   $text:  The text value, if any
String   $rows:  The number of rows
String   $cols:  The number of columns
String   $class:  The class name
String   $tabindex:  The tabindex

API Tags:
Static:  


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

[ Top ]
end  [line 137]

  void end( )

Display end html

  1. Usage:
  2. Textarea::end();


API Tags:
Static:  


[ Top ]
getEnd  [line 92]

  String getEnd( )

Returns the complete html for the end of a textarea control


API Tags:
Return:  the complete html


[ Top ]
getHtml  [line 102]

  String getHtml( )

Returns the complete html for a textarea control


API Tags:
Return:  the complete html


Redefinition of:
Html::getHtml()
Get Html

[ Top ]
getStart  [line 74]

  String getStart( )

Returns the complete html for the start of a textarea control


API Tags:
Return:  the complete html


[ Top ]
start  [line 124]

  void start( String $name, [String $text = ''], [String $rows = ''], [String $cols = ''], [String $class = ''], [mixed $title = ''], [String $tabindex = '']  )

Display start html

  1. Usage:
  2. Textarea::start($name,$text,$rows,$cols,$class,$title,$tabindex);

Parameters:
String   $name:  The name of the control
String   $text:  The text value, if any
String   $rows:  The number of rows
String   $cols:  The number of columns
String   $class:  The class name
String   $tabindex:  The tabindex

API Tags:
Static:  


[ Top ]

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