Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_analytics\site Class Reference

Moodle site analysable. More...

Inheritance diagram for core_analytics\site:
core_analytics\analysable

Public Member Functions

 get_context ()
 Analysable context.
 
 get_end ()
 Analysable end timestamp.
 
 get_id ()
 Analysable id.
 
 get_name ()
 Site.
 
 get_start ()
 Analysable start timestamp.
 

Public Attributes

const MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999
 Max timestamp.
 

Protected Attributes

int $end
 
int $start
 

Detailed Description

Moodle site analysable.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_context()

core_analytics\site::get_context ( )

Analysable context.

Return values
context

Implements core_analytics\analysable.

◆ get_end()

core_analytics\site::get_end ( )

Analysable end timestamp.

Return values
int

Implements core_analytics\analysable.

◆ get_id()

core_analytics\site::get_id ( )

Analysable id.

Return values
int

Implements core_analytics\analysable.

◆ get_name()

core_analytics\site::get_name ( )

Site.

Return values
string

Implements core_analytics\analysable.

◆ get_start()

core_analytics\site::get_start ( )

Analysable start timestamp.

Return values
int

Implements core_analytics\analysable.

Member Data Documentation

◆ MAX_TIME

const core_analytics\analysable::MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999
inherited

Max timestamp.

We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one.


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