FusionDirectory
Static Public Member Functions | Static Protected Member Functions
logging Class Reference

This is the base class for the FusionDirectory logging functionality. All logging should lead to this class. More...

Static Public Member Functions

static log (string $action, string $objecttype, string $object, array $changes=[], string $result='')
 logging method More...
 
static debug (int $level, int $line, string $function, string $file, $data, string $info='')
 Debug output method. More...
 

Static Protected Member Functions

static check ($entry=[])
 Check the options. More...
 

Detailed Description

This is the base class for the FusionDirectory logging functionality. All logging should lead to this class.

Author
Fabian Hickert hicke.nosp@m.rt@g.nosp@m.onicu.nosp@m.s.de
Version
2.6
Date
11.04.2007

Definition at line 36 of file class_logging.inc.

Member Function Documentation

◆ check()

static check (   $entry = [])
staticprotected

Check the options.

Parameters
Array$entryto be checked

Definition at line 160 of file class_logging.inc.

References fusiondirectory_log(), and htmlescape().

◆ debug()

static debug ( int  $level,
int  $line,
string  $function,
string  $file,
  $data,
string  $info = '' 
)
static

Debug output method.

Print a DEBUG level if specified debug level of the level matches the the configured debug level.

Parameters
int$levelThe log level of the message (one of the DEBUG_* constants)
int$lineLine of origin (using LINE is common)
string$functionFunction of origin (using FUNCTION is common)
string$fileFile of origin (using FILE is common)
mixed$dataOperation result. Can be a message or an array, which is printed with print_a.
string$infoOperation description

Definition at line 110 of file class_logging.inc.

References session\get().

Referenced by simplePlugin\__construct(), simpleTabs\adapt_from_template(), LDAP\add(), CopyPasteHandler\add_to_queue(), management\applyChanges(), management\archiveRequested(), simplePlugin\callHook(), simpleTabs\check(), simplePlugin\check(), LDAP\connect(), management\copyPasteHandler(), LDAP\count(), SnapshotHandler\createSnapshot(), management\createSnapshot(), management\createSnapshotDialog(), DEBUG(), LDAP\disconnect(), management\editEntry(), management\execute(), LDAP\fetch(), LDAP\generateLdif(), LDAP\getCn(), objects\link(), CopyPasteHandler\load_entry_from_ldap(), LDAP\modify(), LDAP\modify_batch(), simplePlugin\move(), management\newEntry(), LDAP\object_match_filter(), objects\open(), LDAP\parse_result(), simpleTabs\readPost(), simplePlugin\readPost(), LDAP\rebind(), management\removeConfirmed(), management\removeRequested(), management\removeSnapshot(), LDAP\rename_dn(), simplePlugin\render(), SnapshotHandler\restoreSnapshot(), management\restoreSnapshot(), management\restoreSnapshotDialog(), LDAP\rm(), LDAP\rmdir(), LDAP\rmdir_recursive(), simplePlugin\save(), management\saveChanges(), LDAP\search(), LDAP\set_size_limit(), simpleTabs\setActiveTabs(), config\snapshotEnabled(), and LDAP\unbind().

◆ log()

static log ( string  $action,
string  $objecttype,
string  $object,
array  $changes = [],
string  $result = '' 
)
static

logging method

Parameters
string$actionOne of these values (modify|create|remove|copy|snapshot|security|error)
string$objecttyperepresents the current edited objecttype, like user/user, or the event, like logout
string$objectrepresents the current edited object dn, or the target of the operation
array$changesAn array containing names of all touched attributes
string$resultA status message, containing errors or success messages

Definition at line 53 of file class_logging.inc.

References htmlescape().

Referenced by LoginMethod\connect(), session\destroy(), fusiondirectoryExceptionHandler(), simplePlugin\move(), simplePlugin\post_save(), and CopyPasteHandler\render().


The documentation for this class was generated from the following file: