fetch( 'user', 'can_open' )
Defined in kernel/user/function_definition.php; it calls eZUserFunctionCollection::canOpen() (kernel/user/ezuserfunctioncollection.php).
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
uri | string | yes |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'user', 'can_open', hash( 'uri', 'uri' ) )In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'user', 'can_open', array( 'uri' => 'uri' ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/class/templates.tpl line 26:
<td>if fetch( 'user', 'can_open', hash( 'uri', 'visual/templateedit' ) )<a class="a4-btn a4-btn-small" href=concat( '/visual/templateedit/', $override.target )|ezurl title="'Edit the override template for the <%override_name> override.'|i18n( 'design/admin/class/view',, hash( '%override_name', $override.block ) )|wash">'Edit'|i18n( 'design/admin/class/view' )</a>/if</td>Related
Generated by ./console exp:help:examples from kernel/user/function_definition.php, kernel/user/ezuserfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.