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