Skip to the content
Documentation

latest_list

No ratings yet

Summary

Fetches the most recently modified classes.

Usage

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

Parameters

Name Type Description Required
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.

Contributors

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. any similar function related to content nodes?

    Csurgi ·

    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

Comments

Add a comment

Comments are read by a moderator before they appear.