FusionDirectory
|
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... | |
This is the base class for the FusionDirectory logging functionality. All logging should lead to this class.
Definition at line 36 of file class_logging.inc.
|
staticprotected |
Check the options.
Array | $entry | to be checked |
Definition at line 160 of file class_logging.inc.
References fusiondirectory_log(), and htmlescape().
|
static |
Debug output method.
Print a DEBUG level if specified debug level of the level matches the the configured debug level.
int | $level | The log level of the message (one of the DEBUG_* constants) |
int | $line | Line of origin (using LINE is common) |
string | $function | Function of origin (using FUNCTION is common) |
string | $file | File of origin (using FILE is common) |
mixed | $data | Operation result. Can be a message or an array, which is printed with print_a. |
string | $info | Operation 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().
|
static |
logging method
string | $action | One of these values (modify|create|remove|copy|snapshot|security|error) |
string | $objecttype | represents the current edited objecttype, like user/user, or the event, like logout |
string | $object | represents the current edited object dn, or the target of the operation |
array | $changes | An array containing names of all touched attributes |
string | $result | A 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().