Escapes and assigns values
static
void
escapeAndAssignArray
(object &$t, array $values)
Escapes the values in the array
static
array
escapeArray
(array $values)
-
array
$values: array withe values to be escaped
miTable constructor. It takes one parameter - object of class miSqlRecordset or its subclasses
Example:
miTable
__construct
( &$recordset, object $recordset)
-
object
$recordset: object of class miSqlRecordset or its subclasses
-
&$recordset
Add main page elements
void
addMainPageElements
(array $mainPageElements)
-
array
$mainPageElements: array with the main page elements
In this function subclasses will add specific elements to the main template page
void
addMainUiElements
( &$t, object $t)
-
object
$t: of class miTemplateParser() or its subclasses
-
&$t
Adds a table feature
void
addTableFeature
(object $tableFeature)
In this function subclasses will add table specific processing
void
addUiElements
( &$rows, array $rows)
-
array
$rows: readed rows from the database
-
&$rows
Assigns a value to a specify main page element
void
assign
(string $name, mixed $value)
-
string
$name: name of the main page element
-
mixed
$value: value of the main page element
Assign all table feature values to the template
void
assignFeatureValues
($t &$t)
Get all table feature values
array
getFeatureValues
()
Returns the message object if $this->_messageObj is null creates new miMessage object
Retrieves the recordset object
void
&getRecordset
()
Return the state
array
getState
()
Returns the params saving the state of all table features
void
getTableFeaturesStateParams
()
Converts an associative array of params into url string
string
paramsArrayToUrl
(array $params)
Build webform Html using the template file
void
parse
(string $templateFilename)
-
string
$templateFilename: name of the template file
Sets main page elements
void
setMainPageElements
(array $mainPageElements)
-
array
$mainPageElements: array with the main page elements
Set the state
void
setState
(array $state)
Shows the table using the specified template
Example:
void
showPage
(string $mainTemplate)
-
string
$mainTemplate: name of the main template file
Updates the current state.
The new state is retrieved from the table features
void
updateState
()