Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
/my/ -> lib.php (source)

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

My Moodle -- a user's personal dashboard

Author: Hubert Chathi <hubert@remote-learner.net>
Author: Olav Jordan <olav.jordan@remote-learner.net>
Copyright: 2010 Remote-Learner.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 284 lines (11 kb)
Included or required:0 times
Referenced: 11 times
Includes or requires: 0 files

Defines 1 class

my_syspage_block_manager:: (1 method):
  load_blocks()

Defines 1 function


Class: my_syspage_block_manager  - X-Ref

load_blocks($includeinvisible = null)   X-Ref
Load blocks using the system context, rather than the user's context.

This is needed because the My Moodle pages set the page context to the
user's context for access control, etc.  But the blocks for the system
pages are stored in the system context.

Functions that are not part of a class:

my_get_page($userid, $private=MY_PAGE_PRIVATE)   X-Ref
No description

my_copy_page($userid, $private=MY_PAGE_PRIVATE, $pagetype='my-index')   X-Ref
No description

my_reset_page($userid, $private=MY_PAGE_PRIVATE, $pagetype='my-index')   X-Ref
No description

my_reset_page_for_all_users($private = MY_PAGE_PRIVATE, $pagetype = 'my-index', $progressbar = null)   X-Ref
Resets the page customisations for all users.

param: int $private Either MY_PAGE_PRIVATE or MY_PAGE_PUBLIC.
param: string $pagetype Either my-index or user-profile.
param: progress_bar $progressbar A progress bar to update.
return: void