fetch( 'class', 'list' )
Defined in kernel/class/function_definition.php; it calls eZClassFunctionCollection::fetchClassList() (kernel/class/ezclassfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
class_filter | array | no | false |
sort_by | array | no | array() |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'class', 'list', hash( 'class_filter', array() ) )
{* with every parameter *}
{def $all = fetch( 'class', 'list', hash( 'class_filter', array(),
'sort_by', array() ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'class', 'list', array( 'class_filter' => array() ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/contentstructuremenu/content_structure_menu_dynamic.tpl line 80:
*}foreach fetch('class','list') as $classset $tree_classes = $tree_classes|merge( hash( concat( '_', $class.id ), hash( 'name', $class.name, 'identifier', $class.identifier ) ) )/foreach data-tree-params="{json_encode( hash(Related
Generated by ./console exp:help:examples from kernel/class/function_definition.php, kernel/class/ezclassfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.