fetch( 'setup', 'database_version' )
Defined in kernel/setup/function_definition.php; it calls eZSetupFunctionCollection::fetchDatabaseVersion() (kernel/setup/ezsetupfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
with_release | bool | no | true |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'setup', 'database_version', hash( 'with_release', true() ) )In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'setup', 'database_version', array( 'with_release' => true ) );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.