@@ -37,17 +37,17 @@ |
||
| 37 | 37 | * @return string |
| 38 | 38 | */ |
| 39 | 39 | public static function action_url($action = '', $data = array(), $metadata = array()) { |
| 40 | - $baseurl = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/'.$action.'?'; |
|
| 40 | + $baseurl = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/' . $action . '?'; |
|
| 41 | 41 | $params = ''; |
| 42 | 42 | |
| 43 | 43 | foreach ($data as $key => $value) { |
| 44 | - $params .= '&'.$key.'='.urlencode($value); |
|
| 44 | + $params .= '&' . $key . '=' . urlencode($value); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | foreach ($metadata as $key => $value) { |
| 48 | - $params .= '&'.'meta_'.$key.'='.urlencode($value); |
|
| 48 | + $params .= '&' . 'meta_' . $key . '=' . urlencode($value); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - return $baseurl.$params.'&checksum='.sha1($action.$params.\mod_bigbluebuttonbn\locallib\config::get('shared_secret')); |
|
| 51 | + return $baseurl . $params . '&checksum=' . sha1($action . $params . \mod_bigbluebuttonbn\locallib\config::get('shared_secret')); |
|
| 52 | 52 | } |
| 53 | 53 | } |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public static function defaultvalues() { |
| 49 | 49 | return array( |
| 50 | - 'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 51 | - 'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 50 | + 'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 51 | + 'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 52 | 52 | 'importrecordings_enabled' => 'false', |
| 53 | 53 | 'voicebridge_editable' => 'false', |
| 54 | 54 | 'recording_default' => 'true', |
@@ -98,11 +98,11 @@ discard block |
||
| 98 | 98 | global $CFG; |
| 99 | 99 | |
| 100 | 100 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
| 101 | - return (string) $CFG->bigbluebuttonbn[$setting]; |
|
| 101 | + return (string)$CFG->bigbluebuttonbn[$setting]; |
|
| 102 | 102 | } |
| 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 | |
| 108 | 108 | return self::defaultvalue($setting); |
@@ -123,25 +123,25 @@ |
||
| 123 | 123 | */ |
| 124 | 124 | public static function get_options() { |
| 125 | 125 | return [ |
| 126 | - 'version_major' => self::get_moodle_version_major(), |
|
| 127 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 128 | - 'recording_default' => self::get('recording_default'), |
|
| 129 | - 'recording_editable' => self::get('recording_editable'), |
|
| 130 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 131 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 132 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 133 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 134 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 135 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 136 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 137 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 138 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 139 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 140 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 141 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 142 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 143 | - 'instance_type_enabled' => self::recordings_enabled(), |
|
| 144 | - 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 145 | - ]; |
|
| 126 | + 'version_major' => self::get_moodle_version_major(), |
|
| 127 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 128 | + 'recording_default' => self::get('recording_default'), |
|
| 129 | + 'recording_editable' => self::get('recording_editable'), |
|
| 130 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 131 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 132 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 133 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 134 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 135 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 136 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 137 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 138 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 139 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 140 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 141 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 142 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 143 | + 'instance_type_enabled' => self::recordings_enabled(), |
|
| 144 | + 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 145 | + ]; |
|
| 146 | 146 | } |
| 147 | 147 | } |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "The user with id '$this->userid' triggered action $this->other in a ". |
|
| 38 | - "bigbluebutton meeting for the bigbluebuttonbn activity with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' triggered action $this->other in a " . |
|
| 38 | + "bigbluebutton meeting for the bigbluebuttonbn activity with id " . |
|
| 39 | 39 | "'$this->objectid' for the course id '$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 unprotected a recording with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has unprotected 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' created a bigbluebutton meeting for". |
|
| 37 | + $this->description = "The user with id '$this->userid' created a bigbluebutton meeting for" . |
|
| 38 | 38 | "the bigbluebuttonbn activity with id '$this->objectid' for the course id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function init() { |
| 36 | 36 | parent::init(); |
| 37 | - $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id ". |
|
| 38 | - "'$this->objectid' for the course id '$this->contextinstanceid' has been forcibly ". |
|
| 37 | + $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id " . |
|
| 38 | + "'$this->objectid' for the course id '$this->contextinstanceid' has been forcibly " . |
|
| 39 | 39 | "ended by the user with id '$this->userid'."; |
| 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 published a recording with id ". |
|
| 37 | + $this->description = "The user with id '$this->userid' has published a recording with id " . |
|
| 38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -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 joined 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 joined a bigbluebutton meeting for " . |
|
| 38 | + "the bigbluebuttonbn activity with id '$this->objectid' for the course id " . |
|
| 39 | 39 | "'$this->contextinstanceid'."; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | // along with Moodle. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * The mod_bigbluebuttonbn abstract base event. |
|
| 19 | - * |
|
| 20 | - * @package mod_bigbluebuttonbn |
|
| 21 | - * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
|
| 22 | - * @copyright 2017 - present, Blindside Networks Inc |
|
| 23 | - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
|
| 24 | - */ |
|
| 18 | + * The mod_bigbluebuttonbn abstract base event. |
|
| 19 | + * |
|
| 20 | + * @package mod_bigbluebuttonbn |
|
| 21 | + * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
|
| 22 | + * @copyright 2017 - present, Blindside Networks Inc |
|
| 23 | + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
|
| 24 | + */ |
|
| 25 | 25 | |
| 26 | 26 | namespace mod_bigbluebuttonbn\event; |
| 27 | 27 | |