Liste de tous les membres
Documentation des constructeurs et destructeur
JGrid::__construct |
( |
|
$options = array() | ) |
|
Constructor for a JGrid object
- Paramètres:
-
array | $options | Associative array of attributes for the table-tag |
- Depuis:
- 11.3
Références $options.
Documentation des fonctions membres
Magic function to render this object as a table.
- Renvoie:
- string
- Depuis:
- 11.3
JGrid::addColumn |
( |
|
$name | ) |
|
Add new column name to process
- Paramètres:
-
string | $name | Internal column name |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $name.
JGrid::addRow |
( |
|
$options = array() , |
|
|
|
$special = false |
|
) |
| |
Adds a row to the table and sets the currently active row to the new row
- Paramètres:
-
array | $options | Associative array of attributes for the row |
int | $special | 1 for a new row in the header, 2 for a new row in the footer |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $options.
JGrid::deleteColumn |
( |
|
$name | ) |
|
Delete column by name
- Paramètres:
-
string | $name | Name of the column to be deleted |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $name.
Delete a row from the object
- Paramètres:
-
int | $id | ID of the row to be deleted |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $id.
Get the currently active row ID
- Renvoie:
- int ID of the currently active row
- Depuis:
- 11.3
Returns the list of internal columns
- Renvoie:
- array List of internal columns
- Depuis:
- 11.3
JGrid::getRow |
( |
|
$id = false | ) |
|
Get all data for a row
- Paramètres:
-
int | $id | ID of the row to return |
- Renvoie:
- array Array of columns of a table row
- Depuis:
- 11.3
Références $id.
Method to get the attributes of the currently active row
- Renvoie:
- array Associative array of attributes
- Depuis:
- 11.3
JGrid::getRows |
( |
|
$special = false | ) |
|
Get the IDs of all rows in the table
- Paramètres:
-
int | $special | false for the standard rows, 1 for the header rows, 2 for the footer rows |
- Renvoie:
- array Array of IDs
- Depuis:
- 11.3
JGrid::getTableOptions |
( |
| ) |
|
Get the Attributes of the current table
- Renvoie:
- array Associative array of attributes
- Depuis:
- 11.3
Références $options.
JGrid::renderArea |
( |
|
$ids, |
|
|
|
$area = 'tbody' , |
|
|
|
$cell = 'td' |
|
) |
| |
|
protected |
Render an area of the table
- Paramètres:
-
array | $ids | IDs of the rows to render |
string | $area | Name of the area to render. Valid: tbody, tfoot, thead |
string | $cell | Name of the cell to render. Valid: td, th |
- Renvoie:
- string The rendered table area
- Depuis:
- 11.3
Références $id, $name, et $output.
JGrid::renderAttributes |
( |
|
$attributes | ) |
|
|
protected |
Renders an HTML attribute from an associative array
- Paramètres:
-
array | $attributes | Associative array of attributes |
- Renvoie:
- string The HTML attribute string
- Depuis:
- 11.3
Références $key, et $return.
JGrid::setActiveRow |
( |
|
$id | ) |
|
Set the currently active row
- Paramètres:
-
int | $id | ID of the row to be set to current |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $id.
JGrid::setColumns |
( |
|
$columns | ) |
|
Method to set a whole range of columns at once This can be used to re-order the columns, too
- Paramètres:
-
array | $columns | List of internal column names |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
JGrid::setRowCell |
( |
|
$name, |
|
|
|
$content, |
|
|
|
$option = array() , |
|
|
|
$replace = true |
|
) |
| |
Set cell content for a specific column for the currently active row
- Paramètres:
-
string | $name | Name of the column |
string | $content | Content for the cell |
array | $option | Associative array of attributes for the td-element |
bool | $replace | If false, the content is appended to the current content of the cell |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $name.
JGrid::setRowOptions |
( |
|
$options | ) |
|
Method to set the attributes of the currently active row
- Paramètres:
-
array | $options | Associative array of attributes |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $options.
JGrid::setTableOptions |
( |
|
$options = array() , |
|
|
|
$replace = false |
|
) |
| |
Method to set the attributes for a table-tag
- Paramètres:
-
array | $options | Associative array of attributes for the table-tag |
bool | $replace | Replace possibly existing attributes |
- Renvoie:
- JGrid This object for chaining
- Depuis:
- 11.3
Références $options.
Render the HTML table
- Renvoie:
- string The rendered HTML table
- Depuis:
- 11.3
Références $output.
Documentation des données membres
JGrid::$columns = array() |
|
protected |
JGrid::$specialRows = array('header' => array(), 'footer' => array()) |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :