fetch( 'user', 'account_status' )
Defined in kernel/user/function_definition.php; it calls eZUserFunctionCollection::fetchAccountStatus() (kernel/user/ezuserfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
user_id | integer | yes |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'user', 'account_status', hash( 'user_id', 1 ) )In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'user', 'account_status', array( 'user_id' => 1 ) );In a shipped template
The first use in the templates of this installation, design/admin4/templates/node/view/a4_full_body.tpl line 66:
def $a4_account_status = fetch( 'user', 'account_status', hash( 'user_id', $node.contentobject_id ) )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.