Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
mod_forum\local\entities\post_read_receipt_collection Class Reference

Post read receipt collection class. More...

Public Member Functions

 __construct (array $records)
 Constructor. More...
 
 has_user_read_post (stdClass $user, post_entity $post)
 Check whether a user has read a post. More...
 

Detailed Description

Post read receipt collection class.

Contains the list of read receipts for posts.

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

Constructor & Destructor Documentation

◆ __construct()

mod_forum\local\entities\post_read_receipt_collection::__construct ( array  $records)

Constructor.

Parameters
array$recordsThe list of post read receipt records.

Member Function Documentation

◆ has_user_read_post()

mod_forum\local\entities\post_read_receipt_collection::has_user_read_post ( stdClass  $user,
post_entity  $post 
)

Check whether a user has read a post.

Parameters
stdClass$userThe user to check
post_entity$postThe post to check
Return values
bool

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