fetch( 'content', 'site_data' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::fetchSiteData() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
name | string | yes |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'content', 'site_data', hash( 'name', 'name' ) )In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'content', 'site_data', array( 'name' => 'name' ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/setup/sitedata.tpl line 18:
<p>"Templates can read a row with fetch( 'content', 'site_data', hash( 'name', ... ) ) only when its name is listed in site.ini [SiteDataSettings] TemplateReadable[]."|i18n( 'design/admin/setup/sitedata' ) 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.