class
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
- Balazs Halasy Maintainer
- Svitlana Shatokhina Updated Maintainer
Comments
Add a comment