fetch( 'setup', 'edition' )
Defined in kernel/setup/function_definition.php; it calls eZSetupFunctionCollection::fetchEdition() (kernel/setup/ezsetupfunctioncollection.php).
Operation type: read.
Parameters
None.
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'setup', 'edition' )In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'setup', 'edition', array() );In a shipped template
The first use in the templates of this installation, design/admin/templates/dashboard/maintenance.tpl line 6:
<p>'You are running <span class="edition-info">%edition</span>, it might not be up to date with the latest hot fixes and service packs. Contact <a href="%ez_link">7x</a> for more information.'|i18n( 'design/admin/dashboard/maintenance', , hash( '%edition', fetch( 'setup', 'edition' ), '%ez_link', "https://se7enx.com" ) )</p>Related
Generated by ./console exp:help:examples from kernel/setup/function_definition.php, kernel/setup/ezsetupfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.