fetch( 'content', 'assigned_nodes' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::fetchAssignedNodes() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
object_id | integer | yes | |
offset | integer | no | 0 |
limit | integer | no | false |
sort_field | string | no | false |
sort_order | string | no | 'asc' |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'content', 'assigned_nodes', hash( 'object_id', 1 ) )
{* with every parameter *}
{def $all = fetch( 'content', 'assigned_nodes', hash( 'object_id', 1,
'offset', 0,
'limit', 1,
'sort_field', 'sort_field',
'sort_order', 'asc' ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'content', 'assigned_nodes', array( 'object_id' => 1 ) );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.