@@ -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. |
@@ -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; |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $logs = new backup_nested_element('logs'); |
| 49 | 49 | |
| 50 | 50 | $log = new backup_nested_element('log', array('id'), array( |
| 51 | - 'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', )); |
|
| 51 | + 'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',)); |
|
| 52 | 52 | |
| 53 | 53 | // Build the tree. |
| 54 | 54 | $bigbluebuttonbn->add_child($logs); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | protected function process_bigbluebuttonbn($data) { |
| 51 | 51 | global $DB; |
| 52 | - $data = (object) $data; |
|
| 52 | + $data = (object)$data; |
|
| 53 | 53 | $data->course = $this->get_courseid(); |
| 54 | 54 | $data->timemodified = $this->apply_date_offset($data->timemodified); |
| 55 | 55 | // Insert the bigbluebuttonbn record. |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | protected function process_bigbluebuttonbn_logs($data) { |
| 67 | 67 | global $DB; |
| 68 | - $data = (object) $data; |
|
| 68 | + $data = (object)$data; |
|
| 69 | 69 | // Apply modifications. |
| 70 | 70 | $data->courseid = $this->get_mappingid('course', $data->courseid); |
| 71 | 71 | $data->bigbluebuttonbnid = $this->get_new_parentid('bigbluebuttonbn'); |