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.

latest_list

Summary

Fetches the most recently modified classes.

Usage

fetch( 'class', 'latest_list', hash( [ 'offset', offset ] ,
                                     [ 'limit',  limit  ] ) )

Parameters

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

Returns

Array of ezcontentclass objects.

Description

This function fetches the most recently modified classes. The function returns an array of ezcontentclass objects. The "offset" and "limit" parameters are optional and can be used to narrow down the result. If the "offset" and "limit" parameters are omitted, the function will simply return all the available classes.

Examples

Example 1

{def $classes=fetch( 'class', 'latest_list', hash( 'limit', 10 ) )}
 
{foreach $classes as $class}
    {$class.name|wash} <br />
{/foreach}

Outputs the names of the ten most recently modified classes.

Balazs Halasy (06/02/2004 11:54 am)

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


Comments

  • any similar function related to content nodes?

    Hi!

    Is athere any similar function to the content nodes?
    Now I have to show the the most recent forum topic and forum reply.

    Best Regards,
    Csurgi