Quick Navigation
×
Moodle 4.0 XRef and Diffs
Home
Quick Navigation
Moodle 4.0
Classes
Functions
Variables
Constants
Namespaces
Statistics
Moodle 4.0 Database Schema
Versions
Moodle 4.3
Moodle 4.2
Moodle 4.1
Moodle 4.0
Moodle 3.11
Moodle 3.10
Moodle 3.9
Classes
Functions
Variables
Constants
Tables
Namespaces
Search
Search moodle.org's
Developer Documentation
Search
See Release Notes
Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.
Moodle 4.0 Database Schema (by Marcus Green)
CONTEXT_SYSTEM
[
Top level directory
]
Constant Cross Reference
at:
/lib/accesslib.php
->
line 122
Referenced 323 times:
/competency/classes/template.php
->
line 158
/blocks/glossary_random/db/access.php
->
line 31
/report/insights/prediction.php
->
line 49
/blocks/recentlyaccesseditems/db/access.php
->
line 27
/question/bank/customfields/db/access.php
->
line 43
/grade/edit/letter/index.php
->
line 53
/blocks/starredcourses/db/access.php
->
line 31
/contentbank/classes/contentbank.php
->
line 41
/message/classes/search/base_message.php
->
line 181
/mod/bigbluebuttonbn/classes/local/helpers/files.php
->
line 57
/mod/bigbluebuttonbn/classes/local/helpers/files.php
->
line 226
/blocks/private_files/db/access.php
->
line 31
/lib/classes/event/capability_unassigned.php
->
line 74
/blocks/recentlyaccessedcourses/db/access.php
->
line 31
/enrol/locallib.php
->
line 1119
/blocks/timeline/db/access.php
->
line 31
/admin/tool/brickfield/classes/local/areas/core_question/base.php
->
line 118
/admin/tool/brickfield/classes/local/areas/core_question/base.php
->
line 184
/report/security/db/access.php
->
line 32
/backup/converter/moodle1/tests/moodle1_converter_test.php
->
line 247
/backup/converter/moodle1/tests/moodle1_converter_test.php
->
line 248
/backup/converter/moodle1/tests/moodle1_converter_test.php
->
line 249
/tag/classes/privacy/provider.php
->
line 217
/lib/questionlib.php
->
line 1266
/lib/questionlib.php
->
line 1526
/blog/lib.php
->
line 384
/blog/lib.php
->
line 1102
/blog/lib.php
->
line 1113
/lib/filebrowser/file_browser.php
->
line 82
/blocks/admin_bookmarks/db/access.php
->
line 31
/blocks/online_users/db/access.php
->
line 31
/admin/tool/uploaduser/db/access.php
->
line 33
/lib/classes/event/role_capabilities_updated.php
->
line 78
/lib/filelib.php
->
line 4362
/lib/filelib.php
->
line 4418
/lib/filelib.php
->
line 4475
/lib/filelib.php
->
line 4522
/lib/filelib.php
->
line 5066
/lib/filelib.php
->
line 5102
/blocks/edit_form.php
->
line 128
/search/classes/base_block.php
->
line 317
/question/classes/local/bank/context_to_string_translator.php
->
line 84
/badges/classes/privacy/provider.php
->
line 198
/badges/classes/privacy/provider.php
->
line 206
/badges/classes/privacy/provider.php
->
line 274
/badges/classes/privacy/provider.php
->
line 281
/badges/classes/privacy/provider.php
->
line 288
/badges/classes/privacy/provider.php
->
line 292
/report/questioninstances/db/access.php
->
line 31
/search/classes/base.php
->
line 67
/search/classes/base.php
->
line 482
/blocks/html/db/access.php
->
line 31
/mod/quiz/accessrule/seb/db/access.php
->
line 31
/admin/tool/policy/classes/privacy/provider.php
->
line 116
/admin/tool/policy/classes/privacy/provider.php
->
line 179
/admin/tool/moodlenet/tests/import_backup_helper_test.php
->
line 72
/search/classes/base_mod.php
->
line 143
/admin/roles/usersroles.php
->
line 189
/admin/tool/lpmigrate/db/access.php
->
line 30
/admin/tool/dataprivacy/tests/expired_contexts_test.php
->
line 40
/repository/googledocs/lib.php
->
line 1022
/question/editlib.php
->
line 496
/admin/tool/policy/db/access.php
->
line 32
/admin/tool/policy/db/access.php
->
line 48
/admin/tool/policy/db/access.php
->
line 56
/admin/tool/log/store/legacy/classes/privacy/provider.php
->
line 219
/admin/tool/log/store/legacy/classes/privacy/provider.php
->
line 226
/admin/tool/log/store/legacy/classes/privacy/provider.php
->
line 245
/admin/tool/dataprivacy/tests/api_test.php
->
line 1122
/admin/tool/dataprivacy/tests/api_test.php
->
line 1154
/admin/tool/dataprivacy/tests/api_test.php
->
line 1159
/admin/tool/dataprivacy/tests/api_test.php
->
line 1163
/admin/tool/dataprivacy/tests/api_test.php
->
line 1187
/admin/tool/dataprivacy/tests/api_test.php
->
line 1188
/admin/tool/dataprivacy/tests/api_test.php
->
line 1228
/admin/tool/dataprivacy/tests/api_test.php
->
line 1233
/admin/tool/dataprivacy/tests/api_test.php
->
line 1234
/admin/tool/dataprivacy/tests/api_test.php
->
line 1275
/admin/tool/dataprivacy/tests/api_test.php
->
line 1302
/admin/tool/dataprivacy/tests/api_test.php
->
line 1582
/admin/tool/dataprivacy/tests/api_test.php
->
line 2014
/enrol/category/db/access.php
->
line 33
/admin/roles/tests/privacy/provider_test.php
->
line 214
/admin/tool/usertours/lib.php
->
line 104
/admin/tool/dataprivacy/classes/output/summary_page.php
->
line 48
/auth/cas/lib.php
->
line 42
/lib/classes/navigation/views/secondary.php
->
line 234
/lib/db/access.php
->
line 63
/lib/db/access.php
->
line 69
/lib/db/access.php
->
line 81
/lib/db/access.php
->
line 93
/lib/db/access.php
->
line 104
/lib/db/access.php
->
line 115
/lib/db/access.php
->
line 125
/lib/db/access.php
->
line 134
/lib/db/access.php
->
line 375
/lib/db/access.php
->
line 469
/lib/db/access.php
->
line 491
/lib/db/access.php
->
line 502
/lib/db/access.php
->
line 513
/lib/db/access.php
->
line 582
/lib/db/access.php
->
line 603
/lib/db/access.php
->
line 615
/lib/db/access.php
->
line 626
/lib/db/access.php
->
line 636
/lib/db/access.php
->
line 697
/lib/db/access.php
->
line 1047
/lib/db/access.php
->
line 1111
/lib/db/access.php
->
line 1194
/lib/db/access.php
->
line 1207
/lib/db/access.php
->
line 1222
/lib/db/access.php
->
line 1228
/lib/db/access.php
->
line 1233
/lib/db/access.php
->
line 1245
/lib/db/access.php
->
line 1258
/lib/db/access.php
->
line 1268
/lib/db/access.php
->
line 1322
/lib/db/access.php
->
line 1333
/lib/db/access.php
->
line 1392
/lib/db/access.php
->
line 1501
/lib/db/access.php
->
line 1543
/lib/db/access.php
->
line 1605
/lib/db/access.php
->
line 1705
/lib/db/access.php
->
line 1716
/lib/db/access.php
->
line 1771
/lib/db/access.php
->
line 1803
/lib/db/access.php
->
line 1813
/lib/db/access.php
->
line 1823
/lib/db/access.php
->
line 1831
/lib/db/access.php
->
line 1864
/lib/db/access.php
->
line 1912
/lib/db/access.php
->
line 1921
/lib/db/access.php
->
line 1928
/lib/db/access.php
->
line 2006
/lib/db/access.php
->
line 2143
/lib/db/access.php
->
line 2151
/lib/db/access.php
->
line 2380
/lib/db/access.php
->
line 2416
/lib/db/access.php
->
line 2424
/lib/db/access.php
->
line 2451
/lib/db/access.php
->
line 2490
/lib/db/access.php
->
line 2634
/lib/db/access.php
->
line 2644
/lib/db/access.php
->
line 2654
/lib/db/access.php
->
line 2662
/repository/contentbank/classes/helper.php
->
line 46
/admin/tool/generator/lib.php
->
line 48
/admin/tool/brickfield/db/access.php
->
line 43
/admin/roles/classes/privacy/provider.php
->
line 110
/admin/roles/classes/privacy/provider.php
->
line 135
/admin/roles/classes/privacy/provider.php
->
line 223
/admin/roles/classes/privacy/provider.php
->
line 269
/repository/lib.php
->
line 1856
/report/infectedfiles/classes/privacy/provider.php
->
line 90
/report/infectedfiles/classes/privacy/provider.php
->
line 151
/mod/assign/feedback/editpdf/lib.php
->
line 54
/admin/tool/dataprivacy/classes/output/data_registry_page.php
->
line 129
/admin/tool/dataprivacy/classes/output/data_registry_page.php
->
line 130
/tag/classes/output/taglist.php
->
line 78
/question/type/random/questiontype.php
->
line 160
/cohort/index.php
->
line 42
/contentbank/classes/privacy/provider.php
->
line 107
/contentbank/classes/privacy/provider.php
->
line 127
/contentbank/classes/privacy/provider.php
->
line 157
/blocks/navigation/db/access.php
->
line 31
/admin/tool/dataprivacy/tests/expired_data_requests_test.php
->
line 187
/admin/tool/dataprivacy/classes/expired_contexts_manager.php
->
line 926
/admin/tool/lp/competencies.php
->
line 71
/admin/roles/override.php
->
line 96
/tag/classes/collection.php
->
line 369
/course/classes/privacy/provider.php
->
line 164
/admin/tool/uploaduser/tests/upload_users_test.php
->
line 66
/admin/tool/uploaduser/tests/upload_users_test.php
->
line 132
/blocks/badges/db/access.php
->
line 39
/grade/classes/privacy/provider.php
->
line 330
/grade/classes/privacy/provider.php
->
line 856
/grade/classes/privacy/provider.php
->
line 950
/theme/classic/lib.php
->
line 148
/blocks/comments/tests/privacy/provider_test.php
->
line 119
/repository/onedrive/lib.php
->
line 907
/course/lib.php
->
line 3866
/course/lib.php
->
line 4624
/course/lib.php
->
line 4640
/cohort/classes/privacy/provider.php
->
line 77
/cohort/classes/privacy/provider.php
->
line 118
/blocks/comments/db/access.php
->
line 31
/mod/forum/classes/event/user_report_viewed.php
->
line 121
/mod/forum/classes/event/user_report_viewed.php
->
line 127
/admin/tool/monitor/db/access.php
->
line 56
/course/classes/customfield/course_handler.php
->
line 105
/blocks/course_list/db/access.php
->
line 31
/theme/boost/classes/boostnavbar.php
->
line 122
/competency/classes/privacy/provider.php
->
line 593
/competency/classes/privacy/provider.php
->
line 602
/competency/classes/privacy/provider.php
->
line 616
/blocks/settings/db/access.php
->
line 31
/lib/behat/classes/behat_session_trait.php
->
line 1166
/blocks/tags/db/access.php
->
line 31
/h5p/lib.php
->
line 58
/h5p/lib.php
->
line 92
/admin/tool/dataprivacy/dataregistry.php
->
line 30
/admin/tool/lp/classes/page_helper.php
->
line 144
/admin/tool/lp/classes/page_helper.php
->
line 360
/admin/tool/lp/classes/page_helper.php
->
line 420
/lib/tests/accesslib_test.php
->
line 3091
/lib/tests/accesslib_test.php
->
line 3228
/lib/tests/accesslib_test.php
->
line 3581
/lib/tests/accesslib_test.php
->
line 3582
/lib/tests/accesslib_test.php
->
line 3693
/message/output/airnotifier/db/access.php
->
line 32
/blocks/news_items/db/access.php
->
line 31
/competency/classes/competency_framework.php
->
line 234
/blocks/lp/db/access.php
->
line 32
/blocks/lp/db/access.php
->
line 42
/admin/tool/dataprivacy/classes/api.php
->
line 1044
/backup/util/dbops/restore_dbops.class.php
->
line 518
/backup/util/dbops/restore_dbops.class.php
->
line 578
/backup/util/dbops/restore_dbops.class.php
->
line 814
/mod/forum/tests/event/events_test.php
->
line 1072
/admin/tool/cohortroles/tests/privacy/provider_test.php
->
line 87
/backup/backupfilesedit.php
->
line 59
/admin/tool/usertours/db/access.php
->
line 31
/admin/tool/dataprivacy/classes/data_registry.php
->
line 111
/admin/tool/dataprivacy/classes/data_registry.php
->
line 285
/admin/tool/dataprivacy/classes/data_registry.php
->
line 325
/admin/tool/policy/lib.php
->
line 162
/cohort/edit.php
->
line 46
/blocks/mentees/db/access.php
->
line 31
/admin/roles/check.php
->
line 93
/report/insights/insights.php
->
line 92
/cohort/lib.php
->
line 579
/admin/roles/assign.php
->
line 158
/admin/roles/assign.php
->
line 221
/admin/roles/assign.php
->
line 286
/admin/tool/moodlenet/classes/local/import_backup_helper.php
->
line 174
/search/classes/manager.php
->
line 728
/search/classes/manager.php
->
line 735
/admin/tool/dataprivacy/tests/behat/behat_tool_dataprivacy.php
->
line 142
/blocks/rss_client/db/access.php
->
line 31
/lib/navigationlib.php
->
line 1484
/lib/navigationlib.php
->
line 4326
/lib/navigationlib.php
->
line 4393
/lib/navigationlib.php
->
line 4471
/admin/tool/brickfield/classes/local/areas/core_question/answerbase.php
->
line 89
/admin/tool/dataprivacy/classes/form/contextlevel.php
->
line 77
/admin/tool/dataprivacy/classes/form/contextlevel.php
->
line 82
/report/performance/db/access.php
->
line 31
/admin/tool/customlang/db/access.php
->
line 34
/admin/tool/customlang/db/access.php
->
line 44
/admin/tool/customlang/db/access.php
->
line 53
/backup/converter/moodle1/handlerlib.php
->
line 358
/backup/converter/moodle1/handlerlib.php
->
line 1155
/backup/converter/moodle1/handlerlib.php
->
line 1156
/backup/converter/moodle1/handlerlib.php
->
line 1398
/backup/converter/moodle1/handlerlib.php
->
line 1458
/auth/shibboleth/lib.php
->
line 40
/lib/accesslib.php
->
line 122
/lib/accesslib.php
->
line 3434
/lib/accesslib.php
->
line 3435
/lib/accesslib.php
->
line 5453
/lib/accesslib.php
->
line 5525
/lib/accesslib.php
->
line 5977
/lib/accesslib.php
->
line 6289
/lib/accesslib.php
->
line 6367
/lib/accesslib.php
->
line 6379
/lib/accesslib.php
->
line 6391
/lib/accesslib.php
->
line 6456
/lib/accesslib.php
->
line 6495
/admin/tool/dataprivacy/pluginregistry.php
->
line 30
/lib/pagelib.php
->
line 1185
/admin/tool/lp/competencyframeworks.php
->
line 55
/report/status/db/access.php
->
line 32
/cohort/upload.php
->
line 39
/mod/feedback/lib.php
->
line 255
/blocks/mnet_hosts/db/access.php
->
line 31
/blocks/calendar_upcoming/db/access.php
->
line 31
/mod/lti/classes/privacy/provider.php
->
line 386
/admin/roles/permissions.php
->
line 102
/blocks/globalsearch/db/access.php
->
line 31
/blocks/myoverview/db/access.php
->
line 31
/blocks/globalsearch/block_globalsearch.php
->
line 73
/blocks/tags/edit_form.php
->
line 62
/repository/nextcloud/classes/access_controlled_link_manager.php
->
line 239
/calendar/classes/privacy/provider.php
->
line 102
/calendar/classes/privacy/provider.php
->
line 133
/calendar/classes/privacy/provider.php
->
line 179
/calendar/classes/privacy/provider.php
->
line 279
/calendar/classes/privacy/provider.php
->
line 454
/calendar/classes/privacy/provider.php
->
line 475
/calendar/classes/privacy/provider.php
->
line 525
/calendar/classes/privacy/provider.php
->
line 536
/calendar/classes/privacy/provider.php
->
line 592
/calendar/classes/privacy/provider.php
->
line 657
/admin/roles/classes/existing_role_holders.php
->
line 115
/backup/converter/moodle1/lib.php
->
line 545
/user/classes/search/user.php
->
line 72
/admin/tool/cohortroles/classes/privacy/provider.php
->
line 100
/admin/tool/cohortroles/classes/privacy/provider.php
->
line 122
/admin/tool/cohortroles/classes/privacy/provider.php
->
line 153
/admin/tool/cohortroles/classes/privacy/provider.php
->
line 225
/admin/tool/cohortroles/classes/privacy/provider.php
->
line 261
/admin/tool/cohortroles/classes/privacy/provider.php
->
line 300
/blocks/calendar_month/db/access.php
->
line 31
/report/courseoverview/db/access.php
->
line 32
/theme/boost/lib.php
->
line 83
/cohort/externallib.php
->
line 110
/cohort/externallib.php
->
line 197
/cohort/externallib.php
->
line 256
/cohort/externallib.php
->
line 520
/cohort/externallib.php
->
line 654
/cohort/externallib.php
->
line 737
/cohort/externallib.php
->
line 792
/course/classes/category.php
->
line 912
/course/classes/category.php
->
line 1655
/grade/grading/lib.php
->
line 180
/grade/grading/lib.php
->
line 211
/grade/grading/lib.php
->
line 334
/blocks/myprofile/db/access.php
->
line 31
/lib/testing/generator/repository_generator.php
->
line 146
/lib/classes/event/capability_assigned.php
->
line 92
/admin/tool/dataprivacy/db/access.php
->
line 33
/admin/tool/dataprivacy/db/access.php
->
line 41
/admin/tool/dataprivacy/db/access.php
->
line 50