This class provides the most basic object :
- it has a name
- and an encoding
Methods
Constructor, initialises an instance of Formaid_TableRow
__construct(string $name, array $data, string $class, bool $format_htmlentities) : 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)
$format_htmlentities
bool
Escape html output
Add data to a tablerow
addData(mixed $data) : void
Parameters
$data
mixed
array or single value is added
Disables trimming whitespace of object name
disableTrimName() : void
Inherited
inherited_from |
\Formaid_Object::disableTrimName() |
Display object
display() : void
Inherited
The name of the object is printed to stdout.
inherited_from |
\Formaid_Object::display() |
Enables trimming whitespace of object name
enableTrimName() : void
Inherited
inherited_from |
\Formaid_Object::enableTrimName() |
Generates a the HTML code for a table row.
getDisplayString() : string
Returns name of the object
getName() : string
Inherited
inherited_from |
\Formaid_Object::getName() |
Returns
string
object name
Checks if object name is empty
isNameEmpty() : bool
Inherited
inherited_from |
\Formaid_Object::isNameEmpty() |
Returns
bool
true if empty
Sets new name for the object
setName(string $new_name) : void
Inherited
inherited_from |
\Formaid_Object::setName() |
Parameters
Show object
show() : void
Inherited
The name of the object is printed to stdout.
inherited_from |
\Formaid_Object::show() |
Checks if deleting the table row is allowed.
allowDelete() : bool
If the Privilege on this table row (allow_delete) is set,
it is allowed to delete the table row.
Returns
bool
true if deleting is allowed.
Checks if displaying the table row is allowed.
allowShow() : bool
If the Privilege on this table row (allow_show) is set,
it is allowed to display the tablerow.
Returns
bool
true if displaying is allowed.
Checks if modifying the table row is allowed.
allowUpdate() : bool
If the Privilege on this table row (allow_update) is set,
it is allowed to modify the table row.
Returns
bool
true if modifying is allowed.
Returns name formatted for displaying
getDisplayName() : string
Inherited
inherited_from |
\Formaid_Object::getDisplayName() |
Returns
string
formatted object name
Properties
$encoding : string
Inherited
access |
protected |
inherited_from |
\Formaid_Object::$$encoding |
$name : string
Inherited
access |
protected |
inherited_from |
\Formaid_Object::$$name |
$_trimName : bool
Inherited
access |
private |
inherited_from |
\Formaid_Object::$$_trimName |