Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

class

Summary

Fetches a content class.

Usage

fetch( 'content', 'class', hash( 'class_id', class_id ) )

Parameters

NameTypeDescriptionRequired
class_id integer The identifier or ID number of the of class that should be fetched. Yes.

Returns

The specified class as an ezcontentclass object or FALSE.

Description

This function fetches the class specified by the "class_id" parameter and returns it as an ezcontentclass object. The function will return FALSE if the specified class is unavailable.

Examples

Example 1

{def $class=fetch( 'content', 'class', hash( 'class_id', 13 ) )}
{$class.name|wash}

Outputs name of class number 13.

Balazs Halasy (06/02/2004 12:02 pm)

Svitlana Shatokhina (13/10/2006 9:48 am)

Balazs Halasy, Svitlana Shatokhina


Comments

There are no comments.