| Moodle PHP Documentation 4.1
    Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc) | 
Any element analysers can analyse. More...
 
  
| Public Member Functions | |
| get_context () | |
| The analysable context. | |
| get_end () | |
| The end of the analysable if there is one. | |
| get_id () | |
| The analysable unique identifier in the site. | |
| get_name () | |
| The analysable human readable name. | |
| get_start () | |
| The start of the analysable if there is one. | |
| Public Attributes | |
| const | MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999 | 
| Max timestamp. | |
Any element analysers can analyse.
| core_analytics\analysable::get_context | ( | ) | 
The analysable context.
| context | 
Implemented in core_analytics\course, core_analytics\site, and core_analytics\user.
| core_analytics\analysable::get_end | ( | ) | 
The end of the analysable if there is one.
| int|false | 
Implemented in core_analytics\course, core_analytics\site, and core_analytics\user.
| core_analytics\analysable::get_id | ( | ) | 
The analysable unique identifier in the site.
| int. | 
Implemented in core_analytics\course, core_analytics\site, and core_analytics\user.
| core_analytics\analysable::get_name | ( | ) | 
The analysable human readable name.
| string | 
Implemented in core_analytics\course, core_analytics\site, and core_analytics\user.
| core_analytics\analysable::get_start | ( | ) | 
The start of the analysable if there is one.
| int|false | 
Implemented in core_analytics\course, core_analytics\site, and core_analytics\user.
| const core_analytics\analysable::MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999 | 
Max timestamp.
We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one.