fetch( 'user', 'logged_in_list' )
Defined in kernel/user/function_definition.php; it calls eZUserFunctionCollection::fetchLoggedInList() (kernel/user/ezuserfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
sort_by | mixed | no | |
offset | integer | no | |
limit | integer | no |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'user', 'logged_in_list', hash( 'sort_by', $sort_by ) )
{* with every parameter *}
{def $all = fetch( 'user', 'logged_in_list', hash( 'sort_by', $sort_by,
'offset', 1,
'limit', 1 ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'user', 'logged_in_list', array( 'sort_by' => $sort_by ) );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.