Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 
 get_author_vault ()
 Create an author vault.
 
 get_discussion_vault ()
 Create a discussion vault.
 
 get_discussions_in_forum_vault ()
 Create a discussion list vault.
 
 get_forum_vault ()
 Create a forum vault.
 
 get_post_attachment_vault ()
 Create a post attachment vault.
 
 get_post_read_receipt_collection_vault ()
 Create a post read receipt collection vault.
 
 get_post_vault ()
 Create a post vault.
 

Detailed Description

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: