GRIS_EDITLOG
in package
Class for logging edit tasks
With this class every change of an object during editing will be logged
PHP version 7
Copyright (c) 2012, Holger Heuser, GESIS Leibniz Institute for the Social Sciences Unter Sachsenhausen 6-8 50667 Cologne, Germany
Tags
Table of Contents
- $dbconnection : object
- The database object for managing the connection
- __construct() : mixed
- The class constructor
- get() : array<string|int, mixed>
- Undocumented function
- set() : bool
- Writes an entry into gris_editlog
Properties
$dbconnection
The database object for managing the connection
private
object
$dbconnection
= null
Tags
Methods
__construct()
The class constructor
public
__construct() : mixed
Initializes the logfile
Return values
mixed —get()
Undocumented function
public
get(string $table, int $object_id) : array<string|int, mixed>
Parameters
- $table : string
-
The name of the table
- $object_id : int
-
The ID of the object
Return values
array<string|int, mixed> —Returns edit log data
set()
Writes an entry into gris_editlog
public
set(string $table, int $object_id, int $person_id, string $action[, int $applicant_id = NULL ]) : bool
Parameters
- $table : string
- $object_id : int
- $person_id : int
- $action : string
- $applicant_id : int = NULL
Return values
bool —Returns true on success