Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

class

Summary

Provides views for managing classes, class groups, etc.

Description

This module provides several interfaces that can be used to view and manage the content classes and class groups that are present in the system. The views that the module provides are used by the "Class" section of the "Setup" part of the administration interface.

Fetch functions

NameSummary
attribute_list Fetches the attributes of a class.
latest_list Fetches the most recently modified classes.
list Fetches a collection of classes.
override_template_list Fetches the override rules associated with a class.

Views

NameSummary
classlist Provides an interface for generating a class overview for a class group.
copy Provides an interface for copying a role.
down Provides an interface for moving an attribute to a lower position.
edit Provides an interface for editing a class.
groupedit Provides an interface for editing a class group.
grouplist Provides an interface for generating an overview of the class groups.
removeclass Provides an interface to the class removal mechanism.
removegroup Provides an interface to the class group removal mechanism.
up Provides an interface for moving an attribute to a higher position.
view Provides an interface for viewing a class.

Balazs Halasy (23/02/2005 9:40 am)

Balazs Halasy (29/04/2005 7:53 am)


Comments

  • list_by_groups fetch function

    There is also a list_by_groups fetch function.

    Definition:
    fetch( 'class', 'list_by_groups', hash(  'group_filter', false|array ,
                                         [ 'group_filter_type',  'include'|exclude  ] ) )
     
    

    group_filter should be array of class group id's
    You can use ini settings from [ClassGroupIDs] in content.ini to get id's.

    For real world example, see design/admin(2)/templates/contentstructuremenu/content_structure_menu_dynamic.tpl

    It was probably added in 3.10, as dynamic csm was added then and this is only place it is currently used.