Property | Type | Description | |
---|---|---|---|
$cacheKey | mixed | List cache key | |
$columns | integer | The number of columns (for generating tables) | |
$constraints | array | The constraints array. | |
$critera | The Criteria object | ||
$defaultIterator | object | The default iterator for the current object. | |
$defaultTTL | integer | Default cache time | |
$firstResult | integer | The start page number from which to generate the list. | |
$hasNextResults | boolean | True if the generated list has more elements than $this->m_limit | |
$id | string | The identifier of the list | |
$maxResults | integer | The maximum number of objects in the list, null or 0 for no limit | |
$name | string | The name of the list | |
$objectsList | The list of objects. | ||
$operatorsMap | |||
$parameters | array | The clean array of parameters | |
$totalCount | integer | The total number of elements in the list without the limits. |
Method | Description | |
---|---|---|
__construct ( $criteria ) | ||
__get ( string $property ) : mixed | Overloaded method call to give access to the list properties. | |
defaultIterator ( ) : object | Returns the default iterator of this list. | |
getColumn ( integer $iterator = null ) | Returns the column number for the given iterator | |
getColumns ( ) : integer | Returns the number of columns. | |
getConstraints ( ) : array | Returns the constraints. | |
getCurrent ( ) : object | Returns the current element of the default iterator. | |
getEnd ( ) : integer | Returns the index of the last element of this list in the original list from which this was truncated. | |
getIndex ( ) : integer | Returns the index of the current element of the default iterator. | |
getIterator ( ) : object | Returns an iterator for this list. | |
getLength ( ) : integer | Returns the length of the list. | |
getLimit ( ) : integer | Returns the maximum number of elements, 0 for limitless. | |
getList ( $firstResult, $parameters ) | ||
getName ( ) : string | Returns the list name. | |
getRow ( $iterator = null ) | Returns the row number for the given iterator | |
getStart ( ) : integer | Returns the index of the start element of this list in the original list from which this was truncated. | |
getTotalCount ( ) : unknown | Returns the total number of elements in the list without the limits. | |
hasNextElements ( ) : boolean | Returns true if this list is limited and elements still exist in the original list (from which this was truncated) after the last element of this list. | |
hasPreviousElements ( ) : boolean | Returns true if the index of the start element in the original list - from which this was truncated - is greater than 0. | |
isBlank ( ) : boolean | Return true if the list is blank (see the constructor documentation). | |
isEmpty ( ) : boolean | Return true if the list is empty. | |
isLimited ( ) : boolean | Returns true if the list is limited to a certain number of elements. | |
setId ( string $id ) | Sets the list identifier | |
setTotalCount ( $totalCount ) : unknown | Set list total count. |
Method | Description | |
---|---|---|
convertConstraints ( ) | Convert constraints array to Criteria | |
convertParameters ( integer $firstResult, array $parameters ) : |
Convert parameters array to Criteria | |
getCacheKey ( ) | ||
parseConstraintsString ( string $constraintsString ) : array | Parses the constraints string and returns an array of words | |
prepareList ( |
Get ListResult object with list elements | |
setCriteria ( |
Set Criteria object |
Method | Description | |
---|---|---|
defaultName ( ) : string | Generates a unique name for this list object. | |
duplicateObject ( object $source ) : object | Copies the given object | |
getNextStart ( ) : integer | Returns the start element index of the next group of items from the list. Returns null if the list had no limit. | |
getPrevStart ( ) : integer | Returns the start element index of the previous group of items from the list. Returns null if the list had no limit. |
protected convertConstraints ( ) |
protected convertParameters ( integer $firstResult, array $parameters ) : |
||
$firstResult | integer | |
$parameters | array | |
return |
public defaultIterator ( ) : object | ||
return | object | of type ArrayIterator |
public getColumns ( ) : integer | ||
return | integer |
public getConstraints ( ) : array | ||
return | array |
public getCurrent ( ) : object | ||
return | object |
public getIterator ( ) : object | ||
return | object | of type ArrayIterator |
public getRow ( $iterator = null ) |
public getTotalCount ( ) : unknown | ||
return | unknown |
public hasNextElements ( ) : boolean | ||
return | boolean |
public hasPreviousElements ( ) : boolean | ||
return | boolean |
protected parseConstraintsString ( string $constraintsString ) : array | ||
$constraintsString | string | |
return | array |
abstract protected prepareList ( |
||
$criteria | ||
$parameters | array | |
return |
protected setCriteria ( |
||
$criteria |
public setTotalCount ( $totalCount ) : unknown | ||
return | unknown |
protected int $columns | ||
return | integer |
protected Criteria,Newscoop $critera | ||
return |
protected object $defaultIterator | ||
return | object |
protected int $firstResult | ||
return | integer |
protected bool $hasNextResults | ||
return | boolean |
protected int $maxResults | ||
return | integer |
protected ListResult,Newscoop $objectsList | ||
return |
protected array $parameters | ||
return | array |
protected int $totalCount | ||
return | integer |