@@ -41,27 +41,27 @@ protected function define_structure() {
4141 $ userinfo = $ this ->get_setting_value ('userinfo ' );
4242
4343 // Define each element separated.
44- $ scheduler = new backup_nested_element ('scheduler ' , array ( 'id ' ), array (
44+ $ scheduler = new backup_nested_element ('scheduler ' , [ 'id ' ], [
4545 'name ' , 'intro ' , 'introformat ' , 'schedulermode ' , 'maxbookings ' ,
4646 'guardtime ' , 'defaultslotduration ' , 'allownotifications ' , 'staffrolename ' ,
4747 'scale ' , 'gradingstrategy ' , 'bookingrouping ' , 'usenotes ' ,
4848 'usebookingform ' , 'bookinginstructions ' , 'bookinginstructionsformat ' ,
4949 'usestudentnotes ' , 'requireupload ' , 'uploadmaxfiles ' , 'uploadmaxsize ' ,
50- 'usecaptcha ' , 'timemodified ' ) );
50+ 'usecaptcha ' , 'timemodified ' , ] );
5151
5252 $ slots = new backup_nested_element ('slots ' );
5353
54- $ slot = new backup_nested_element ('slot ' , array ( 'id ' ), array (
54+ $ slot = new backup_nested_element ('slot ' , [ 'id ' ], [
5555 'starttime ' , 'duration ' , 'teacherid ' , 'appointmentlocation ' ,
5656 'timemodified ' , 'notes ' , 'notesformat ' , 'exclusivity ' ,
57- 'emaildate ' , 'hideuntil ' ) );
57+ 'emaildate ' , 'hideuntil ' , ] );
5858
5959 $ appointments = new backup_nested_element ('appointments ' );
6060
61- $ appointment = new backup_nested_element ('appointment ' , array ( 'id ' ), array (
61+ $ appointment = new backup_nested_element ('appointment ' , [ 'id ' ], [
6262 'studentid ' , 'attended ' , 'grade ' ,
6363 'appointmentnote ' , 'appointmentnoteformat ' , 'teachernote ' , 'teachernoteformat ' ,
64- 'studentnote ' , 'studentnoteformat ' , 'timecreated ' , 'timemodified ' ) );
64+ 'studentnote ' , 'studentnoteformat ' , 'timecreated ' , 'timemodified ' , ] );
6565
6666 // Build the tree.
6767
@@ -72,13 +72,13 @@ protected function define_structure() {
7272 $ appointments ->add_child ($ appointment );
7373
7474 // Define sources.
75- $ scheduler ->set_source_table ('scheduler ' , array ( 'id ' => backup::VAR_ACTIVITYID ) );
75+ $ scheduler ->set_source_table ('scheduler ' , [ 'id ' => backup::VAR_ACTIVITYID ] );
7676 $ scheduler ->annotate_ids ('grouping ' , 'bookingrouping ' );
7777
7878 // Include appointments only if we back up user information.
7979 if ($ userinfo ) {
80- $ slot ->set_source_table ('scheduler_slots ' , array ( 'schedulerid ' => backup::VAR_PARENTID ) );
81- $ appointment ->set_source_table ('scheduler_appointment ' , array ( 'slotid ' => backup::VAR_PARENTID ) );
80+ $ slot ->set_source_table ('scheduler_slots ' , [ 'schedulerid ' => backup::VAR_PARENTID ] );
81+ $ appointment ->set_source_table ('scheduler_appointment ' , [ 'slotid ' => backup::VAR_PARENTID ] );
8282 }
8383
8484 // Define id annotations.
0 commit comments