Skip to the content
Documentation

attribute_list

No ratings yet

Summary

Fetches the attributes of a class.

Usage

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

Parameters

Name Type Description Required
class_id interger The ID number of the target class. Yes.

Returns

Array of ezcontentclassattribute objects or FALSE.

Description

This function fetches the attributes of a class specified by the "class_id" parameter. The function returns an array of ezcontentclassattribute objects or FALSE.

Examples

Example 1

{def $attributes=fetch( 'class', 'attribute_list', hash( 'class_id', 13 ) )}

{foreach $attributes as $attribute}
    {$attribute.name|wash} <br />
{/foreach}

Outputs the names of the attributes that belong to class number 13.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.