@@ -34,8 +34,8 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has left a bigbluebutton meeting for ". |
|
38 | - "the bigbluebuttonbn activity with id '$this->objectid' for the course id ". |
|
37 | + $this->description = "The user with id '$this->userid' has left a bigbluebutton meeting for " . |
|
38 | + "the bigbluebuttonbn activity with id '$this->objectid' for the course id " . |
|
39 | 39 | "'$this->contextinstanceid'."; |
40 | 40 | } |
41 | 41 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has deleted a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has deleted a recording with id " . |
|
38 | 38 | "'$this->other' from the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has viewed a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has viewed a recording with id " . |
|
38 | 38 | "'$this->other' from the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has protected a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has protected a recording with id " . |
|
38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has edited a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has edited a recording with id " . |
|
38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | global $CFG; |
29 | 29 | |
30 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
30 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
31 | 31 | |
32 | 32 | if ($ADMIN->fulltree) { |
33 | 33 | // Configuration for BigBlueButton. |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public static function defaultvalues() { |
46 | 46 | return array( |
47 | - 'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
48 | - 'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
47 | + 'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
48 | + 'shared_secret' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
49 | 49 | 'importrecordings_enabled' => 'false', |
50 | 50 | 'voicebridge_editable' => 'false', |
51 | 51 | 'importrecordings_enabled' => 'false', |
@@ -99,10 +99,10 @@ discard block |
||
99 | 99 | public static function get($setting) { |
100 | 100 | global $CFG; |
101 | 101 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
102 | - return (string) $CFG->bigbluebuttonbn[$setting]; |
|
102 | + return (string)$CFG->bigbluebuttonbn[$setting]; |
|
103 | 103 | } |
104 | - if (isset($CFG->{'bigbluebuttonbn_'.$setting})) { |
|
105 | - return (string)$CFG->{'bigbluebuttonbn_'.$setting}; |
|
104 | + if (isset($CFG->{'bigbluebuttonbn_' . $setting})) { |
|
105 | + return (string)$CFG->{'bigbluebuttonbn_' . $setting}; |
|
106 | 106 | } |
107 | 107 | return self::defaultvalue($setting); |
108 | 108 | } |
@@ -120,29 +120,29 @@ |
||
120 | 120 | */ |
121 | 121 | public static function get_options() { |
122 | 122 | return [ |
123 | - 'version_major' => self::get_moodle_version_major(), |
|
124 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
125 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
126 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
127 | - 'userlimit_default' => self::get('userlimit_default'), |
|
128 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
129 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
130 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
131 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
132 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
133 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
134 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
135 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
136 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
137 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
138 | - 'recording_default' => self::get('recording_default'), |
|
139 | - 'recording_editable' => self::get('recording_editable'), |
|
140 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
141 | - 'general_warning_message' => self::get('general_warning_message'), |
|
142 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
143 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
144 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
145 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
146 | - ]; |
|
123 | + 'version_major' => self::get_moodle_version_major(), |
|
124 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
125 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
126 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
127 | + 'userlimit_default' => self::get('userlimit_default'), |
|
128 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
129 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
130 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
131 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
132 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
133 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
134 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
135 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
136 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
137 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
138 | + 'recording_default' => self::get('recording_default'), |
|
139 | + 'recording_editable' => self::get('recording_editable'), |
|
140 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
141 | + 'general_warning_message' => self::get('general_warning_message'), |
|
142 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
143 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
144 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
145 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
146 | + ]; |
|
147 | 147 | } |
148 | 148 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * are 1=checked, 0=unchecked. |
68 | 68 | **/ |
69 | 69 | |
70 | - /* When the value is set to 0 (unchecked) the all the features for recordings |
|
70 | + /* When the value is set to 0 (unchecked) the all the features for recordings |
|
71 | 71 | * are ignored. Recording features are enabled by default. |
72 | 72 | * $CFG->bigbluebuttonbn['recordings_enabled'] = 1; |
73 | 73 | */ |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * recordings from a different activity even from a different course. |
98 | 98 | **/ |
99 | 99 | |
100 | - /* |
|
100 | + /* |
|
101 | 101 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
102 | 102 | * activities will have the 'import recordings' capability enabled. |
103 | 103 | * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * 'Join session' button enabled |
119 | 119 | **/ |
120 | 120 | |
121 | - /* |
|
121 | + /* |
|
122 | 122 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
123 | 123 | * activities will have the 'wait for moderator' capability enabled by |
124 | 124 | * default. |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * 5. CONFIGURATION FOR "STATIC VOICE BRIDGE" FEATURE |
153 | 153 | * |
154 | 154 | **/ |
155 | - /* |
|
155 | + /* |
|
156 | 156 | * A conference voice bridge number can be permanently assigned to a room |
157 | 157 | * or activity. |
158 | 158 | * $CFG->bigbluebuttonbn['voicebridge_editable'] = 0; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * 6. CONFIGURATION FOR "PRE-UPLOAD PRESENTATION" FEATURE |
163 | 163 | * |
164 | 164 | **/ |
165 | - /* |
|
165 | + /* |
|
166 | 166 | * Since version 0.8, BigBluebutton has an implementation for allowing |
167 | 167 | * preuploading presentation. When this feature is enabled, users creating or |
168 | 168 | * editing a room or activity can upload a PDF or Office document to the |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * applied to each room or activity, or globally. |
180 | 180 | **/ |
181 | 181 | |
182 | - /* |
|
182 | + /* |
|
183 | 183 | * The number of users allowed in a session by default when a new room or |
184 | 184 | * conference is added. If the number is set to 0, no limit is established. |
185 | 185 | * $CFG->bigbluebuttonbn['userlimit_default'] = 0; |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * By default only the owner is assigned. |
201 | 201 | **/ |
202 | 202 | |
203 | - /* |
|
203 | + /* |
|
204 | 204 | * The values for this parameter can be '0' (which identifies the owner) and/or any of the role IDs defined in |
205 | 205 | * Moodle (including the custom parameters). The value used will be the key for the role. |
206 | 206 | * [owner=0|manager=1|coursecreator=2|editingteacher=3|teacher=4|student=5|guest=6|user=7|frontpage=8|ANY_CUSTOM_ROLE=xx] |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * 9. CONFIGURATION FOR "NOTIFICATION SENDING" FEATURE |
212 | 212 | * |
213 | 213 | **/ |
214 | - /* |
|
214 | + /* |
|
215 | 215 | * When the value is set to 1 (checked) the 'notification sending' |
216 | 216 | * capability can be used by the user creating or editing the room or |
217 | 217 | * activity. |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * 10. CONFIGURATION FOR "RECORDING READY" FEATURE |
226 | 226 | * |
227 | 227 | **/ |
228 | - /* |
|
228 | + /* |
|
229 | 229 | * When the value is set to 1 (checked) the 'notify users when recording ready' |
230 | 230 | * capability is enabled, meaning that a message will be sent to all enrolled |
231 | 231 | * users in a course when a recording is ready |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * 12. GENERAL CONFIGURATION FOR RECORDINGS UI |
250 | 250 | * |
251 | 251 | **/ |
252 | - /* |
|
252 | + /* |
|
253 | 253 | * When the value is set to 1 (checked) the bigbluebuttonbn resources |
254 | 254 | * will show the recodings in an html table by default. |
255 | 255 | * $CFG->bigbluebuttonbn['recordings_html_default'] = 0; |
@@ -273,22 +273,22 @@ discard block |
||
273 | 273 | * $CFG->bigbluebuttonbn['recordings_deleted_editable'] = 0; |
274 | 274 | */ |
275 | 275 | |
276 | - /* |
|
276 | + /* |
|
277 | 277 | * When the value is set to 1 (checked) the bigbluebuttonbn resources for recordings |
278 | 278 | * will show only the imported links as part of the list. |
279 | 279 | * $CFG->bigbluebuttonbn['recordings_imported_default'] = 0; |
280 | 280 | */ |
281 | 281 | |
282 | - /* |
|
282 | + /* |
|
283 | 283 | * When the value is set to 1 (checked) the 'show only imported links' |
284 | 284 | * capability can be enabled/disabled by the user creating or editing the resource for recordings. |
285 | 285 | * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1; |
286 | 286 | */ |
287 | 287 | |
288 | - /* |
|
288 | + /* |
|
289 | 289 | * CONFIGURATION FOR FEATURES OFFERED BY BN SERVERS |
290 | 290 | ** ------------------------------------------------------------------ **/ |
291 | - /* |
|
291 | + /* |
|
292 | 292 | * When general_warning_message value is different than "", the string is shown |
293 | 293 | * as a warning message to privileged users (administrators and Teachers or users allowed to edit). |
294 | 294 | * $CFG->bigbluebuttonbn['general_warning_message'] = "This will may have recordings enabled when upgraded to premium."; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | defined('MOODLE_INTERNAL') || die; |
27 | 27 | |
28 | -require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php'); |
|
28 | +require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php'); |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Backup task that provides all the settings and steps to perform one complete backup of the activity. |
@@ -62,14 +62,14 @@ discard block |
||
62 | 62 | public static function encode_content_links($content) { |
63 | 63 | global $CFG; |
64 | 64 | |
65 | - $base = preg_quote($CFG->wwwroot.'/mod/bigbluebuttonbn', '#'); |
|
65 | + $base = preg_quote($CFG->wwwroot . '/mod/bigbluebuttonbn', '#'); |
|
66 | 66 | |
67 | 67 | // Link to the list of bigbluebuttonbns. |
68 | - $pattern = '#('.$base."\/index.php\?id\=)([0-9]+)#"; |
|
68 | + $pattern = '#(' . $base . "\/index.php\?id\=)([0-9]+)#"; |
|
69 | 69 | $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNINDEX*$2@$', $content); |
70 | 70 | |
71 | 71 | // Link to bigbluebuttonbn view by moduleid. |
72 | - $pattern = '#('.$base."\/view.php\?id\=)([0-9]+)#"; |
|
72 | + $pattern = '#(' . $base . "\/view.php\?id\=)([0-9]+)#"; |
|
73 | 73 | $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNVIEWBYID*$2@$', $content); |
74 | 74 | |
75 | 75 | return $content; |