Public Member Functions

smarttable Class Reference

Rendering of Jquery smarttable for tables to add features like pagination,sorting,searching,etc. More...

Public Member Functions

 includeCode ($code)
 render ($tableidarray, $paramsarray)
 generate_js ($tableid, $params)

Detailed Description

Rendering of Jquery smarttable for tables to add features like pagination,sorting,searching,etc.

Definition at line 32 of file smarttable.class.php.


Member Function Documentation

generate_js ( tableid,
params 
)

Generated the JS for a single table ID and parameters

Parameters:
$tableid Table ID of the table which should be converted into SmartTable
$params Associated parameters
Returns:
The Jquery code for the SmartTable

Definition at line 82 of file smarttable.class.php.

includeCode ( code  ) 

Includes the required CSS and Javascript files

Parameters:
$code The code around which the CSS and JS file includes codes should be appended.

Definition at line 39 of file smarttable.class.php.

render ( tableidarray,
paramsarray 
)

Main function of this class. Takes an array of table IDs and associated parameters array and generated the output HTML code.

Parameters:
$tableidarray Array of Table IDs which should be converted into SmartTable
$paramsarray 2D Array of parameters associated with each table ID in the $tableidarray
Returns:
The HTML code for the SmartTable

Definition at line 66 of file smarttable.class.php.


The documentation for this class was generated from the following file: