fetch( 'notification', 'event_content' )
Defined in kernel/notification/function_definition.php; it calls eZNotificationFunctionCollection::eventContent() (kernel/notification/eznotificationfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
event_id | integer | yes |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'notification', 'event_content', hash( 'event_id', 1 ) )In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'notification', 'event_content', array( 'event_id' => 1 ) );In a shipped template
The first use in the templates of this installation, design/standard/templates/notification/handler/ezcollaboration/view/digest_element_plain.tpl line 3:
def $collaboration_item = fetch( 'notification', 'event_content', hash( 'event_id', $collection_item.event_id ) )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.