Path

ez components / documentation / api reference / trunk / feed


eZ Components trunk

Feed: ezcFeedItem

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

Class: ezcFeedItem

Container for item data. [source]

Parents

ezcFeedElement
   |
   --ezcFeedItem

Member Variables

protected array(ezcFeedModule) $modules = array()
Holds the modules used by this feed item.

Inherited Member Variables

From ezcFeedElement:
protected  ezcFeedElement::$data
protected  ezcFeedElement::$schema

Method Summary

public ezcFeedItem __construct( $schema )
Constructs a new ezcFeedElement object.
public ezcFeedModule addModule( $name )
Adds a new module to this item and returns it.
public array(ezcFeedModule) getModules( )
Returns an array with all the modules defined for this feed item.
public bool hasModule( $name )
Returns true if the module $name is loaded, false otherwise.

Inherited Methods

From ezcFeedElement :
public ezcFeedElement ezcFeedElement::__construct()
Constructs a new ezcFeedElement object.
public ezcFeedelement ezcFeedElement::add()
Adds a new ezcFeedElement element with name $name to this element and returns it.
public string ezcFeedElement::get()
Returns the root value of this element as string.
public mixed ezcFeedElement::getValue()
Returns the root value of this element as mixed.
public void ezcFeedElement::set()
Sets the root value of this element to $value.

Methods

__construct

ezcFeedItem __construct( $schema )
Constructs a new ezcFeedElement object.

Parameters

Name Type Description
$schema array(string=>mixed) The sub-schema that defines this element

Redefinition of

Method Description
ezcFeedElement::__construct() Constructs a new ezcFeedElement object.

addModule

ezcFeedModule addModule( string $name )
Adds a new module to this item and returns it.

Parameters

Name Type Description
$name string The name of the module to add

getModules

array(ezcFeedModule) getModules( )
Returns an array with all the modules defined for this feed item.

hasModule

bool hasModule( string $name )
Returns true if the module $name is loaded, false otherwise.

Parameters

Name Type Description
$name string The name of the module to check if loaded for this item

Last updated: Mon, 05 May 2008