ZenMagick 0.9.10


org.zenmagick.mvc.resultlist\ZMResultSource
mvc\resultlist\ZMResultSource.php at line 30

Interface ZMResultSource

ZMResultSource

public interface ZMResultSource

A source of result list results.

Author:
DerManoMann

Method Summary
string

getResultClass()

Get the class name of the results.

array

getResults()

Get the results.

int

getTotalNumberOfResults()

Total number of results.

boolean

isFinal()

Indicates whether the returned results are final or not.

void

setResultList(ZMResultList resultList)

Set the corresponding result list.

Method Detail

mvc\resultlist\ZMResultSource.php at line 51

getResultClass

public string getResultClass()

Get the class name of the results.

Returns:
The class name of the results.

mvc\resultlist\ZMResultSource.php at line 44

getResults

public array getResults()

Get the results.

Returns:
List of results.

mvc\resultlist\ZMResultSource.php at line 58

getTotalNumberOfResults

public int getTotalNumberOfResults()

Total number of results.

Returns:
The total number if results.

mvc\resultlist\ZMResultSource.php at line 72

isFinal

public boolean isFinal()

Indicates whether the returned results are final or not.

Sources may opt to filter and sort results already (for example for performance reasons. In that case, no further action is required by the result list.

As a side effect, the method getAllResults() may then return the same results (number and sort order) as getResults(), even if the source reports more than one page.

Returns:
true if the result source is handling all sorting and filtering, too.

mvc\resultlist\ZMResultSource.php at line 37

setResultList

public void setResultList(ZMResultList resultList)

Set the corresponding result list.

Parameters:
resultList - The *parent* result list.

ZenMagick 0.9.10