ZenMagick 0.9.8


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

Interface ZMResultSource

ZMResultSource

public interface ZMResultSource

A source of result list results.

Author:
DerManoMann
Version:
$Id: ZMResultSource.php 2610 2009-11-20 02:45:25Z 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 52

getResultClass

public string getResultClass()

Get the class name of the results.

Returns:
The class name of the results.

\mvc\resultlist\ZMResultSource.php at line 45

getResults

public array getResults()

Get the results.

Returns:
List of results.

\mvc\resultlist\ZMResultSource.php at line 59

getTotalNumberOfResults

public int getTotalNumberOfResults()

Total number of results.

Returns:
The total number if results.

\mvc\resultlist\ZMResultSource.php at line 73

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 38

setResultList

public void setResultList(ZMResultList resultList)

Set the corresponding result list.

Parameters:
resultList - The *parent* result list.

ZenMagick 0.9.8