Post attachment vault class.  
 More...
Post attachment vault class. 
This should be the only place that accessed the database.
This uses the repository pattern. See: https://designpatternsphp.readthedocs.io/en/latest/More/Repository/README.html
- Copyright
- 2018 Ryan Wyllie ryan@.nosp@m.mood.nosp@m.le.co.nosp@m.m 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ __construct()
      
        
          | mod_forum\local\vaults\post_attachment::__construct | ( | file_storage | $filestorage | ) |  | 
      
 
 
◆ get_attachments_for_posts()
      
        
          | mod_forum\local\vaults\post_attachment::get_attachments_for_posts | ( | context | $context, | 
        
          |  |  | array | $posts ) | 
      
 
Get attachment for posts. 
- Parameters
- 
  
    | context | $context | The (forum) context that the posts are in |  | post_entity[] | $posts | The list of posts to load attachments for |  
 
- Return values
- 
  
    | array | Post attachments indexed by post id |  
 
 
 
◆ get_inline_attachments_for_posts()
      
        
          | mod_forum\local\vaults\post_attachment::get_inline_attachments_for_posts | ( | context | $context, | 
        
          |  |  | array | $posts ) | 
      
 
Get inline attachments for posts. 
- Parameters
- 
  
    | context | $context | The (forum) context that the posts are in |  | post_entity[] | $posts | The list of posts to load attachments for |  
 
- Return values
- 
  
    | array | Post attachments indexed by post id |  
 
 
 
The documentation for this class was generated from the following file: