Merge branch 'master' of gitlab.steinbeisschule-reutlingen.de:L_DA/block_timetable
This commit is contained in:
commit
e30061d84c
8 changed files with 9 additions and 7 deletions
|
@ -1,8 +1,10 @@
|
|||
# block_timetable #
|
||||
|
||||
TODO Describe the plugin shortly here.
|
||||
block_timetable is a moodle-block-plugin that provides timetables based on Untis export data.
|
||||
|
||||
TODO Provide more detailed description here.
|
||||

|
||||
|
||||
The plugin requires that the mod_timetable plugin is installed.
|
||||
|
||||
## License ##
|
||||
|
||||
|
|
|
@ -89,9 +89,9 @@ class block_timetable extends block_base {
|
|||
$today = new \DateTime();
|
||||
$week = $today->format("W");
|
||||
$dayofweek = $today->format('w');
|
||||
if ($dayofweek > 5 + get_config('timetable', 'saturday')) {
|
||||
if ($dayofweek > 5 + get_config('timetable', 'saturday') || ($dayofweek == 0)) {
|
||||
$week++;
|
||||
}
|
||||
}
|
||||
|
||||
//$ttable = new \mod_timetable\timetable('teacher','Da');
|
||||
$ttable->read_db($week);
|
||||
|
|
0
doc/.gitkeep
Normal file
0
doc/.gitkeep
Normal file
BIN
doc/timetable1.png
Normal file
BIN
doc/timetable1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
BIN
doc/timetable1_small.png
Normal file
BIN
doc/timetable1_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
|
@ -25,4 +25,4 @@
|
|||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$string['pluginname'] = 'timetable';
|
||||
$string['pluginname'] = 'Stundenplan';
|
||||
|
|
|
@ -25,6 +25,6 @@
|
|||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$string['pluginname'] = 'Stundenplan';
|
||||
$string['pluginname'] = 'timetable';
|
||||
$string['timetable:addinstance'] = 'add timetable';
|
||||
$string['timetable:addmyinstance'] = 'add timetable';
|
||||
|
|
|
@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die();
|
|||
|
||||
$plugin->component = 'block_timetable';
|
||||
$plugin->release = '0.1.0';
|
||||
$plugin->version = 2020091801;
|
||||
$plugin->version = 2020112101;
|
||||
$plugin->requires = 2020061500;
|
||||
$plugin->maturity = MATURITY_ALPHA;
|
||||
$plugin->dependencies = [
|
||||
|
|
Loading…
Add table
Reference in a new issue