Table header class

This class provides the most basic object : - it has a name - and an encoding

category Table
package Formaid
author Dieter Adriaenssens
copyright 2006-2013 Dieter Adriaenssens
license GPL
link http://formaid.sourceforge.net/

 Methods

Constructor, initialises an instance of Formaid_TableHeader

__construct(string $name, array $data, string $class) : void

Sets encoding to be used, and set name of the object

Parameters

$name

string

Name of the tablerow

$data

array

Array with tablerow data

$class

string

Html class (used for layout)

Add data to a tablerow

addData(mixed $data) : void
Inherited
inherited_from \Formaid_TableRow::addData()

Parameters

$data

mixed

array or single value is added

Disables trimming whitespace of object name

disableTrimName() : void
Inherited
inherited_from \Formaid_Object::disableTrimName()
inherited_from \Formaid_TableRow::disableTrimName()

Display object

display() : void
Inherited

The name of the object is printed to stdout.

inherited_from \Formaid_Object::display()
inherited_from \Formaid_TableRow::display()

Enables trimming whitespace of object name

enableTrimName() : void
Inherited
inherited_from \Formaid_Object::enableTrimName()
inherited_from \Formaid_TableRow::enableTrimName()

Generates a the HTML code for a table row.

getDisplayString() : string
Inherited
inherited_from \Formaid_TableRow::getDisplayString()

Returns

string

Returns name of the object

getName() : string
Inherited
inherited_from \Formaid_Object::getName()
inherited_from \Formaid_TableRow::getName()

Returns

stringobject name

Checks if object name is empty

isNameEmpty() : bool
Inherited
inherited_from \Formaid_Object::isNameEmpty()
inherited_from \Formaid_TableRow::isNameEmpty()

Returns

booltrue if empty

Sets new name for the object

setName(string $new_name) : void
Inherited
inherited_from \Formaid_Object::setName()
inherited_from \Formaid_TableRow::setName()

Parameters

$new_name

string

new name

Show object

show() : void
Inherited

The name of the object is printed to stdout.

inherited_from \Formaid_Object::show()
inherited_from \Formaid_TableRow::show()

Checks if deleting the table row is allowed.

allowDelete() : bool
Inherited

If the Privilege on this table row (allow_delete) is set, it is allowed to delete the table row.

inherited_from \Formaid_TableRow::allowDelete()

Returns

booltrue if deleting is allowed.

Checks if displaying the table row is allowed.

allowShow() : bool
Inherited

If the Privilege on this table row (allow_show) is set, it is allowed to display the tablerow.

inherited_from \Formaid_TableRow::allowShow()

Returns

booltrue if displaying is allowed.

Checks if modifying the table row is allowed.

allowUpdate() : bool
Inherited

If the Privilege on this table row (allow_update) is set, it is allowed to modify the table row.

inherited_from \Formaid_TableRow::allowUpdate()

Returns

booltrue if modifying is allowed.

Returns name formatted for displaying

getDisplayName() : string
Inherited
inherited_from \Formaid_Object::getDisplayName()
inherited_from \Formaid_TableRow::getDisplayName()

Returns

stringformatted object name

 Properties

 

$ID : string
Inherited
access public
inherited_from \Formaid_TableRow::$$ID
 

$class : string
Inherited
access public
inherited_from \Formaid_TableRow::$$class
 

$filename : string
Inherited
access public
inherited_from \Formaid_TableRow::$$filename
 

$format_htmlentities : bool
Inherited
access public
inherited_from \Formaid_TableRow::$$format_htmlentities
 

$privileges : array
Inherited
access public
inherited_from \Formaid_TableRow::$$privileges
 

$row_fields : object
Inherited
access public
inherited_from \Formaid_TableRow::$$row_fields
 

$encoding : string
Inherited
access protected
inherited_from \Formaid_Object::$$encoding
inherited_from \Formaid_TableRow::$$encoding
 

$field_code : string
Inherited
access protected
inherited_from \Formaid_TableRow::$$field_code
 

$item_code : string
Inherited
access protected
inherited_from \Formaid_TableRow::$$item_code
 

$name : string
Inherited
access protected
inherited_from \Formaid_Object::$$name
inherited_from \Formaid_TableRow::$$name
 

$_trimName : bool
Inherited
access private
inherited_from \Formaid_Object::$$_trimName
inherited_from \Formaid_TableRow::$$_trimName