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

Public Member Functions

 fillValues ()
 
 getForm ()
 
 hasValues ()
 
 getWhere ()
 
 getLabel ($name)
 
 clearLink ()
 
 to ($type)
 
 toHtml ()
 
 __toString ()
 
 getAttr ($name)
 
 setAttr ($name, $value)
 
 getCfg ()
 

Protected Member Functions

 afterInit ()
 
 initForm ()
 
 beforeInit ()
 

Protected Attributes

 $form
 
 $table
 
 $session
 
 $hasValues = false
 
 $cfg
 

Detailed Description

Helper to create a db filter form

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

Member Function Documentation

◆ __toString()

__toString ( )

Create the data Table out regarding the request out

Returns
string

Definition at line 290 of file filterTable.class.php.

◆ afterInit()

afterInit ( )
protected

Definition at line 40 of file filterTable.class.php.

◆ beforeInit()

beforeInit ( )
protectedinherited

Call just before the configuration initialisation

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

◆ clearLink()

clearLink ( )

Get the clear URL link

Returns
string

Definition at line 260 of file filterTable.class.php.

◆ fillValues()

fillValues ( )

Definition at line 106 of file filterTable.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.

◆ getForm()

getForm ( )

Get the filter form

Returns
form

Definition at line 131 of file filterTable.class.php.

◆ getLabel()

getLabel (   $name)

Get the label for a fieldname or a tablename

Parameters
string$name
Returns
string The label

Definition at line 249 of file filterTable.class.php.

◆ getWhere()

getWhere ( )

Get the where clause

Returns
db_where The where clause

Definition at line 149 of file filterTable.class.php.

◆ hasValues()

hasValues ( )

Indicates if the form fomter has values or not

Returns
bool

Definition at line 140 of file filterTable.class.php.

◆ initForm()

initForm ( )
protected

Init the filter form

Definition at line 59 of file filterTable.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 272 of file filterTable.class.php.

◆ toHtml()

toHtml ( )

Create the data Table HTML out

Returns
string

Definition at line 281 of file filterTable.class.php.

Field Documentation

◆ $cfg

$cfg
protectedinherited

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

◆ $form

$form
protected

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

◆ $hasValues

$hasValues = false
protected

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

◆ $session

$session
protected

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

◆ $table

$table
protected

Definition at line 24 of file filterTable.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