fetch( 'url', 'list' )
Defined in kernel/url/function_definition.php; it calls eZURLFunctionCollection::fetchList() (kernel/url/ezurlfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
is_valid | no | null | |
offset | no | false | |
limit | no | false | |
only_published | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'url', 'list', hash( 'is_valid', $is_valid ) )
{* with every parameter *}
{def $all = fetch( 'url', 'list', hash( 'is_valid', $is_valid,
'offset', $offset,
'limit', $limit,
'only_published', $only_published ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'url', 'list', array( 'is_valid' => $is_valid ) );In a shipped template
The first use in the templates of this installation, design/standard/templates/url/view/all.tpl line 6:
set $url_list=fetch( 'url', 'list', hash( offset, $view_parameters.offset, limit, $url_limit, only_published, true() ) )Related
Generated by ./console exp:help:examples from kernel/url/function_definition.php, kernel/url/ezurlfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.