@@ -13,52 +13,52 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | global $BIGBLUEBUTTONBN_CFG; |
| 15 | 15 | |
| 16 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
| 16 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
| 17 | 17 | |
| 18 | 18 | if ($ADMIN->fulltree) { |
| 19 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url) || |
|
| 20 | - !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret) ) { |
|
| 21 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_config_general', |
|
| 19 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url) || |
|
| 20 | + !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret)) { |
|
| 21 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_config_general', |
|
| 22 | 22 | get_string('config_general', 'bigbluebuttonbn'), |
| 23 | 23 | get_string('config_general_description', 'bigbluebuttonbn'))); |
| 24 | 24 | |
| 25 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url) ) { |
|
| 26 | - $settings->add( new admin_setting_configtext( 'bigbluebuttonbn_server_url', |
|
| 27 | - get_string( 'config_server_url', 'bigbluebuttonbn' ), |
|
| 28 | - get_string( 'config_server_url_description', 'bigbluebuttonbn' ), |
|
| 25 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_server_url)) { |
|
| 26 | + $settings->add(new admin_setting_configtext('bigbluebuttonbn_server_url', |
|
| 27 | + get_string('config_server_url', 'bigbluebuttonbn'), |
|
| 28 | + get_string('config_server_url_description', 'bigbluebuttonbn'), |
|
| 29 | 29 | BIGBLUEBUTTONBN_DEFAULT_SERVER_URL)); |
| 30 | 30 | } |
| 31 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret) ) { |
|
| 32 | - $settings->add( new admin_setting_configtext( 'bigbluebuttonbn_shared_secret', |
|
| 33 | - get_string( 'config_shared_secret', 'bigbluebuttonbn' ), |
|
| 34 | - get_string( 'config_shared_secret_description', 'bigbluebuttonbn' ), |
|
| 31 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_shared_secret)) { |
|
| 32 | + $settings->add(new admin_setting_configtext('bigbluebuttonbn_shared_secret', |
|
| 33 | + get_string('config_shared_secret', 'bigbluebuttonbn'), |
|
| 34 | + get_string('config_shared_secret_description', 'bigbluebuttonbn'), |
|
| 35 | 35 | BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET)); |
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | //// Configuration for 'recording' feature |
| 40 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default) || |
|
| 40 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default) || |
|
| 41 | 41 | !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_editable) || |
| 42 | - !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled) ) { |
|
| 43 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_recording', |
|
| 42 | + !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled)) { |
|
| 43 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_recording', |
|
| 44 | 44 | get_string('config_feature_recording', 'bigbluebuttonbn'), |
| 45 | 45 | get_string('config_feature_recording_description', 'bigbluebuttonbn'))); |
| 46 | 46 | |
| 47 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default) ) { |
|
| 47 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_default)) { |
|
| 48 | 48 | // default value for 'recording' feature |
| 49 | 49 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recording_default', |
| 50 | 50 | get_string('config_feature_recording_default', 'bigbluebuttonbn'), |
| 51 | 51 | get_string('config_feature_recording_default_description', 'bigbluebuttonbn'), |
| 52 | 52 | 1)); |
| 53 | 53 | } |
| 54 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_editable) ) { |
|
| 54 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_editable)) { |
|
| 55 | 55 | // UI for 'recording' feature |
| 56 | 56 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recording_editable', |
| 57 | 57 | get_string('config_feature_recording_editable', 'bigbluebuttonbn'), |
| 58 | 58 | get_string('config_feature_recording_editable_description', 'bigbluebuttonbn'), |
| 59 | 59 | 1)); |
| 60 | 60 | } |
| 61 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled) ) { |
|
| 61 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recording_icons_enabled)) { |
|
| 62 | 62 | // Front panel for 'recording' managment feature |
| 63 | 63 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recording_icons_enabled', |
| 64 | 64 | get_string('config_feature_recording_icons_enabled', 'bigbluebuttonbn'), |
@@ -68,13 +68,13 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | //// Configuration for 'recording tagging' feature |
| 71 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default) || |
|
| 72 | - !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable) ) { |
|
| 73 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_recordingtagging', |
|
| 71 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default) || |
|
| 72 | + !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable)) { |
|
| 73 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_recordingtagging', |
|
| 74 | 74 | get_string('config_feature_recordingtagging', 'bigbluebuttonbn'), |
| 75 | 75 | get_string('config_feature_recordingtagging_description', 'bigbluebuttonbn'))); |
| 76 | 76 | |
| 77 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default) ) { |
|
| 77 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_default)) { |
|
| 78 | 78 | // default value for 'recording tagging' feature |
| 79 | 79 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recordingtagging_default', |
| 80 | 80 | get_string('config_feature_recordingtagging_default', 'bigbluebuttonbn'), |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | 0)); |
| 83 | 83 | } |
| 84 | 84 | // UI for 'recording tagging' feature |
| 85 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable) ) { |
|
| 85 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingtagging_editable)) { |
|
| 86 | 86 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_recordingtagging_editable', |
| 87 | 87 | get_string('config_feature_recordingtagging_editable', 'bigbluebuttonbn'), |
| 88 | 88 | get_string('config_feature_recordingtagging_editable_description', 'bigbluebuttonbn'), |
@@ -91,20 +91,20 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | //// Configuration for 'import recordings' feature |
| 94 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_enabled) || |
|
| 95 | - !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_from_deleted_activities_enabled) ) { |
|
| 96 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_importrecordings', |
|
| 94 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_enabled) || |
|
| 95 | + !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_from_deleted_activities_enabled)) { |
|
| 96 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_importrecordings', |
|
| 97 | 97 | get_string('config_feature_importrecordings', 'bigbluebuttonbn'), |
| 98 | 98 | get_string('config_feature_importrecordings_description', 'bigbluebuttonbn'))); |
| 99 | 99 | |
| 100 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_enabled) ) { |
|
| 100 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_enabled)) { |
|
| 101 | 101 | // default value for 'import recordings' feature |
| 102 | 102 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_importrecordings_enabled', |
| 103 | 103 | get_string('config_feature_importrecordings_enabled', 'bigbluebuttonbn'), |
| 104 | 104 | get_string('config_feature_importrecordings_enabled_description', 'bigbluebuttonbn'), |
| 105 | 105 | 0)); |
| 106 | 106 | } |
| 107 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_from_deleted_activities_enabled) ) { |
|
| 107 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_importrecordings_from_deleted_activities_enabled)) { |
|
| 108 | 108 | // consider deleted activities for 'import recordings' feature |
| 109 | 109 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_importrecordings_from_deleted_activities_enabled', |
| 110 | 110 | get_string('config_feature_importrecordings_from_deleted_activities_enabled', 'bigbluebuttonbn'), |
@@ -114,36 +114,36 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | //// Configuration for wait for moderator feature |
| 117 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default) || |
|
| 117 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default) || |
|
| 118 | 118 | !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_editable) || |
| 119 | 119 | !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_ping_interval) || |
| 120 | - !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl) ) { |
|
| 121 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_waitformoderator', |
|
| 120 | + !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl)) { |
|
| 121 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_waitformoderator', |
|
| 122 | 122 | get_string('config_feature_waitformoderator', 'bigbluebuttonbn'), |
| 123 | 123 | get_string('config_feature_waitformoderator_description', 'bigbluebuttonbn'))); |
| 124 | 124 | |
| 125 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default) ) { |
|
| 125 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_default)) { |
|
| 126 | 126 | //default value for 'wait for moderator' feature |
| 127 | 127 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_waitformoderator_default', |
| 128 | 128 | get_string('config_feature_waitformoderator_default', 'bigbluebuttonbn'), |
| 129 | 129 | get_string('config_feature_waitformoderator_default_description', 'bigbluebuttonbn'), |
| 130 | 130 | 0)); |
| 131 | 131 | } |
| 132 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_editable) ) { |
|
| 132 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_editable)) { |
|
| 133 | 133 | // UI for 'wait for moderator' feature |
| 134 | 134 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_waitformoderator_editable', |
| 135 | 135 | get_string('config_feature_waitformoderator_editable', 'bigbluebuttonbn'), |
| 136 | 136 | get_string('config_feature_waitformoderator_editable_description', 'bigbluebuttonbn'), |
| 137 | 137 | 1)); |
| 138 | 138 | } |
| 139 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_ping_interval) ) { |
|
| 139 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_ping_interval)) { |
|
| 140 | 140 | //ping interval value for 'wait for moderator' feature |
| 141 | 141 | $settings->add(new admin_setting_configtext('bigbluebuttonbn_waitformoderator_ping_interval', |
| 142 | 142 | get_string('config_feature_waitformoderator_ping_interval', 'bigbluebuttonbn'), |
| 143 | 143 | get_string('config_feature_waitformoderator_ping_interval_description', 'bigbluebuttonbn'), |
| 144 | 144 | 10, PARAM_INT)); |
| 145 | 145 | } |
| 146 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl) ) { |
|
| 146 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_waitformoderator_cache_ttl)) { |
|
| 147 | 147 | //cache TTL value for 'wait for moderator' feature |
| 148 | 148 | $settings->add(new admin_setting_configtext('bigbluebuttonbn_waitformoderator_cache_ttl', |
| 149 | 149 | get_string('config_feature_waitformoderator_cache_ttl', 'bigbluebuttonbn'), |
@@ -153,8 +153,8 @@ discard block |
||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | //// Configuration for "static voice bridge" feature |
| 156 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_voicebridge_editable) ) { |
|
| 157 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_voicebridge', |
|
| 156 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_voicebridge_editable)) { |
|
| 157 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_voicebridge', |
|
| 158 | 158 | get_string('config_feature_voicebridge', 'bigbluebuttonbn'), |
| 159 | 159 | get_string('config_feature_voicebridge_description', 'bigbluebuttonbn'))); |
| 160 | 160 | |
@@ -166,10 +166,10 @@ discard block |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | //// Configuration for "preupload presentation" feature |
| 169 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_preuploadpresentation_enabled) ) { |
|
| 169 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_preuploadpresentation_enabled)) { |
|
| 170 | 170 | // This feature only works if curl is installed |
| 171 | 171 | if (extension_loaded('curl')) { |
| 172 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
| 172 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
| 173 | 173 | get_string('config_feature_preuploadpresentation', 'bigbluebuttonbn'), |
| 174 | 174 | get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn') |
| 175 | 175 | )); |
@@ -180,29 +180,29 @@ discard block |
||
| 180 | 180 | get_string('config_feature_preuploadpresentation_enabled_description', 'bigbluebuttonbn'), |
| 181 | 181 | 0)); |
| 182 | 182 | } else { |
| 183 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
| 183 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_preuploadpresentation', |
|
| 184 | 184 | get_string('config_feature_preuploadpresentation', 'bigbluebuttonbn'), |
| 185 | - get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn').'<br><br>'. |
|
| 186 | - '<div class="form-defaultinfo">'.get_string('config_warning_curl_not_installed', 'bigbluebuttonbn').'</div><br>' |
|
| 185 | + get_string('config_feature_preuploadpresentation_description', 'bigbluebuttonbn') . '<br><br>' . |
|
| 186 | + '<div class="form-defaultinfo">' . get_string('config_warning_curl_not_installed', 'bigbluebuttonbn') . '</div><br>' |
|
| 187 | 187 | )); |
| 188 | 188 | } |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | //// Configuration for "user limit" feature |
| 192 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default) || |
|
| 193 | - !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable) ) { |
|
| 194 | - $settings->add( new admin_setting_heading('config_userlimit', |
|
| 192 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default) || |
|
| 193 | + !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable)) { |
|
| 194 | + $settings->add(new admin_setting_heading('config_userlimit', |
|
| 195 | 195 | get_string('config_feature_userlimit', 'bigbluebuttonbn'), |
| 196 | 196 | get_string('config_feature_userlimit_description', 'bigbluebuttonbn'))); |
| 197 | 197 | |
| 198 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default) ) { |
|
| 198 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_default)) { |
|
| 199 | 199 | //default value for 'user limit' feature |
| 200 | 200 | $settings->add(new admin_setting_configtext('bigbluebuttonbn_userlimit_default', |
| 201 | 201 | get_string('config_feature_userlimit_default', 'bigbluebuttonbn'), |
| 202 | 202 | get_string('config_feature_userlimit_default_description', 'bigbluebuttonbn'), |
| 203 | 203 | 0, PARAM_INT)); |
| 204 | 204 | } |
| 205 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable) ) { |
|
| 205 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_userlimit_editable)) { |
|
| 206 | 206 | // UI for 'user limit' feature |
| 207 | 207 | $settings->add(new admin_setting_configcheckbox('bigbluebuttonbn_userlimit_editable', |
| 208 | 208 | get_string('config_feature_userlimit_editable', 'bigbluebuttonbn'), |
@@ -212,8 +212,8 @@ discard block |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | //// Configuration for "scheduled duration" feature |
| 215 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_scheduled_duration_enabled) ) { |
|
| 216 | - $settings->add( new admin_setting_heading('config_scheduled', |
|
| 215 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_scheduled_duration_enabled)) { |
|
| 216 | + $settings->add(new admin_setting_heading('config_scheduled', |
|
| 217 | 217 | get_string('config_scheduled', 'bigbluebuttonbn'), |
| 218 | 218 | get_string('config_scheduled_description', 'bigbluebuttonbn'))); |
| 219 | 219 | |
@@ -237,8 +237,8 @@ discard block |
||
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | //// Configuration for defining the default role/user that will be moderator on new activities |
| 240 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_moderator_default) ) { |
|
| 241 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_permission', |
|
| 240 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_moderator_default)) { |
|
| 241 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_permission', |
|
| 242 | 242 | get_string('config_permission', 'bigbluebuttonbn'), |
| 243 | 243 | get_string('config_permission_description', 'bigbluebuttonbn'))); |
| 244 | 244 | |
@@ -252,8 +252,8 @@ discard block |
||
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | //// Configuration for "send notifications" feature |
| 255 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_sendnotifications_enabled) ) { |
|
| 256 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_feature_sendnotifications', |
|
| 255 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_sendnotifications_enabled)) { |
|
| 256 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_feature_sendnotifications', |
|
| 257 | 257 | get_string('config_feature_sendnotifications', 'bigbluebuttonbn'), |
| 258 | 258 | get_string('config_feature_sendnotifications_description', 'bigbluebuttonbn'))); |
| 259 | 259 | |
@@ -265,10 +265,10 @@ discard block |
||
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | //// Configuration for extended BN capabilities |
| 268 | - if( bigbluebuttonbn_server_offers_bn_capabilities() ) { |
|
| 268 | + if (bigbluebuttonbn_server_offers_bn_capabilities()) { |
|
| 269 | 269 | //// Configuration for 'notify users when recording ready' feature |
| 270 | - if( !isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingready_enabled) ) { |
|
| 271 | - $settings->add( new admin_setting_heading('bigbluebuttonbn_extended_capabilities', |
|
| 270 | + if (!isset($BIGBLUEBUTTONBN_CFG->bigbluebuttonbn_recordingready_enabled)) { |
|
| 271 | + $settings->add(new admin_setting_heading('bigbluebuttonbn_extended_capabilities', |
|
| 272 | 272 | get_string('config_extended_capabilities', 'bigbluebuttonbn'), |
| 273 | 273 | get_string('config_extended_capabilities_description', 'bigbluebuttonbn'))); |
| 274 | 274 | |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
| 42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
| 42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 43 | 43 | return "The user with id '$a->userid' has deleted a recording with id '$a->recordingid' from the course id '$a->courseid'."; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 42 | 42 | return "The user with id '$a->userid' viewed the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for " . |
| 43 | 43 | "the course id '$a->courseid'."; |
| 44 | 44 | } |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
| 42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
| 42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 43 | 43 | return "The user with id '$a->userid' has unpublished a recording with id '$a->recordingid' in the course id '$a->courseid'."; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 42 | 42 | return "The user with id '$a->userid' has joined a bigbluebutton meeting for the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'."; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
| 42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
| 42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 43 | 43 | return "The user with id '$a->userid' has imported a recording with id '$a->recordingid' into the course id '$a->courseid'."; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 42 | 42 | return "The user with id '$a->userid' created a bigbluebutton meeting for the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'."; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
| 42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
| 42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
| 43 | 43 | return "The user with id '$a->userid' has published a recording with id '$a->recordingid' in the course id '$a->courseid'."; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @return string |
| 39 | 39 | */ |
| 40 | 40 | public function get_description() { |
| 41 | - $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 41 | + $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
| 42 | 42 | return "A bigbluebutton meeting for the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid' has been forcibly ended by the user with id '$a->userid'."; |
| 43 | 43 | } |
| 44 | 44 | |