Class ScrollableList Class for scrollable backend lists

 Methods

TODOBackendList()

TODOBackendList() 

Creates a new FrontendList object.

cScrollList($defaultstyle, $action) 
Inherited
inherited_from \cScrollList::cScrollList()

Parameters

$defaultstyle

boolean use the default style for object initializing?

$action

Field converting facility.

convert($key, $value, $hidden) 

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

Parameters

$key

$value

Field value

$hidden

Returns the current page.

getCurrentPage() 
Inherited
returns Current page number
inherited_from \cScrollList::getCurrentPage()

Returns the amount of pages.

getNumPages() 
Inherited
returns Amount of pages
inherited_from \cScrollList::getNumPages()

Is called when a new column is rendered

onRenderColumn($column) 

Parameters

$column

Is called when a new row is rendered

onRenderRow($row) 
Inherited
inherited_from \cScrollList::onRenderRow()

Parameters

$row

The current row which is being rendered

Outputs or optionally returns

render($return) 
Inherited
inherited_from \cScrollList::render()

Parameters

$return

If true, returns the list

Sets the custom parameters for sortable links

setCustom($key, $custom) 
Inherited

$obj->setCustom($key, $custom);

inherited_from \cScrollList::setCustom()

Parameters

$key

Custom entry key

$custom

Custom entry value

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. Also make sure that your index starts from 0 and ends with the actual number - 1.

inherited_from \cScrollList::setData()

Parameters

$index

Numeric index

Sets header data.

setHeader() 
Inherited

Note: This function eats as many parameters as you specify.

Example: $obj->setHeader("foo", "bar");

Make sure that the amount of parameters stays the same for all setData calls in a single object.

inherited_from \cScrollList::setHeader()

Sets hidden data.

setHiddenData($index) 
Inherited

Note: This function eats as many parameters as you specify.

Example: $obj->setHiddenData(0, "foo", "bar");

Make sure that the amount of parameters stays the same for all setData calls in a single object. Also make sure that your index starts from 0 and ends with the actual number - 1.

inherited_from \cScrollList::setHiddenData()

Parameters

$index

Numeric index

Sets the starting page number.

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

Parameters

$startpage

Page number on which the list display starts

Sets the number of records per page.

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

Parameters

$numresults

Amount of records per page

Sets the sortable flag for a specific row.

setSortable($key, $sortable) 
Inherited

$obj->setSortable(true);

inherited_from \cScrollList::setSortable()

Parameters

$key

$sortable

boolean true or false

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

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

Parameters

$field

Field index

$order

Sort order (see php's sort documentation)

 Properties

 

$data : array
Inherited
inherited_from \cScrollList::$$data
 

$header : array
Inherited
inherited_from \cScrollList::$$header
 

$listStart : string
Inherited
inherited_from \cScrollList::$$listStart
 

$objHeaderItem 
Inherited
inherited_from \cScrollList::$$objHeaderItem
 

$objHeaderRow 
Inherited
inherited_from \cScrollList::$$objHeaderRow
 

$objItem 
Inherited
inherited_from \cScrollList::$$objItem
 

$objRow 
Inherited
inherited_from \cScrollList::$$objRow
 

$objTable 
Inherited
inherited_from \cScrollList::$$objTable
 

$resultsPerPage : string
Inherited
inherited_from \cScrollList::$$resultsPerPage
 

$sortable : string
Inherited
inherited_from \cScrollList::$$sortable
   

$statustypes