list

Summary

Fetches the stored url's in Exponential.

Usage

fetch( 'url', 'list', hash( [ 'is_valid', is_valid, ]
                            [ 'offset',   offset,   ]
                            [ 'limit',    limit     ] ) )

Parameters

NameTypeDescriptionRequired
is_valid boolean Wether to fetch valid or invalid URLs. No.
offset integer Start fetching from this offset. No.
limit integer Maximum number of URLs to fetch. No.

Returns

Array of ezurl objects.

Description

This function fetches a list of URL objects that are stored in Exponential. URLs that are created using the URL datatype or the link-tag within an XML text datatype can be retrieved. The function returns an array of ezurl objects.

Examples

{let urls=fetch( 'url', 'list', hash( 'is_valid', true(),

                                     'offset',  0,

                                     'limit',   10 ) )}

{section var=url loop=$urls}

  {$url.url}<br />

{/section}

{/let}

The code above will fetch and list the first 10 valid URLs.

Comments

Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
    Collaboration
    Layout
    Notification
    Package
    Section
    Shop
    URL
       list
       list_count
    User
Modules
XML tags


Created

06/02/2004
1:49:58 pm
by Balazs Halasy

Last updated

12/02/2004
12:53:57 pm
by Balazs Halasy

Authors

Balazs Halasy
Bård Farstad



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.