ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

attribute_list

Summary

Fetches the attributes of a class.

Usage

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

Parameters

NameTypeDescriptionRequired
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.

Balazs Halasy (06/02/2004 11:55 am)

Balazs Halasy (29/04/2005 8:15 am)


Comments

There are no comments.