Class DatabaseItemList

Concrete\Core\Legacy\ItemList
Extended by Concrete\Core\Legacy\DatabaseItemList

Methods summary

public
# getTotal( )

Returns the total number of items found by this list

public
# debug( $dbg = true )
protected
# setQuery( $query )
protected
# getQuery( )
public
# addToQuery( $query )
protected
protected
protected
protected
public
# get( $itemsToGet = 0, $offset = 0 )

Returns an array of whatever objects extends this class (e.g. PageList returns a list of pages).

public
# filter( $column, $value, $comparison = '=' )

Adds a filter to this item list.

public
public
# sortBy( string $key, string $dir = 'asc' )

Sets column to sort by. Only supports a single column; for multiple columns us sortByMultiple()

public
# groupBy( $key )
public
# having( $column, $value, $comparison = '=' )
public
# getSortByURL( $column, $dir = 'asc', $baseURL = false, $additionalVars = array() )
protected
public
# filterByAttribute( $column, $value, $comparison = '=' )

Properties summary

protected string $query
# ''
protected string $userQuery
# ''
protected boolean $debug
# false
protected array $filters
# array()
protected string $sortByString
# ''
protected string $groupByString
# ''
protected string $havingString
# ''
protected array $autoSortColumns
# array()
protected string $userPostQuery
# ''
protected string $attributeClass
# ''