ZenMagick 0.9.6


org.zenmagick.rp.resultlist.ZMResultSource

Interface ZMResultSource

ZMResultSource

public interface ZMResultSource

A source of result list results.

Author:
DerManoMann
Version:
$Id: ZMResultSource.php 2007 2009-03-02 08:42:58Z 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

getResultClass

public string getResultClass()

Get the class name of the results.

Returns:
The class name of the results.

getResults

public array getResults()

Get the results.

Returns:
List of results.

getTotalNumberOfResults

public int getTotalNumberOfResults()

Total number of results.

Returns:
The total number if results.

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.

setResultList

public void setResultList(ZMResultList resultList)

Set the corresponding result list.

Parameters:
resultList - The *parent* result list.

ZenMagick 0.9.6