fetch( 'audit', 'count' )
Defined in kernel/audit/function_definition.php; it calls expAuditFunctionCollection::fetchCount() (kernel/classes/audit/console/expauditfunctioncollection.php).
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
channel | string | no | false |
name | string | no | false |
user | integer | no | false |
login | string | no | false |
object | mixed | no | false |
target | mixed | no | false |
result | string | no | false |
severity | string | no | false |
request | string | no | false |
job | string | no | false |
run | string | no | false |
from | string | no | false |
to | string | no | false |
q | string | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'audit', 'count', hash( 'channel', 'channel' ) )
{* with every parameter *}
{def $all = fetch( 'audit', 'count', hash( 'channel', 'channel',
'name', 'name',
'user', 1,
'login', 'login',
'object', $object,
'target', $target,
'result', 'result',
'severity', 'severity',
'request', 'request',
'job', 'job',
'run', 'run',
'from', 'from',
'to', 'to',
'q', 'q' ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'audit', 'count', array( 'channel' => 'channel' ) );Related
Generated by ./console exp:help:examples from kernel/audit/function_definition.php, kernel/classes/audit/console/expauditfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.