latest_list
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.
Balazs Halasy (06/02/2004 11:54 am)
Balazs Halasy (29/04/2005 8:15 am)
Comments
any similar function related to content nodes?
Friday 14 November 2008 5:55:14 pm
Csurgi
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