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

Convert a post entity into an stdClass. More...

Public Member Functions

 to_legacy_object (post_entity $post)
 Convert a post entity into an stdClass. More...
 
 to_legacy_objects (array $posts)
 Convert a list of post entities into stdClasses. More...
 

Detailed Description

Convert a post entity into an stdClass.

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

Member Function Documentation

◆ to_legacy_object()

mod_forum\local\data_mappers\legacy\post::to_legacy_object ( post_entity  $post)

Convert a post entity into an stdClass.

Parameters
post_entity$postThe post to convert.
Return values
stdClass

◆ to_legacy_objects()

mod_forum\local\data_mappers\legacy\post::to_legacy_objects ( array  $posts)

Convert a list of post entities into stdClasses.

Parameters
post_entity[]$postsThe posts to convert.
Return values
stdClass[]

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