Search moodle.org's
Developer Documentation

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.

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