| Línea 92... |
Línea 92... |
| 92 |
$this->bigbluebuttonbn_mform_add_block_guest_access($mform, $cfg, $this->current);
|
92 |
$this->bigbluebuttonbn_mform_add_block_guest_access($mform, $cfg, $this->current);
|
| 93 |
// Add block 'Schedule'.
|
93 |
// Add block 'Schedule'.
|
| 94 |
$this->bigbluebuttonbn_mform_add_block_schedule($mform, $this->current);
|
94 |
$this->bigbluebuttonbn_mform_add_block_schedule($mform, $this->current);
|
| 95 |
// Now add subplugins form elements.
|
95 |
// Now add subplugins form elements.
|
| 96 |
$this->add_subplugins_elements();
|
96 |
$this->add_subplugins_elements();
|
| 97 |
|
- |
|
| - |
|
97 |
// Add standard grading elements.
|
| - |
|
98 |
$this->standard_grading_coursemodule_elements();
|
| 98 |
// Add standard elements, common to all modules.
|
99 |
// Add standard elements, common to all modules.
|
| 99 |
$this->standard_coursemodule_elements();
|
100 |
$this->standard_coursemodule_elements();
|
| 100 |
// Add standard buttons, common to all modules.
|
101 |
// Add standard buttons, common to all modules.
|
| 101 |
$this->add_action_buttons();
|
102 |
$this->add_action_buttons();
|
| Línea 596... |
Línea 597... |
| 596 |
* @param MoodleQuickForm $mform
|
597 |
* @param MoodleQuickForm $mform
|
| 597 |
* @param array $cfg
|
598 |
* @param array $cfg
|
| 598 |
* @return void
|
599 |
* @return void
|
| 599 |
*/
|
600 |
*/
|
| 600 |
private function bigbluebuttonbn_mform_add_block_preuploads(MoodleQuickForm &$mform, array $cfg): void {
|
601 |
private function bigbluebuttonbn_mform_add_block_preuploads(MoodleQuickForm &$mform, array $cfg): void {
|
| - |
|
602 |
$bigbluebuttonbn = get_config('mod_bigbluebuttonbn');
|
| 601 |
if ($cfg['preuploadpresentation_editable']) {
|
603 |
if ($cfg['preuploadpresentation_editable'] || $bigbluebuttonbn->showpresentation_editable) {
|
| 602 |
$mform->addElement('header', 'preuploadpresentation',
|
604 |
$mform->addElement('header', 'preuploadpresentation',
|
| 603 |
get_string('mod_form_block_presentation', 'bigbluebuttonbn'));
|
605 |
get_string('mod_form_block_presentation', 'bigbluebuttonbn'));
|
| 604 |
$mform->setExpanded('preuploadpresentation');
|
606 |
$mform->setExpanded('preuploadpresentation');
|
| - |
|
607 |
if ($cfg['preuploadpresentation_editable']) {
|
| 605 |
$filemanageroptions = [];
|
608 |
$filemanageroptions = [];
|
| 606 |
$filemanageroptions['accepted_types'] = '*';
|
609 |
$filemanageroptions['accepted_types'] = '*';
|
| 607 |
$filemanageroptions['maxbytes'] = 0;
|
610 |
$filemanageroptions['maxbytes'] = 0;
|
| 608 |
$filemanageroptions['subdirs'] = 0;
|
611 |
$filemanageroptions['subdirs'] = 0;
|
| 609 |
$filemanageroptions['maxfiles'] = 1;
|
612 |
$filemanageroptions['maxfiles'] = 1;
|
| 610 |
$filemanageroptions['mainfile'] = true;
|
613 |
$filemanageroptions['mainfile'] = true;
|
| 611 |
$mform->addElement('filemanager', 'presentation', get_string('selectfiles'),
|
614 |
$mform->addElement('filemanager', 'presentation', get_string('selectfiles'),
|
| 612 |
null, $filemanageroptions);
|
615 |
null, $filemanageroptions);
|
| - |
|
616 |
}
|
| - |
|
617 |
if ($bigbluebuttonbn->showpresentation_editable) {
|
| - |
|
618 |
$mform->addElement('advcheckbox', 'showpresentation',
|
| - |
|
619 |
get_string('mod_form_field_showpresentation', 'bigbluebuttonbn'));
|
| - |
|
620 |
$mform->setDefault('showpresentation', $bigbluebuttonbn->showpresentation_default);
|
| - |
|
621 |
} else {
|
| - |
|
622 |
$mform->addElement('hidden', 'showpresentation', 0);
|
| - |
|
623 |
}
|
| 613 |
}
|
624 |
}
|
| - |
|
625 |
$mform->setType('showpresentation', PARAM_BOOL);
|
| 614 |
}
|
626 |
}
|
| Línea 615... |
Línea 627... |
| 615 |
|
627 |
|
| 616 |
/**
|
628 |
/**
|
| 617 |
* Function for showing the block for setting participant roles.
|
629 |
* Function for showing the block for setting participant roles.
|