fetch( 'notification', 'digest_items' )
Defined in kernel/notification/function_definition.php; it calls eZNotificationFunctionCollection::digestItems() (kernel/notification/eznotificationfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
date | integer | yes | |
address | string | yes | |
handler | string | yes |
Example
In a template (the values are placeholders of each parameter's type):
{def $result = fetch( 'notification', 'digest_items', hash( 'date', 1,
'address', 'address',
'handler', 'handler' ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'notification', 'digest_items', array( 'date' => 1, 'address' => 'address', 'handler' => 'handler' ) );In a shipped template
The first use in the templates of this installation, design/standard/templates/notification/handler/ezcollaboration/view/digest_plain.tpl line 4:
def $handler_items = fetch( 'notification', 'digest_items', hash( 'date', $date.timestamp, 'address', $address, 'handler', $handler.id_string ) )Related
Generated by ./console exp:help:examples from kernel/notification/function_definition.php, kernel/notification/eznotificationfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.