fetch( 'section', 'object_list_count' )
Defined in kernel/section/function_definition.php; it calls eZSectionFunctionCollection::fetchObjectListCount() (kernel/section/ezsectionfunctioncollection.php).
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
section_id | integer | yes | |
status | string | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'section', 'object_list_count', hash( 'section_id', 1 ) )
{* with every parameter *}
{def $all = fetch( 'section', 'object_list_count', hash( 'section_id', 1,
'status', 'status' ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'section', 'object_list_count', array( 'section_id' => 1 ) );Related
Generated by ./console exp:help:examples from kernel/section/function_definition.php, kernel/section/ezsectionfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.