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.

Vault factory.

Copyright: 2019 Ryan Wyllie <ryan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 163 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: vault  - X-Ref

Vault factory.

See:
https://designpatternsphp.readthedocs.io/en/latest/Creational/SimpleFactory/README.html

__construct(moodle_database $db, entity_factory $entityfactory,file_storage $filestorage, legacy_data_mapper $legacyfactory)   X-Ref
Constructor.

param: moodle_database $db A moodle database
param: entity_factory $entityfactory Entity factory
param: file_storage $filestorage A file storage instance
param: legacy_data_mapper $legacyfactory Datamapper

get_forum_vault()   X-Ref
Create a forum vault.

return: forum_vault

get_discussion_vault()   X-Ref
Create a discussion vault.

return: discussion_vault

get_discussions_in_forum_vault()   X-Ref
Create a discussion list vault.

return: discussion_list_vault

get_post_vault()   X-Ref
Create a post vault.

return: post_vault

get_author_vault()   X-Ref
Create an author vault.

return: author_vault

get_post_read_receipt_collection_vault()   X-Ref
Create a post read receipt collection vault.

return: post_read_receipt_collection_vault

get_post_attachment_vault()   X-Ref
Create a post attachment vault.

return: post_attachment_vault