fetch( 'content', 'keyword' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::fetchKeyword() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
alphabet | string | yes | |
classid | mixed | no | false |
offset | integer | no | false |
limit | integer | no | false |
owner | integer | no | false |
sort_by | array | no | array() |
parent_node_id | integer | no | false |
include_duplicates | bool | no | true |
strict_matching | bool | no | false |
depth | integer | no | 1 |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'content', 'keyword', hash( 'alphabet', 'alphabet' ) )
{* with every parameter *}
{def $all = fetch( 'content', 'keyword', hash( 'alphabet', 'alphabet',
'classid', $classid,
'offset', 1,
'limit', 1,
'owner', 1,
'sort_by', array(),
'parent_node_id', 1,
'include_duplicates', true(),
'strict_matching', true(),
'depth', 1 ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'content', 'keyword', array( 'alphabet' => 'alphabet' ) );In a shipped template
The first use in the templates of this installation, design/standard/templates/content/keyword.tpl line 9:
section name=KeywordList loop=fetch( 'content', 'keyword', hash( alphabet, $alphabet, limit, $page_limit, offset, $view_parameters.offset, classid, $view_parameters.classid ) )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.