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

Convert an author entity into an stdClass. More...

Public Member Functions

 to_legacy_object (author_entity $author)
 Convert an author entity into an stdClass. More...
 
 to_legacy_objects (array $authors)
 Convert a list of author entities into stdClasses. More...
 

Detailed Description

Convert an author 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\author::to_legacy_object ( author_entity  $author)

Convert an author entity into an stdClass.

Parameters
author_entity$authorThe author to convert.
Return values
stdClass

◆ to_legacy_objects()

mod_forum\local\data_mappers\legacy\author::to_legacy_objects ( array  $authors)

Convert a list of author entities into stdClasses.

Parameters
author_entity[]$authorsThe authors to convert.
Return values
stdClass[]

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