. /** * Provides {@link \core_h5p\output\h5peditor} class. * * @package core_h5p * @copyright 2020 Victor Deniz * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_h5p\output; defined('MOODLE_INTERNAL') || die(); /** * Displays the H5P Editor * * @copyright 2020 Victor Deniz * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class h5peditor implements \renderable, \templatable { /** @var \stdClass Context in which the H5P Editor is being used. */ protected $context; /** * h5peditor constructor. * * @param \stdClass $context H5P editor context generated by core_h5p\editor. */ public function __construct(\stdClass $context) { $this->context = $context; } /** * Exports the data required for the H5P Editor. * * @param \renderer_base $output * @return \stdClass */ public function export_for_template(\renderer_base $output) { return $this->context; } }