Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
tool_log\local\privacy\helper Class Reference

Privacy helper class. More...

Static Public Member Functions

static transform_origin ($origin)
 Transform origin.
 
static transform_standard_log_record_for_userid ($record, $userid)
 Transform a standard log record for a user.
 

Static Protected Member Functions

static restore_event_from_standard_record ($data)
 Returns an event from a standard record.
 

Detailed Description

Privacy helper class.

Author
Frédéric Massart fred@.nosp@m.bran.nosp@m.chup..nosp@m.tech
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ restore_event_from_standard_record()

static tool_log\local\privacy\helper::restore_event_from_standard_record ( $data)
staticprotected

Returns an event from a standard record.

See also
logstore_standard\log\store\get_log_event()
Parameters
object$dataLog data.
Return values
core\event\base

◆ transform_origin()

static tool_log\local\privacy\helper::transform_origin ( $origin)
static

Transform origin.

Parameters
string$originThe page request origin.
Return values
string

◆ transform_standard_log_record_for_userid()

static tool_log\local\privacy\helper::transform_standard_log_record_for_userid ( $record,
$userid )
static

Transform a standard log record for a user.

Parameters
object$recordThe record.
int$useridThe user ID.
Return values
array

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