Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | Static Protected Member Functions | List of all members
tool_log\local\privacy\helper Class Reference

Privacy helper class. More...

Static Public Member Functions

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

Static Protected Member Functions

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

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: