Methods

convert()

convert($field, $data) 

Parameters

$field

$data

 Properties

 

$dark

$dark 

 

$size

$size 

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 $startwrap, \$endwrap $endwrap, \$itemwrap $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

\$startwrap

Wrap for the list start

$endwrap

\$endwrap

Wrap for the list end

$itemwrap

\$itemwrap

Wrap for a single item

Field converting facility.

convert(\$field $field, $data) 

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

Parameters

$field

\$field

Field index

$data

Returns the current page.

getCurrentPage() 
Inherited

returns Current page number
inherited_from \FrontendList::getCurrentPage()

Returns the amount of pages.

getNumPages() 
Inherited

returns Amount of pages
inherited_from \FrontendList::getNumPages()

Outputs or optionally returns

output(\$return $return) 
Inherited

inherited_from \FrontendList::output()

Parameters

$return

\$return

If true, returns the list

Sets data.

setData(\$index $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

\$index

Numeric index

Sets the starting page number.

setListStart(\$startpage $startpage) 
Inherited

inherited_from \FrontendList::setListStart()

Parameters

$startpage

\$startpage

Page number on which the list display starts

Sets the number of records per page.

setResultsPerPage(\$numresults $numresults) 
Inherited

inherited_from \FrontendList::setResultsPerPage()

Parameters

$numresults

\$numresults

Amount of records per page

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

sort(\$field $field, \$order $order) 
Inherited

inherited_from \FrontendList::sort()

Parameters

$field

\$field

Field index

$order

\$order

Sort order (see php's sort documentation)

 Properties

 

$dark

$dark 

 

Data container

$data : array
Inherited

inherited_from \FrontendList::$$data
 

Wrap for table end

$endwrap : string
Inherited

inherited_from \FrontendList::$$endwrap
 

Wrap for a single item

$itemwrap : string
Inherited

inherited_from \FrontendList::$$itemwrap
 

Start page

$listStart : string
Inherited

inherited_from \FrontendList::$$listStart
 

$pathdata

$pathdata 

 

Number of records displayed per page

$resultsPerPage : string
Inherited

inherited_from \FrontendList::$$resultsPerPage
 

$size

$size 

 

Wrap for table start

$startwrap : string
Inherited

inherited_from \FrontendList::$$startwrap