Path

7x / documentation / ez publish / technical manual / 4.x / reference / template fetch functions


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

Template fetch functions

class

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.

collaboration

NameSummary
group_tree Not documented yet.
message_list Not documented yet.
participant Not documented yet.
participant_list Not documented yet.
participant_map Not documented yet.
tree_count Not documented yet.

content

NameSummary
access Checks if the current user has access to a given function.
bookmarks Fetches the bookmarks of the current user.
calendar This function fetches the date time list when objects were published.
can_instantiate_classes Checks if the current user is allowed to create nodes.
can_instantiate_class_list Fetches the classes that the current user can create objects of.
class Fetches a content class.
class_attribute Fetches an attribute of a content class.
class_attribute_list Fetches the attributes of a class.
collected_info_collection Fetches an information collection.
collected_info_count Fetches the number of collections that match a certain criteria.
collected_info_count_list Fetches the number of times different values were collected.
contentobject_attributes Fetches the attributes of an object's version (and translation).
country_list Fetches the list of countries specified in the "country.ini" configuration file.
draft_count Fetches the number of drafts that belong to the current user.
draft_version_list Fetches the drafts that belong to the current user.
keyword Fetches nodes that use keywords starting with a given sequence.
keyword_count Fetches the number of nodes that use certain keywords. Only nodes that are main locations for content objects are counted.
list Fetches the children of a node or a collection of nodes.
list_count Fetches the number of children of a node.
locale Fetches the current or a specified locale.
locale_list Fetches the available locales.
navigation_part Fetches information about a navigation part.
navigation_parts Fetches all available navigation parts.
node Fetches a node (identified by either an ID number or a path).
non_translation_list Fetches locales that a version of an object may be translated into.
object Fetches a content object (specified by an ID number).
object_by_attribute DEPRECATED
object_count_by_user_id Fetches the number of objects (of a class) created by a user.
pending_count Fetches the number of pending objects for the current user.
pending_list Fetches the pending objects for the current user.
recent Fetches nodes where the current user recently published something.
related_objects Fetches related objects.
related_objects_count Fetches the number of related objects.
reverse_related_objects Fetches reverse related objects.
reverse_related_objects_count Fetches the number of reverse related objects.
same_classattribute_node Fetches nodes containing attributes that match a certain value.
search Fetches nodes containing data that match a certain criteria.
section_list Fetches the available sections.
tipafriend_top_list Fetches the most popular (most tipped) nodes.
translation_list Fetches the locales that can be used to translate objects.
trash_count Fetches the number of objects that are in the trash.
trash_object_list Fetches the objects that are in the trash.
tree Fetches the children of a node recursively.
tree_count Fetches the number of children of a node recursively.
version Fetches a specific version of an object.
version_count Fetches the number of versions of a content object.
version_list Fetches all the versions of a content object.
view_top_list Fetches the most popular (most viewed) nodes.

layout

NameSummary
sitedesign_list DEPRECATED (Fetches the names of the currently used designs.)

notification

NameSummary
digest_handlers Fetches the notification handlers for the notification items that should be sent as digest to the current user.
digest_items Fetches notification items that should be sent as digest to the current user.
event_content Fetches the contents of the notification event.
handler_list Fetches the available notification handlers.
subscribed_nodes Fetches nodes that the current user has subscribed to.
subscribed_nodes_count Fetches the number of nodes that the current user has subscribed to.

package

NameSummary
can_create Not documented yet.
can_edit Not documented yet.
can_export Not documented yet.
can_import Not documented yet.
can_install Not documented yet.
can_list Not documented yet.
can_read Not documented yet.
can_remove Not documented yet.
dependent_list Not documented yet.
item Not documented yet.
list Not documented yet.
maintainer_role_list Not documented yet.
repository_list Not documented yet.

search

NameSummary
list Fetches the phrases that have been searched ordered by their usage frequency.
list_count Fetches the number of unique phrases that have been searched.

section

NameSummary
object Fetches a section.
object_list Fetches objects that belong to certain section.
object_list_count Fetches the number of objects that belong to certain section.
roles Fetches roles that have at least one policy limited to a certain section.
user_roles Fetches users and/or user groups with role limitations related to a certain section.

shop

NameSummary
basket Fetches the current user's shopping basket.
best_sell_list Fetches the most popular / most sold products.
currency Fetches a currency object.
currency_list Fetches the available currencies.
preferred_currency_code Fetches the current user's preferred currency.
product_category Fetches a product category.
product_category_list Fetches the available product categories.
related_purchase Fetches products that were purchased together with a given product.
wish_list Fetches the products of a given wishlist.
wish_list_count Fetches a wishlist and returns the number of items in it.

url

NameSummary
list Fetches the URLs that are stored in the URL table.
list_count Fetches the number of URLs that are stored in the URL table.

user

NameSummary
anonymous_count Fetches the number of anonymous users.
current_user Fetches the user that is currently logged in.
has_access_to Checks if a user has access to a certain function of a module.
is_logged_in Checks if a specific user is logged in.
logged_in_count Fetches the number of users that are logged in.
logged_in_list Fetches the names of the users that are logged in.
logged_in_users Fetches the users that are logged in.
member_of Fetches the roles that are assigned to a user.
user_role Fetches the policies that are available for a user.

Balazs Halasy (01/03/2005 9:51 am)

Balazs Halasy (29/03/2005 7:29 am)


Comments

  • Role fetch functions

    fetch functions of the "role" module:

    role, parameter role_id
  • Order fetch function?

    Why no order fetch function?
  • "setup" fetch functions

    version, major_version, minor_version, release, state, is_development, revision, database_version, database_release
  • undocumented content fetch function: "collected_info_list"

    From the php code, here's the list of params it takes:
    array( 'name' => 'object_id',
    'type' => 'integer',
    'required' => false,
    'default' => false ),
    array( 'name' => 'creator_id',
    'type' => 'integer',
    'required' => false,
    'default' => false ),
    array( 'name' => 'user_identifier',
    'type' => 'string',
    'required' => false,
    'default' => false ),
    array( 'name' => 'limit',
    'type' => 'integer',
    'required' => false,
    'default' => false ),
    array( 'name' => 'offset',
    'type' => 'integer',
    'required' => false,
    'default' => false ),
    array( 'name' => 'sort_by',
    'type' => 'array',
    'required' => false,
    'default' => array() )
  • Not doc yet

    It would be about time to fix the "not documented yet", don't you think?