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

Add a comment

Comments are read by a moderator before they appear.