kernel/private/api/content/repository.php

Show: inherited
Table of Contents

File containing the ezpContentRepository class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
API  
Version
4.6.0  

\ezpContentRepository

Package: API

This class handles querying of content repository

Properties

Propertyprivate  $defaultRootNode= '1'
static
Default value1Details
Type
n/a

Methods

methodpublicfetch( \ezpContentIdentifier $identifier ) : \ezpContent
static

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
Name Type Description
$identifier \ezpContentIdentifier
Returns
Type Description
\ezpContent
methodpublicquery( \ezpContentCriteria $criteria ) : \ezpContentList
static

Runs a content repository query using a given set of criteria

Parameters
Name Type Description
$criteria \ezpContentCriteria
Returns
Type Description
\ezpContentList
methodpublicqueryCount( \ezpContentCriteria $criteria ) : int
static

Returns node count using a given set of criteria

Parameters
Name Type Description
$criteria \ezpContentCriteria
Returns
Type Description
int
methodprotectedtranslateFetchParams(  $criteria ) : \stdClass
static

We have a set of content criteria in $criteria These criteria provide us with: - location conditions (part of subtree X, not part of subtree Y, etc) - content based conditions (content class, attribute value, etc)

Based on this, we need to end up calling eZContentObjectTreeNode and return the resulting objects as an ezpContentList, a countable iterator that iterates over ezpContent objects

This method will make the translation between ezpContentCriteria and acceptable fetch params

Parameters
Name Type Description
$criteria
Returns
Type Description
\stdClass Object with 2 properties : - rootNodeId => array of parent node Ids - params => array of translated fetch params
Documentation was generated by DocBlox 0.18.1.