Class FrontendList Class for scrollable frontend lists

author Timo A. Hummel <Timo.Hummel@4fb.de>
version 0.1

 Methods

Creates a new FrontendList object.

FrontendList($startwrap, $endwrap, $itemwrap) 
Inherited

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()

Parameters

$startwrap

Wrap for the list start

$endwrap

Wrap for the list end

$itemwrap

Wrap for a single item

Field converting facility.

convert($field, $data) 

Needs to be overridden in the child class to work properbly.

Parameters

$field

Field index

$data

Returns the current page.

getCurrentPage() : \s
Inherited
inherited_from \FrontendList::getCurrentPage()

Returns

\sCurrent page number

Returns the amount of pages.

getNumPages() : \s
Inherited
inherited_from \FrontendList::getNumPages()

Returns

\sAmount of pages

Outputs or optionally returns

output($return) 
Inherited
inherited_from \FrontendList::output()

Parameters

$return

If true, returns the list

Sets data.

setData($index) 
Inherited

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()

Parameters

$index

Numeric index

Sets the starting page number.

setListStart($startpage) 
Inherited
inherited_from \FrontendList::setListStart()

Parameters

$startpage

Page number on which the list display starts

Sets the number of records per page.

setResultsPerPage($numresults) 
Inherited
inherited_from \FrontendList::setResultsPerPage()

Parameters

$numresults

Amount of records per page

Sorts the list by a given field and a given order.

sort($field, $order) 
Inherited
inherited_from \FrontendList::sort()

Parameters

$field

Field index

$order

Sort order (see php's sort documentation)

 Properties

 

$dark 
 

$data : array
Inherited
inherited_from \FrontendList::$$data
 

$endwrap : string
Inherited
inherited_from \FrontendList::$$endwrap
 

$itemwrap : string
Inherited
inherited_from \FrontendList::$$itemwrap
 

$listStart : string
Inherited
inherited_from \FrontendList::$$listStart
 

$pathdata 
 

$resultsPerPage : string
Inherited
inherited_from \FrontendList::$$resultsPerPage
 

$size 
 

$startwrap : string
Inherited
inherited_from \FrontendList::$$startwrap