Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
mod_forum\local\factories\vault Class Reference

Vault factory. More...

Public Member Functions

 __construct (moodle_database $db, entity_factory $entityfactory, file_storage $filestorage, legacy_data_mapper $legacyfactory)
 Constructor. More...
 
 get_author_vault ()
 Create an author vault. More...
 
 get_discussion_vault ()
 Create a discussion vault. More...
 
 get_discussions_in_forum_vault ()
 Create a discussion list vault. More...
 
 get_forum_vault ()
 Create a forum vault. More...
 
 get_post_attachment_vault ()
 Create a post attachment vault. More...
 
 get_post_read_receipt_collection_vault ()
 Create a post read receipt collection vault. More...
 
 get_post_vault ()
 Create a post vault. More...
 

Detailed Description

Vault factory.

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

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_forum\local\factories\vault::__construct ( moodle_database  $db,
entity_factory  $entityfactory,
file_storage  $filestorage,
legacy_data_mapper  $legacyfactory 
)

Constructor.

Parameters
moodle_database$dbA moodle database
entity_factory$entityfactoryEntity factory
file_storage$filestorageA file storage instance
legacy_data_mapper$legacyfactoryDatamapper

Member Function Documentation

◆ get_author_vault()

mod_forum\local\factories\vault::get_author_vault ( )

Create an author vault.

Return values
author_vault

◆ get_discussion_vault()

mod_forum\local\factories\vault::get_discussion_vault ( )

Create a discussion vault.

Return values
discussion_vault

◆ get_discussions_in_forum_vault()

mod_forum\local\factories\vault::get_discussions_in_forum_vault ( )

Create a discussion list vault.

Return values
discussion_list_vault

◆ get_forum_vault()

mod_forum\local\factories\vault::get_forum_vault ( )

Create a forum vault.

Return values
forum_vault

◆ get_post_attachment_vault()

mod_forum\local\factories\vault::get_post_attachment_vault ( )

Create a post attachment vault.

Return values
post_attachment_vault

◆ get_post_read_receipt_collection_vault()

mod_forum\local\factories\vault::get_post_read_receipt_collection_vault ( )

Create a post read receipt collection vault.

Return values
post_read_receipt_collection_vault

◆ get_post_vault()

mod_forum\local\factories\vault::get_post_vault ( )

Create a post vault.

Return values
post_vault

The documentation for this class was generated from the following file: