fetch( 'user', 'current_user' )
Defined in kernel/user/function_definition.php; it calls eZUserFunctionCollection::fetchCurrentUser() (kernel/user/ezuserfunctioncollection.php).
Operation type: read.
Parameters
None.
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'user', 'current_user' )In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'user', 'current_user', array() );In a shipped template
The first use in the templates of this installation, design/admin/templates/contentstructuremenu/content_structure_menu_dynamic.tpl line 114:
*}default current_user=fetch('user','current_user') data-tree-request="{json_encode( hash(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.