trash_object_list
Summary
Fetches the objects that are in the trash.Usage
fetch( 'content', 'trash_object_list', hash( [ 'offset', offset, ] [ 'limit', limit ] ) )
Parameters
Name | Type | Description | Required |
---|---|---|---|
offset | integer | The offset to start at. | No. |
limit | integer | The number of objects that should be returned. | No. |
Returns
An array of ezcontentobject objects or FALSE.
Description
This function fetches all the objects that are in the trash. An object is considered to be in the trash if its status field is set to "archived". The optional "offset" and "limit" parameters can be used to limit the result. The function returns an array of ezcontentobject objects or FALSE if no objects are found.
Examples
{def $trashed_objects=fetch( 'content', 'trash_object_list' ) } {foreach $trashed_objects as $object} {$object.name|wash} <br /> {/foreach}
Outputs the names of the objects that are in the trash.
Balazs Halasy (06/02/2004 12:14 pm)
Balazs Halasy (29/04/2005 9:00 am)
Comments
There are no comments.