Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/monara/public_html/test.athavaneng.com/themes.php on line 99

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
. namespace core_h5p\form; use core_h5p\editor; /** * Form to edit an existing H5P content. * * @package core_h5p * @copyright 2020 Victor Deniz * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class editcontent_form extends \moodleform { /** @var editor H5P editor object */ private $editor; /** * The form definition. */ public function definition() { $mform = $this->_form; $id = $this->_customdata['id'] ?? null; $contenturl = $this->_customdata['contenturl'] ?? null; $returnurl = $this->_customdata['returnurl'] ?? null; $editor = new editor(); if ($id) { $mform->addElement('hidden', 'id', $id); $mform->setType('id', PARAM_INT); $editor->set_content($id); } if ($contenturl) { $mform->addElement('hidden', 'url', $contenturl); $mform->setType('url', PARAM_LOCALURL); } if ($returnurl) { $mform->addElement('hidden', 'returnurl', $returnurl); $mform->setType('returnurl', PARAM_LOCALURL); } $this->editor = $editor; $mformid = 'h5peditor'; $mform->setAttributes(array('id' => $mformid) + $mform->getAttributes()); $this->set_display_vertical(); $this->add_action_buttons(); $editor->add_editor_to_form($mform); $this->add_action_buttons(); } /** * Updates an H5P content. * * @param \stdClass $data Object with all the H5P data. * * @return void */ public function save_h5p(\stdClass $data): void { $this->editor->save_content($data); } }