| [ Indice ] |
Riferimento incrociato di Joomla! 1.5.14 - VM 1.1.4Servizio fornito da VMItalia |
[Vedi sorgente] [Stampa] [Statistiche Progetto]
PEAR::HTML_Table makes the design of HTML tables easy, flexible, reusable and efficient. The PEAR::HTML_Table package provides methods for easy and efficient design of HTML tables. - Lots of customization options. - Tables can be modified at any time. - The logic is the same as standard HTML editors. - Handles col and rowspans. - PHP code is shorter, easier to read and to maintain. - Tables options can be reused.
| Author: | Adam Daniel <adaniel1@eesus.jnj.com> |
| Author: | Bertrand Mansion <bmansion@mamasam.com> |
| Copyright: | 2005 The PHP Group |
| License: | http://www.php.net/license/3_0.txt PHP License 3.0 |
| Version: | CVS: $Id: Table.php 1958 2009-10-08 20:09:57Z soeren_nb $ |
| Dimensione file: | 656 righe (23 kb) |
| Incluso o richiesto: | 1 volta |
| Referenziato: | 0 volte |
| Inclusioni o richieste: | 0 files |
HTML_Table:: (34 metodi):
HTML_Table()
apiVersion()
getHeader()
getFooter()
getBody()
setCaption()
setColGroup()
setAutoFill()
getAutoFill()
setAutoGrow()
getAutoGrow()
setRowCount()
setColCount()
getRowCount()
getColCount()
setRowType()
setColType()
setCellAttributes()
updateCellAttributes()
getCellAttributes()
setCellContents()
getCellContents()
setHeaderContents()
addRow()
setRowAttributes()
updateRowAttributes()
getRowAttributes()
altRowAttributes()
addCol()
setColAttributes()
updateColAttributes()
setAllAttributes()
updateAllAttributes()
toHtml()
Classe: HTML_Table - X-Ref
PEAR::HTML_Table makes the design of HTML tables easy, flexible, reusable and efficient.| HTML_Table($attributes = null, $tabOffset = 0, $useTGroups = false) X-Ref |
| Class constructor param: array $attributes Associative array of table tag attributes param: int $tabOffset Tab offset of the table param: bool $useTGroups Whether to use <thead>, <tfoot> and |
| apiVersion() X-Ref |
| Returns the API version return: double |
| getHeader() X-Ref |
| Returns the HTML_Table_Storage object for <thead> return: object |
| getFooter() X-Ref |
| Returns the HTML_Table_Storage object for <tfoot> return: object |
| getBody() X-Ref |
| Returns the HTML_Table_Storage object for <tbody> (or the whole table if <t{head|foot|body> is not used) return: object |
| setCaption($caption, $attributes = null) X-Ref |
| Sets the table caption param: string $caption param: mixed $attributes Associative array or string of table row attributes |
| setColGroup($colgroup = null, $attributes = null) X-Ref |
| Sets the table columns group specifications, or removes existing ones. author: Laurent Laville (pear at laurent-laville dot org) param: mixed $colgroup (optional) Columns attributes param: mixed $attributes (optional) Associative array or string |
| setAutoFill($fill) X-Ref |
| Sets the autoFill value param: mixed $fill |
| getAutoFill() X-Ref |
| Returns the autoFill value return: mixed |
| setAutoGrow($grow) X-Ref |
| Sets the autoGrow value param: bool $fill |
| getAutoGrow() X-Ref |
| Returns the autoGrow value return: mixed |
| setRowCount($rows) X-Ref |
| Sets the number of rows in the table param: int $rows |
| setColCount($cols) X-Ref |
| Sets the number of columns in the table param: int $cols |
| getRowCount() X-Ref |
| Returns the number of rows in the table return: int |
| getColCount($row = null) X-Ref |
| Gets the number of columns in the table If a row index is specified, the count will not take the spanned cells into account in the return value. param: int Row index to serve for cols count return: int |
| setRowType($row, $type) X-Ref |
| Sets a rows type 'TH' or 'TD' param: int $row Row index param: string $type 'TH' or 'TD' |
| setColType($col, $type) X-Ref |
| Sets a columns type 'TH' or 'TD' param: int $col Column index param: string $type 'TH' or 'TD' |
| setCellAttributes($row, $col, $attributes) X-Ref |
| Sets the cell attributes for an existing cell. If the given indices do not exist and autoGrow is true then the given row and/or col is automatically added. If autoGrow is false then an error is returned. param: int $row Row index param: int $col Column index param: mixed $attributes Associative array or string of table row attributes |
| updateCellAttributes($row, $col, $attributes) X-Ref |
| Updates the cell attributes passed but leaves other existing attributes in tact param: int $row Row index param: int $col Column index param: mixed $attributes Associative array or string of table row attributes |
| getCellAttributes($row, $col) X-Ref |
| Returns the attributes for a given cell param: int $row Row index param: int $col Column index return: array |
| setCellContents($row, $col, $contents, $type = 'TD') X-Ref |
| Sets the cell contents for an existing cell If the given indices do not exist and autoGrow is true then the given row and/or col is automatically added. If autoGrow is false then an error is returned. param: int $row Row index param: int $col Column index param: mixed $contents May contain html or any object with a toHTML method; param: string $type (optional) Cell type either 'TH' or 'TD' |
| getCellContents($row, $col) X-Ref |
| Returns the cell contents for an existing cell param: int $row Row index param: int $col Column index return: mixed |
| setHeaderContents($row, $col, $contents, $attributes = null) X-Ref |
| Sets the contents of a header cell param: int $row param: int $col param: mixed $contents param: mixed $attributes Associative array or string of table row attributes |
| addRow($contents = null, $attributes = null, $type = 'td', $inTR = false) X-Ref |
| Adds a table row and returns the row identifier param: array $contents (optional) Must be a indexed array of valid cell contents param: mixed $attributes (optional) Associative array or string of table row attributes param: string $type (optional) Cell type either 'th' or 'td' param: bool $inTR false if attributes are to be applied in TD tags return: int |
| setRowAttributes($row, $attributes, $inTR = false) X-Ref |
| Sets the row attributes for an existing row param: int $row Row index param: mixed $attributes Associative array or string of table row attributes param: bool $inTR false if attributes are to be applied in TD tags |
| updateRowAttributes($row, $attributes = null, $inTR = false) X-Ref |
| Updates the row attributes for an existing row param: int $row Row index param: mixed $attributes Associative array or string of table row attributes param: bool $inTR false if attributes are to be applied in TD tags |
| getRowAttributes($row) X-Ref |
| Returns the attributes for a given row as contained in the TR tag param: int $row Row index return: array |
| altRowAttributes($start, $attributes1, $attributes2, $inTR = false) X-Ref |
| Alternates the row attributes starting at $start param: int $start Row index of row in which alternating begins param: mixed $attributes1 Associative array or string of table row attributes param: mixed $attributes2 Associative array or string of table row attributes param: bool $inTR false if attributes are to be applied in TD tags |
| addCol($contents = null, $attributes = null, $type = 'td') X-Ref |
| Adds a table column and returns the column identifier param: array $contents (optional) Must be a indexed array of valid cell contents param: mixed $attributes (optional) Associative array or string of table row attributes param: string $type (optional) Cell type either 'th' or 'td' return: int |
| setColAttributes($col, $attributes = null) X-Ref |
| Sets the column attributes for an existing column param: int $col Column index param: mixed $attributes (optional) Associative array or string of table row attributes |
| updateColAttributes($col, $attributes = null) X-Ref |
| Updates the column attributes for an existing column param: int $col Column index param: mixed $attributes (optional) Associative array or string of table row attributes |
| setAllAttributes($attributes = null) X-Ref |
| Sets the attributes for all cells param: mixed $attributes (optional) Associative array or string of table row attributes |
| updateAllAttributes($attributes = null) X-Ref |
| Updates the attributes for all cells param: mixed $attributes (optional) Associative array or string of table row attributes |
| toHtml() X-Ref |
| Returns the table structure as HTML return: string |
| Generato il: Mon Oct 19 20:29:27 2009 | Generato con PHPXref 0.7 |