fetch( 'content', 'keyword_count' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::fetchKeywordCount() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
alphabet | string | yes | |
classid | mixed | no | false |
owner | integer | no | false |
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_count', hash( 'alphabet', 'alphabet' ) )
{* with every parameter *}
{def $all = fetch( 'content', 'keyword_count', hash( 'alphabet', 'alphabet',
'classid', $classid,
'owner', 1,
'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_count', array( 'alphabet' => 'alphabet' ) );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.