subscribed_nodes
Summary
Fetches nodes that the current user has subscribed to.Usage
fetch( 'notification', 'subscribed_nodes', hash( [ 'offset', offset, ] [ 'limit', limit ] ) )
Parameters
Name | Type | Description | Required |
---|---|---|---|
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.
Balazs Halasy (04/04/2005 9:39 am)
Balazs Halasy (04/04/2005 10:33 am)
Comments
There are no comments.