cScrollList()
convert()
getCurrentPage()
getNumPages()
onRenderColumn()
onRenderRow()
render()
setCustom()
setData()
setHeader()
setHiddenData()
setListStart()
setResultsPerPage()
setSortable()
sort()
$data
$header
$listStart
$objHeaderItem
$objHeaderRow
$objItem
$objRow
$objTable
$resultsPerPage
$sortable
$sortlink
Class ScrollableList Class for scrollable backend lists
cScrollList(\$defaultstyle $defaultstyle, $action)
\$defaultstyle
boolean use the default style for object initializing?
convert(\$field $field, \$value $value, $hiddendata)
Needs to be overridden in the child class to work properbly.
\$field
Field index
\$value
Field value
getCurrentPage()
returns | Current page number |
---|
getNumPages()
returns | Amount of pages |
---|
onRenderColumn(\$row $column)
\$row
The current column which is being rendered
onRenderRow(\$row $row)
\$row
The current row which is being rendered
render(\$return $return)
\$return
If true, returns the list
setCustom(\$key $key, \$custom $custom)
$obj->setCustom($key, $custom);
\$key
Custom entry key
\$custom
Custom entry value
setData(\$index $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. Also make sure that your index starts from 0 and ends with the actual number - 1.
\$index
Numeric index
setHeader()
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.
setHiddenData(\$index $index)
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.
\$index
Numeric index
setListStart(\$startpage $startpage)
\$startpage
Page number on which the list display starts
setResultsPerPage(\$numresults $numresults)
\$numresults
Amount of records per page
setSortable(\$sortable $key, $sortable)
$obj->setSortable(true);
\$sortable
boolean true or false
sort(\$field $field, \$order $order)
\$field
Field index
\$order
Sort order (see php's sort documentation)
$data : array
$header : array
$listStart : string
$objHeaderItem
$objHeaderRow
$objItem
$objRow
$objTable
$resultsPerPage : string
$sortable : string
$sortlink : string