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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.