Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 
 to_legacy_objects (array $posts)
 Convert a list of post entities into stdClasses.
 

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: