Handles building the body.
Re-iterates through the columns array to regenerate the dataset as an associate array $_assocRecords from a numbered array $_records, for ease of flexy template use.
void buildHeader(
&$columns, array
$columns)
|
|
Builds the column header Determines if to build the columnSet array as associate or numbered.
Preformats the column header labels using the selected header formatter method. Generates sorting links for the labels. Cast the columnSet array to an object columnHeader for flexy template use.
Parameters:
Flexy custom function "getPaging"
Setup the pager renderer and send it the pagerOptions config. This is only meant to be called from a flexy template, using the expression: {getPaging():h}
string getPerPageSelectBox(
)
|
|
Pager renderer per-page select menu
Setup the pager renderer and send it the pagerOptions config. This is only meant to be called from a flexy template, using the expression: {getPerPageSelectBox():h} FIXME: Is there a more efficient of doing this?
string getResults(
[mixed
$format = null])
|
|
Default Results Statistics
This is only meant to be called from a flexy template, using the expression: {getResults():h}
There are three ways to use this either:
For the default messsage or string format using the resultsFormat config option: {getResults():h}
Sending the format string, but only require total records and total pages {getResults(#You have %s results in %s pages#):h}
Sending the format string, but organising the results message {getResults(#Showing records %s to %s from %s, page %s of %s# ,firstRecord,lastRecord,totalRecordsNum,currentPage,pagesNum):h}
FIXME: Added check to match count of %s to number of arguments to prevent PHP Too Few Arguments Error, as unable to use @. This might need something more efficient.
Parameters:
Switches the row css for displaying odd/even row colours.
FIXME: Is there a more efficient of doing this? Gets the odd/even values from the config settings oddRowAttribute and evenRowAttribute.