Class FrontendList Class for scrollable frontend lists
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| version | 0.1 |
FrontendList($startwrap, $endwrap, $itemwrap)
The placeholder for item wraps are the same as for sprintf. See the documentation for sprintf.
Caution: Make sure that percentage signs are written as %%.
| inherited_from | \FrontendList::FrontendList() |
|---|
Wrap for the list start
Wrap for the list end
Wrap for a single item
convert($field, $data)
Needs to be overridden in the child class to work properbly.
Field index
getCurrentPage()
| returns | Current page number |
|---|---|
| inherited_from | \FrontendList::getCurrentPage() |
getNumPages()
| returns | Amount of pages |
|---|---|
| inherited_from | \FrontendList::getNumPages() |
output($return)
| inherited_from | \FrontendList::output() |
|---|
If true, returns the list
setData($index)
Note: This function eats as many parameters as you specify.
Example: $obj->setData(0, "foo", "bar");
Make sure that the amount of parameters stays the same for all setData calls in a single object.
| inherited_from | \FrontendList::setData() |
|---|
Numeric index
setListStart($startpage)
| inherited_from | \FrontendList::setListStart() |
|---|
Page number on which the list display starts
setResultsPerPage($numresults)
| inherited_from | \FrontendList::setResultsPerPage() |
|---|
Amount of records per page
sort($field, $order)
| inherited_from | \FrontendList::sort() |
|---|
Field index
Sort order (see php's sort documentation)
$dark
$data : array
| inherited_from | \FrontendList::$$data |
|---|
$endwrap : string
| inherited_from | \FrontendList::$$endwrap |
|---|
$itemwrap : string
| inherited_from | \FrontendList::$$itemwrap |
|---|
$listStart : string
| inherited_from | \FrontendList::$$listStart |
|---|
$pathdata
$resultsPerPage : string
| inherited_from | \FrontendList::$$resultsPerPage |
|---|
$size
$startwrap : string
| inherited_from | \FrontendList::$$startwrap |
|---|