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.

tipafriend_top_list

Summary

Fetches the most popular (most tipped) nodes.

Usage

fetch( 'content', 'tipafriend_top_list',
       hash( [ 'offset', offset, ]
             [ 'limit',  limit   ] ) )

Parameters

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

Returns

An array of ezcontentobjecttreenode objects or FALSE.

Description

This function fetches the nodes that were most tipped using the "Tip a friend" feature (for example "/content/tipafriend/44). The optional parameters "offset" and "limit" can be used to limit the result. The function returns an array of ezcontentobjecttreenode objects. If no nodes are found or if an error occurs, the function will return FALSE.

Examples

Example 1

{def $popular_nodes=fetch( 'content', 'tipafriend_top_list',  hash( 'limit',  10 ) )}
 
{foreach $popular_nodes as $popular_node}
    {$popular_node.name|wash} <br />
{/foreach}

Outputs the names of the ten most tipped nodes.

Balazs Halasy (06/02/2004 12:13 pm)

Balazs Halasy (29/04/2005 8:59 am)


Comments

There are no comments.