nyroFwk  0.2
Public Member Functions | Protected Member Functions | Protected Attributes
helper_dataTable Class Reference
Inheritance diagram for helper_dataTable:
object

Public Member Functions

 getData ()
 
 getCount ()
 
 getNbPage ()
 
 getQuery ()
 
 to ($type)
 
 toHtml ()
 
 __toString ()
 
 getAttr ($name)
 
 setAttr ($name, $value)
 
 getCfg ()
 

Protected Member Functions

 afterInit ()
 
 getActions ($row)
 
 beforeInit ()
 

Protected Attributes

 $table
 
 $session
 
 $count
 
 $sortBy
 
 $data
 
 $cfg
 

Detailed Description

Helper to show db data with pagination

Definition at line 10 of file dataTable.class.php.

Member Function Documentation

◆ __toString()

__toString ( )

Create the data Table out regarding the request out

Returns
string

Definition at line 459 of file dataTable.class.php.

◆ afterInit()

afterInit ( )
protected

Definition at line 47 of file dataTable.class.php.

◆ beforeInit()

beforeInit ( )
protectedinherited

Call just before the configuration initialisation

Definition at line 35 of file object.class.php.

◆ getActions()

getActions (   $row)
protected

Get the actions for a specific ID

Parameters
db_row$rowThe Row
Returns
array The filtered actions (from cfg->actions)

Definition at line 427 of file dataTable.class.php.

◆ getAttr()

getAttr (   $name)
inherited

Get an attribute

Parameters
string$nameAttribute name
Returns
mixed|null The attribute or null if not set

Definition at line 48 of file object.class.php.

◆ getCfg()

getCfg ( )
inherited

Get the configuration object

Returns
config

Definition at line 67 of file object.class.php.

◆ getCount()

getCount ( )

Get the number of results

Returns
int

Definition at line 194 of file dataTable.class.php.

◆ getData()

getData ( )

Get the data for the current page

Returns
db_rowset

Definition at line 177 of file dataTable.class.php.

◆ getNbPage()

getNbPage ( )

Get the number of pages

Returns
int

Definition at line 205 of file dataTable.class.php.

◆ getQuery()

getQuery ( )

Get the query parameter

Returns
string|array

Definition at line 217 of file dataTable.class.php.

◆ setAttr()

setAttr (   $name,
  $value 
)
inherited

Set an attribute

Parameters
string$nameAttribute name
mixed$valueAttribute value

Definition at line 58 of file object.class.php.

◆ to()

to (   $type)

Create the data Table out

Parameters
string$typeOut type
Returns
string

Definition at line 227 of file dataTable.class.php.

◆ toHtml()

toHtml ( )

Create the data Table HTML out

Returns
string

Definition at line 450 of file dataTable.class.php.

Field Documentation

◆ $cfg

$cfg
protectedinherited

Definition at line 17 of file object.class.php.

◆ $count

$count
protected

Definition at line 31 of file dataTable.class.php.

◆ $data

$data
protected

Definition at line 45 of file dataTable.class.php.

◆ $session

$session
protected

Definition at line 24 of file dataTable.class.php.

◆ $sortBy

$sortBy
protected

Definition at line 38 of file dataTable.class.php.

◆ $table

$table
protected

Definition at line 17 of file dataTable.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:21 for nyroFwk by doxygen 1.8.13