Skip to the content
Documentation

class

No ratings yet

Summary

Fetches a content class.

Usage

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

Parameters

Name Type Description Required
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.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.