@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' created a bigbluebutton meeting for ". |
|
| 44 | + $this->description = "The user with id '##userid' created a bigbluebutton meeting for " . |
|
| 45 | 45 | "the bigbluebuttonbn activity with id '##objectid' for the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has unpublished a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has unpublished a recording with id " . |
|
| 45 | 45 | "'##other' in the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' triggered action ##other in a ". |
|
| 45 | - "bigbluebutton meeting for the bigbluebuttonbn activity with id ". |
|
| 44 | + $this->description = "The user with id '##userid' triggered action ##other in a " . |
|
| 45 | + "bigbluebutton meeting for the bigbluebuttonbn activity with id " . |
|
| 46 | 46 | "'##objectid' for the course id '##courseid'."; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has unprotected a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has unprotected a recording with id " . |
|
| 45 | 45 | "'##other' in the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has imported a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has imported a recording with id " . |
|
| 45 | 45 | "'##other' in the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for ". |
|
| 45 | - "the bigbluebuttonbn activity with id '##objectid' for the course id ". |
|
| 44 | + $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for " . |
|
| 45 | + "the bigbluebuttonbn activity with id '##objectid' for the course id " . |
|
| 46 | 46 | "'##courseid'."; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has protected a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has protected a recording with id " . |
|
| 45 | 45 | "'##other' in the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) { |
| 43 | 43 | parent::init($crud, $edulevel); |
| 44 | - $this->description = "The user with id '##userid' has viewed a recording with id ". |
|
| 44 | + $this->description = "The user with id '##userid' has viewed a recording with id " . |
|
| 45 | 45 | "'##other' from the course id '##courseid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -209,8 +209,8 @@ discard block |
||
| 209 | 209 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 210 | 210 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
| 211 | 211 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
| 212 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 213 | - ); |
|
| 212 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
| 213 | + ); |
|
| 214 | 214 | } else { |
| 215 | 215 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 216 | 216 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | */ |
| 249 | 249 | private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
| 250 | 250 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
| 251 | - 'description_key' => null]; |
|
| 251 | + 'description_key' => null]; |
|
| 252 | 252 | if ($cfg['recordings_html_editable']) { |
| 253 | 253 | $field['type'] = 'checkbox'; |
| 254 | 254 | $field['description_key'] = 'mod_form_field_recordings_html'; |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 257 | 257 | $field['description_key'], $cfg['recordings_html_default']); |
| 258 | 258 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
| 259 | - 'description_key' => null]; |
|
| 259 | + 'description_key' => null]; |
|
| 260 | 260 | if ($cfg['recordings_deleted_editable']) { |
| 261 | 261 | $field['type'] = 'checkbox'; |
| 262 | 262 | $field['description_key'] = 'mod_form_field_recordings_deleted'; |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 265 | 265 | $field['description_key'], $cfg['recordings_deleted_default']); |
| 266 | 266 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
| 267 | - 'description_key' => null]; |
|
| 267 | + 'description_key' => null]; |
|
| 268 | 268 | if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) { |
| 269 | 269 | $field['type'] = 'checkbox'; |
| 270 | 270 | $field['description_key'] = 'mod_form_field_recordings_imported'; |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 273 | 273 | $field['description_key'], $cfg['recordings_imported_default']); |
| 274 | 274 | $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, |
| 275 | - 'description_key' => null]; |
|
| 275 | + 'description_key' => null]; |
|
| 276 | 276 | if ($cfg['recordings_preview_editable']) { |
| 277 | 277 | $field['type'] = 'checkbox'; |
| 278 | 278 | $field['description_key'] = 'mod_form_field_recordings_preview'; |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | $htmlselectiontype = html_writer::select($participantselection['type_options'], |
| 343 | 343 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
| 344 | 344 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
| 345 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 345 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
| 346 | 346 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
| 347 | 347 | $participantselection['selected'], array(), |
| 348 | 348 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | 'type' => 'button', 'class' => 'btn btn-secondary', |
| 351 | 351 | 'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
| 352 | 352 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
| 353 | - )); |
|
| 353 | + )); |
|
| 354 | 354 | $htmladdparticipant = html_writer::tag('div', |
| 355 | 355 | $htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
| 356 | 356 | $mform->addElement('html', "\n\n"); |
@@ -392,9 +392,9 @@ discard block |
||
| 392 | 392 | $field['type'] = 'select'; |
| 393 | 393 | $field['data_type'] = PARAM_TEXT; |
| 394 | 394 | $field['description_key'] = 'mod_form_field_block_clienttype'; |
| 395 | - $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
|
| 396 | - BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 397 | - $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
|
| 395 | + $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
|
| 396 | + BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
| 397 | + $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
|
| 398 | 398 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
| 399 | 399 | $field['description_key'], $cfg['clienttype_default'], $choices); |
| 400 | 400 | return; |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | defined('MOODLE_INTERNAL') || die(); |
| 28 | 28 | |
| 29 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
| 30 | -require_once($CFG->dirroot.'/course/moodleform_mod.php'); |
|
| 29 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot . '/course/moodleform_mod.php'); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Moodle class for mod_form. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $serverversion = bigbluebuttonbn_get_server_version(); |
| 49 | 49 | if (is_null($serverversion)) { |
| 50 | 50 | print_error('general_error_unable_connect', 'bigbluebuttonbn', |
| 51 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 51 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 52 | 52 | return; |
| 53 | 53 | } |
| 54 | 54 | // Context. |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | // If none is allowed, fail and return. |
| 79 | 79 | if (empty($jsvars['instanceTypeProfiles'])) { |
| 80 | 80 | print_error('general_error_not_allowed_to_create_instances)', 'bigbluebuttonbn', |
| 81 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 81 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
| 82 | 82 | return; |
| 83 | 83 | } |
| 84 | 84 | $this->bigbluebuttonbn_mform_add_block_profiles($mform, $jsvars['instanceTypeProfiles']); |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | ); |
| 127 | 127 | $defaultvalues['presentation'] = $draftitemid; |
| 128 | 128 | } catch (Exception $e) { |
| 129 | - debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER); |
|
| 129 | + debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER); |
|
| 130 | 130 | return; |
| 131 | 131 | } |
| 132 | 132 | } |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | return; |
| 460 | 460 | } |
| 461 | 461 | $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options); |
| 462 | - if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) { |
|
| 462 | + if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) { |
|
| 463 | 463 | $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn'); |
| 464 | 464 | } |
| 465 | 465 | if (!empty($rule)) { |