PHP Class Pimcore\Model\Document\Listing

Inheritance: extends Pimcore\Model\Listing\AbstractListing, implements Zend_Paginator_Adapter_Interface, implements Zend_Paginator_AdapterAggregate, implements Iterator
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Свойство Type Description
$documents array Contains the results of the list
$objectTypeDocument boolean Return all documents as Type Document. eg. for trees an so on there isn't the whole data required
$unpublished boolean
$validOrderKeys array Valid order keys

Méthodes publiques

Méthode Description
count ( ) : integer Returns the total items count.
current ( ) : Document Returns the current listing row.
getCondition ( ) : string Returns the SQL condition value.
getDocuments ( ) : array Returns documents, also loads the rows if these aren't loaded.
getItems ( integer $offset, integer $itemCountPerPage ) : Listing Returns the listing based on defined offset and limit as parameters.
getPaginatorAdapter ( ) : Listing
getUnpublished ( ) : boolean Checks if the document is unpublished.
isValidOrderKey ( $key ) : boolean Tests if the given key is an valid order key to sort the results
key ( ) : mixed Returns the current listing row key.
next ( ) : mixed Returns the next listing row key.
rewind ( ) Rewind the listing back to te start.
setDocuments ( array $documents ) : Listing Assign documents to the listing.
setUnpublished ( $unpublished ) : boolean Set the unpublished flag for the document.
valid ( ) : boolean Checks whether the listing contains more entries.

Method Details

count() public méthode

Returns the total items count.
public count ( ) : integer
Résultat integer

current() public méthode

Returns the current listing row.
public current ( ) : Document
Résultat Pimcore\Model\Document

getCondition() public méthode

Returns the SQL condition value.
public getCondition ( ) : string
Résultat string

getDocuments() public méthode

Returns documents, also loads the rows if these aren't loaded.
public getDocuments ( ) : array
Résultat array

getItems() public méthode

Returns the listing based on defined offset and limit as parameters.
public getItems ( integer $offset, integer $itemCountPerPage ) : Listing
$offset integer
$itemCountPerPage integer
Résultat Listing

getPaginatorAdapter() public méthode

public getPaginatorAdapter ( ) : Listing
Résultat Listing

getUnpublished() public méthode

Checks if the document is unpublished.
public getUnpublished ( ) : boolean
Résultat boolean

isValidOrderKey() public méthode

Tests if the given key is an valid order key to sort the results
public isValidOrderKey ( $key ) : boolean
Résultat boolean

key() public méthode

Returns the current listing row key.
public key ( ) : mixed
Résultat mixed

next() public méthode

Returns the next listing row key.
public next ( ) : mixed
Résultat mixed

rewind() public méthode

Rewind the listing back to te start.
public rewind ( )

setDocuments() public méthode

Assign documents to the listing.
public setDocuments ( array $documents ) : Listing
$documents array
Résultat Listing

setUnpublished() public méthode

Set the unpublished flag for the document.
public setUnpublished ( $unpublished ) : boolean
Résultat boolean

valid() public méthode

Checks whether the listing contains more entries.
public valid ( ) : boolean
Résultat boolean

Property Details

$documents public_oe property

Contains the results of the list
public array $documents
Résultat array

$objectTypeDocument public_oe property

Return all documents as Type Document. eg. for trees an so on there isn't the whole data required
public bool $objectTypeDocument
Résultat boolean

$unpublished public_oe property

public bool $unpublished
Résultat boolean

$validOrderKeys public_oe property

Valid order keys
public array $validOrderKeys
Résultat array