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

Class: Table

Source Location: /myphp-1.9/myphp-1.9-table/html/component/Table.php

Class Table

Class Overview

Generates the html for a table

  1. Usage:
  2. $table = new Table($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
  3. print $table->getHtml();
  4. Or
  5. Table::display($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
  6.  
  7. Generates a complete table interface
  8. ---------------------------------
  9. | Text header
  10. ---------------------------------
  11. | head1 | head2 | head3 |
  12. ---------------------------------
  13. | dat_1 | dat_2 | dat_3 |
  14. ---------------------------------

Located in /myphp-1.9/myphp-1.9-table/html/component/Table.php [line 46]

Object
   |
   --Html
      |
      --Table

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
ViewCommon Generates the html for a Form or List View
Skeleton The skeleton.

[ 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   $border  
mixed   $caption  
mixed   $cellpadding  
mixed   $cellspacing  
mixed   $class  
mixed   $summary  
String   $text  
mixed   $width  

[ Top ]
Method Summary
Table   Table()   Constructor
void   display()   Display html
void   end()   Get the end of the table tag
String   getColumnEnd()   Get the Column End
String   getColumnStart()   Get the Column Start
String   getEnd()   Get the table end
String   getHtml()   Get the complete html for a table
String   getRowEnd()   Get the Row End
String   getRowStart()   Get the Row Start
String   getStart()   Get the start of the table
String   getTableHeader()   Get the Table Header from class TableHeader
void   start()   Get the start of the table tag
void   td()   Display html for the TD tag
void   tdend()   Get the end of the TD tag
void   tdstart()   Get the start of the TD tag
void   th()   Display html for a TH
void   thend()   Get the end of the TH tag
void   thstart()   Get the start of the TH tag
void   tr()   Display html for the TR tag
void   trend()   Get the end of the TR tag
void   trstart()   Get the start of the TR tag

[ Top ]
Properties
mixed   $border = '' [line 55]

[ Top ]
mixed   $caption = '' [line 59]

[ Top ]
mixed   $cellpadding = '' [line 56]

[ Top ]
mixed   $cellspacing = '' [line 57]

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

[ Top ]
mixed   $summary = '' [line 58]

[ Top ]
String   $text = '' [line 50]

[ Top ]
mixed   $width = '' [line 53]

[ Top ]
Methods
Constructor Table  [line 72]

  Table Table( [String $text = ''], [String $width = ''], [String $class = ''], [String $border = ''], [String $cellpadding = ''], [String $cellspacing = ''], [String $summary = ''], [String $caption = '']  )

Constructor

Parameters:
String   $text:  The text header for the table
String   $width:  The Width for the table
String   $class:  The Class
String   $border:  The Border
String   $cellpadding:  The CellSpacing
String   $cellspacing:  The CellPadding
String   $summary:  The Summary
String   $caption:  The Caption


[ Top ]
display  [line 393]

  void display( [String $text = ''], [String $width = ''], [String $class = ''], [String $border = ''], [String $cellpadding = ''], [String $cellspacing = ''], [String $summary = ''], [String $caption = '']  )

Display html

  1. Usage:
  2. Table::display($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);

Parameters:
String   $text:  The text header for the table
String   $width:  The width of the table
String   $class:  The class of the table
String   $border:  The border of the table
String   $cellpadding:  The CellSpacing
String   $cellspacing:  The CellPadding
String   $summary:  The Summary
String   $caption:  The Caption

API Tags:
Static:  


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

Redefined in descendants as:

[ Top ]
end  [line 237]

  void end( [String $type = '']  )

Get the end of the table tag

  1. Usage:
  2. Table::end($type);

Parameters:
String   $type:  'table', 'tr', 'td' or 'th' or empty

API Tags:
Static:  


[ Top ]
getColumnEnd  [line 157]

  String getColumnEnd( )

Get the Column End


API Tags:
Return:  the html


[ Top ]
getColumnStart  [line 148]

  String getColumnStart( [String $class = ''], [String $valign = ''], [String $colspan = '']  )

Get the Column Start

Parameters:
String   $class:  The class name
String   $valign:  The alignment of data
String   $colspan:  The Column Span

API Tags:
Return:  the html


[ Top ]
getEnd  [line 127]

  String getEnd( )

Get the table end


API Tags:
Return:  the html


[ Top ]
getHtml  [line 173]

  String getHtml( )

Get the complete html for a table


API Tags:
Return:  the html


Redefinition of:
Html::getHtml()
Get Html

Redefined in descendants as:

[ Top ]
getRowEnd  [line 165]

  String getRowEnd( )

Get the Row End


API Tags:
Return:  the html


[ Top ]
getRowStart  [line 136]

  String getRowStart( [String $class = '']  )

Get the Row Start

Parameters:
String   $class:  The css class name for the row

API Tags:
Return:  the html


[ Top ]
getStart  [line 105]

  String getStart( )

Get the start of the table


API Tags:
Return:  the html for the start of the table


[ Top ]
getTableHeader  [line 96]

  String getTableHeader( )

Get the Table Header from class TableHeader


API Tags:
Return:  the html table header


[ Top ]
start  [line 208]

  void start( [String $text = ''], [String $width = ''], [String $class = ''], [String $border = ''], [String $cellpadding = ''], [String $cellspacing = ''], [String $summary = ''], [String $caption = '']  )

Get the start of the table tag

  1. Usage:
  2. Table::start($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);

Parameters:
String   $text:  The text header for the table
String   $width:  The Width for the table
String   $class:  The Class
String   $border:  The Border
String   $cellpadding:  The CellSpacing
String   $cellspacing:  The CellPadding
String   $summary:  The Summary
String   $caption:  The Caption

API Tags:
Static:  


[ Top ]
td  [line 319]

  void td( [String $class = ''], [String $valign = '']  )

Display html for the TD tag

  1. Usage:
  2. Table::td($class,$valign);

Parameters:
String   $class:  The class name
String   $valign:  The alignment of data

API Tags:
Static:  


[ Top ]
tdend  [line 331]

  void tdend( )

Get the end of the TD tag

  1. Usage:
  2. Table::tdend();


API Tags:
Static:  


[ Top ]
tdstart  [line 305]

  void tdstart( [String $class = ''], [String $valign = '']  )

Get the start of the TD tag

  1. Usage:
  2. Table::tdstart($class,$valign);

Parameters:
String   $class:  The class name
String   $valign:  The alignment of data

API Tags:
Static:  


[ Top ]
th  [line 361]

  void th( [String $class = ''], [String $valign = ''], [String $align = '']  )

Display html for a TH

  1. Usage:
  2. Table::th($class,$valign,$align);

Parameters:
String   $class:  The class name
String   $valign:  The valignment of data
String   $align:  The alignment of data

API Tags:
Static:  


[ Top ]
thend  [line 373]

  void thend( )

Get the end of the TH tag

  1. Usage:
  2. Table::thend();


API Tags:
Static:  


[ Top ]
thstart  [line 346]

  void thstart( [String $class = ''], [String $valign = ''], [String $align = '']  )

Get the start of the TH tag

  1. Usage:
  2. Table::thstart($class,$valign,$align);

Parameters:
String   $class:  The class name
String   $valign:  The valignment of data
String   $align:  The alignment of data

API Tags:
Static:  


[ Top ]
tr  [line 279]

  void tr( [String $class = '']  )

Display html for the TR tag

  1. Usage:
  2. Table::tr($class);

Parameters:
String   $class:  The class name

API Tags:
Static:  


[ Top ]
trend  [line 291]

  void trend( )

Get the end of the TR tag

  1. Usage:
  2. Table::trend();


API Tags:
Static:  


[ Top ]
trstart  [line 266]

  void trstart( [String $class = '']  )

Get the start of the TR tag

  1. Usage:
  2. Table::trstart($class);

Parameters:
String   $class:  The class name

API Tags:
Static:  


[ Top ]

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