fetch( 'content', 'class_list' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::fetchClassList() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
as_object | bool | no | true |
group_list | array | no | false |
sorts | array | no | null |
limit | array | no | null |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'content', 'class_list', hash( 'as_object', true() ) )
{* with every parameter *}
{def $all = fetch( 'content', 'class_list', hash( 'as_object', true(),
'group_list', array(),
'sorts', array(),
'limit', array() ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'content', 'class_list', array( 'as_object' => true ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/visual/templatecreate.tpl line 110:
section name=Class loop=fetch('content', 'class_list', hash('sorts', array()))Related
Generated by ./console exp:help:examples from kernel/content/function_definition.php, kernel/content/ezcontentfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.