Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
core_contentbank\output\viewcontent Class Reference

Class containing data for the content view. More...

Inheritance diagram for core_contentbank\output\viewcontent:
renderable templatable

Public Member Functions

 __construct (contenttype $contenttype, content $content)
 Construct this renderable. More...
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template. More...
 

Detailed Description

Class containing data for the content view.

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

Constructor & Destructor Documentation

◆ __construct()

core_contentbank\output\viewcontent::__construct ( contenttype  $contenttype,
content  $content 
)

Construct this renderable.

Parameters
contenttype$contenttypeContent bank content type.
content$contentRecord of the contentbank_content table.

Member Function Documentation

◆ export_for_template()

core_contentbank\output\viewcontent::export_for_template ( renderer_base  $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$output
Return values
stdClass

Implements templatable.


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