Class

ezpContentRepository

class ezpContentRepository

This class handles querying of content repository

Methods

static ezpContentList query(ezpContentCriteria $criteria)

Runs a content repository query using a given set of criteria

static int queryCount(ezpContentCriteria $criteria)

Returns node count using a given set of criteria

static ezpContent fetch(ezpContentIdentifier $identifier)

Fetches an ezpContent based on an identifier object.

Details

at line 23
static public ezpContentList query(ezpContentCriteria $criteria)

Runs a content repository query using a given set of criteria

Parameters

ezpContentCriteria $criteria

Return Value

ezpContentList

at line 40
static public int queryCount(ezpContentCriteria $criteria)

Returns node count using a given set of criteria

Parameters

ezpContentCriteria $criteria

Return Value

int

at line 124
static public ezpContent fetch(ezpContentIdentifier $identifier)

Fetches an ezpContent based on an identifier object.

The content will be fetched depending on what aspects of the identifier object have been configured.

Example 1: $identifier = new ezpContentIdentifier; $identifier->objectId = 123; $content = ezpContentRepository::fetch( $identifier );

Example 2: $identifier = new ezpContentIdentifier; $identifier->nodeId = 456; $content = ezpContentRepository::fetch( $identifier );

Further evolutions on ezpContentIdentifier will allow for unified fetching without adding new methods

Parameters

ezpContentIdentifier $identifier

Return Value

ezpContent