subscribed_nodes

Summary

Fetches nodes that the current user has subscribed to.

Usage

fetch( 'notification', 'subscribed_nodes',
       hash( [ 'offset', offset, ]
             [ 'limit',  limit   ] ) )

Parameters

NameTypeDescriptionRequired
offset integer The offset to start at. No.
limit integer The number of nodes that should be fetched. No.

Returns

Array of ezsubtreenotificationrule objects or FALSE.

Description

This function fetches the nodes that the current user has subsribed to. The "offset" and "limit" parameters are optional. The function returns an array of ezsubtreenotificationrule objects or FALSE if no nodes could be found.

Examples

Example 1

{def $subscriptions=fetch( 'notification', 'subscribed_nodes' )}
 
{foreach $subscriptions as $subscription}
    {$subscription.node.name|wash} <br />
{/foreach}

Outputs the names of the nodes that the current user has subscribed to.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.