AuditManager View code

A manager contains links to the standard auditor and an optional audit handler.

so that CMSMS can output it's messages somewhere.

package

CMS

Methods

set_auditor(\IAuditManager $mgr) 

Set an auditor for further messages.

static

If set, the optional auditor will b used instead of the HttpErrorLogAuditor

Arguments

\IAuditManager $mgr

get_auditor() : \IAuditManager

Get the current auditor.

static

Response

\IAuditManager

audit(string $subj, string $msg, integer|null $item_id) 

Create an audit messge using the current auditor.

static

Arguments

string $subj

string $msg

integer|null $item_id

notice(string $msg, string $subject = null) 

Create a notice message using the current auditor.

static

Arguments

string $msg

string $subject

warning(string $msg, string $subject = null) 

Create a warning message using the current auditor.

static

Arguments

string $msg

string $subject

error(string $msg, string $subject = null) 

Create an error message using the current auditor.

static

Arguments

string $msg

string $subject