fetch( 'class', 'list_by_groups' )
Defined in kernel/class/function_definition.php; it calls eZClassFunctionCollection::fetchClassListByGroups() (kernel/class/ezclassfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
group_filter | array | yes | false |
group_filter_type | string | no | 'include' |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'class', 'list_by_groups', hash( 'group_filter', array() ) )
{* with every parameter *}
{def $all = fetch( 'class', 'list_by_groups', hash( 'group_filter', array(),
'group_filter_type', 'include' ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'class', 'list_by_groups', array( 'group_filter' => array() ) );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.