fetch( 'url', 'list_count' )
Defined in kernel/url/function_definition.php; it calls eZURLFunctionCollection::fetchListCount() (kernel/url/ezurlfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
is_valid | no | null | |
only_published | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'url', 'list_count', hash( 'is_valid', $is_valid ) )
{* with every parameter *}
{def $all = fetch( 'url', 'list_count', hash( 'is_valid', $is_valid,
'only_published', $only_published ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'url', 'list_count', array( 'is_valid' => $is_valid ) );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.