fetch( 'content', 'can_instantiate_class_list' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::canInstantiateClassList() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
group_id | array | no | 0 |
parent_node | object | no | 0 |
filter_type | string | no | 'include' |
fetch_id | string | no | false |
as_object | bool | no | true |
group_by_class_group | bool | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'content', 'can_instantiate_class_list', hash( 'group_id', 0 ) )
{* with every parameter *}
{def $all = fetch( 'content', 'can_instantiate_class_list', hash( 'group_id', 0,
'parent_node', 0,
'filter_type', 'include',
'fetch_id', 'fetch_id',
'as_object', true(),
'group_by_class_group', true() ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'content', 'can_instantiate_class_list', array( 'group_id' => array() ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/contentstructuremenu/content_structure_menu_dynamic.tpl line 59:
*}foreach fetch( 'content', 'can_instantiate_class_list', hash( 'parent_node', $root_node, 'filter_type', $filter_type, 'group_id', $filter_groups ) ) as $class{*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.