Kumi
5b45d9ea82
Introduce the EXP360 activity module to embed interactive 360° content in Moodle. This update includes: - Database schema for the exp360 table. - Language support for the module. - Frontend form to create exp360 activities. - Script to handle 360° content embedding within a modal. - Two new PHP scripts to display and serve 360° content. - Version and plugin initialization. These changes allow users to seamlessly integrate and interact with 360° content within Moodle courses.
26 lines
No EOL
917 B
PHP
26 lines
No EOL
917 B
PHP
<?php
|
|
|
|
require_once("$CFG->dirroot/course/moodleform_mod.php");
|
|
|
|
class mod_exp360_mod_form extends moodleform_mod {
|
|
public function definition() {
|
|
$mform = $this->_form;
|
|
|
|
$mform->addElement('header', 'general', get_string('general', 'form'));
|
|
|
|
$mform->addElement('text', 'name', get_string('exp360name', 'exp360'), array('size' => '64'));
|
|
$mform->setType('name', PARAM_TEXT);
|
|
$mform->addRule('name', null, 'required', null, 'client');
|
|
$mform->addRule('name', null, 'maxlength', 255, 'client');
|
|
|
|
$this->standard_intro_elements();
|
|
|
|
$mform->addElement('text', 'content_id', get_string('contentid', 'exp360'), array('size' => '64'));
|
|
$mform->setType('content_id', PARAM_TEXT);
|
|
$mform->addRule('content_id', null, 'required', null, 'client');
|
|
|
|
$this->standard_coursemodule_elements();
|
|
|
|
$this->add_action_buttons();
|
|
}
|
|
} |