Path

ez.no / exponential / documentation / reference / data fetching / content / class_attribute_list


class_attribute_list

Summary

Fetch attribute list of specified class.

Usage

fetch( 'content', 'class_attribute_list', hash( 'class_id', class_id [,
                                                'version_id', version_id ] ) )

Parameters

NameTypeDescriptionRequired
class_id integer Class ID yes
version_id integer Class version status no

Returns

An array containing a list of the ezContentClassAttribute objects for the given class.

Description

Fetch all class attributes of the specified class. Class version status allowed:

  • 0 - defined
  • 1 - temporary
  • 2 - modified

Examples

{section loop=fetch( 'content', 'class_attribute_list', hash( 'class_id', 2 ) )}

 {$:item.name|wash}

{/section}

Outputs the name of all attributes of the class with ID 2 ( Article ).

Comments

Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
       access
       bookmarks
       can_instantiate_class_list
       can_instantiate_classes
       class
       class_attribute
       class_attribute_list
       collected_info_collection
       collected_info_count
       collected_info_count_list
       contentobject_attributes
       draft_count
       draft_version_list
       keyword
       keyword_count
       list
       list_count
       locale_list
       navigation_parts
       node
       non_translation_list
       object
       object_by_attribute
       object_count_by_user_id
       pending_count
       pending_list
       recent
       same_classattribute_node
       search
       section_list
       tipafriend_top_list
       translation_list
       trash_count
       trash_object_list
       tree
       tree_count
       version
       version_count
       version_list
       view_top_list
    Collaboration
    Layout
    Notification
    Package
    Section
    Shop
    URL
    User
Modules
XML tags


Created

06/02/2004
1:03:16 pm
by Balazs Halasy

Last updated

06/02/2004
5:42:13 pm
by Kåre Køhler Høvik

Authors

Balazs Halasy
Kåre Køhler Høvik



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.