Table

From Platform Documentation

Jump to: navigation, search

Introduction

The table library generates XHTML table code. It's used primarily by the DBOBject->editor and DBObject->table functions. You can make calls to it manually to generate your own tabular data. You can pass an associative array of table style options by passing $options to any field.

File ./library/table.class.php      ★      SVN http://svn.xombo.org/svn/platform/current/trunk/library/table.class.php API DOCS

Functions

Table::table ($options, $rows, $headers)

Returns a table of $rows associated with $headers.

Table::thead ($options, $columns)

Returns a table head containing $columns.

Table::th ($options, $value)

Returns a table head cell containing $value.

Table::tbody ($options, $content)

Returns a table body containing $content.

Table::td ($options, $value)

Returns a table cell containing $value.

Table::tr ($options, [$columns])

Returns a table row. Pass $columns as an array of TD or TH elements.

Table::endtr ()

Returns a close TR tag.

Table::endtable ()

Returns a close TABLE tag.
Retrieved from "http://docs.xombo.org/Table"