Path

ez components / documentation / api reference / 2009.1 / persistentobject


eZ Components 2009.1

PersistentObject: ezcPersistentFindQuery

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcPersistentFindQuery

Find query object to be used with ezcPersistentSession. [source]
An instance of this class is returned by ezcPersistentSession->createFindQuery() since PersistentObject 1.6, instead of a pure ezcQuerySelect object. This class deals as a decorator for ezcQuerySelect and offers the very same API. In addition, it allows PersistentObject to store and determine the class for objects to fetch from the query object. This deprecates the second parameter to ezcPersistentSession->find().

Descendents

Child Class Description
ezcPersistentRelationFindQuery Find query object to be used with ezcPersistentSessionIdentityDecorator.
ezcPersistentFindWithRelationsQuery Find query object for pre-fetching queries in ezcPersistentSessionIdentityDecorator.

Member Variables

protected array(string=>mixed) $properties = array()
Properties.

Method Summary

public ezcPersistentFindQuery __construct( $query, $className )
Creates a new persistent find query.
public mixed __call( $methodName, $arguments )
Delegate to inner $query object.

Methods

__construct

ezcPersistentFindQuery __construct( $query, string $className )
Creates a new persistent find query.
Creates a new persistent find query from the query object $q and the given $className.

Parameters

Name Type Description
$query ezcQuerySelect  
$className string  

Redefined in descendants as

Method Description
ezcPersistentRelationFindQuery::__construct() Creates a new relation find query.
ezcPersistentFindWithRelationsQuery::__construct() Creates a new persistent find query.

__call

mixed __call( string $methodName, array $arguments )
Delegate to inner $query object.
Delegates calls to unknown methods to $query property.

Parameters

Name Type Description
$methodName string  
$arguments array  

Redefined in descendants as

Method Description
ezcPersistentFindWithRelationsQuery::__call() Delegate to inner $query object.

Last updated: Mon, 29 Jun 2009