Commit Graph

44 Commits

Author SHA1 Message Date
Daniel Thee Roperto
cbbb861fd8 Issue #8 - Fixed failing phpunit tests. 2016-09-12 17:52:08 +10:00
Daniel Thee Roperto
f05360bfc3 Issue #8 - Added calendar synchronization. 2016-09-12 16:32:13 +10:00
Daniel Thee Roperto
f109c0a5f7 Issue #11 - Added {{duration}} placeholder, changed default title. 2016-09-12 14:26:10 +10:00
Daniel Thee Roperto
928b72ba08 Issue #11 - Date time formating. 2016-09-12 14:05:45 +10:00
Daniel Thee Roperto
ee771daecf Issue #11 - Small fixed as suggested by Brendan. 2016-09-12 13:57:33 +10:00
Daniel Thee Roperto
25abb3ae82 Issue #11 - Manage lists outages in separate tables. 2016-09-12 12:58:16 +10:00
Daniel Thee Roperto
22f85930ce Issue #11 - TDD to get future and past outages (outagedb). 2016-09-12 12:10:22 +10:00
Daniel Thee Roperto
9f2c5b08d8 Issue #11 - Solved tests for outagedb get_all_active. 2016-09-12 11:53:42 +10:00
Daniel Thee Roperto
0d8ab19f83 Issue #11 - Renderer refactored. 2016-09-12 11:28:56 +10:00
Daniel Thee Roperto
96f9bb7ec2 Issue #11 - Standard manage table implemented, all outages still on the same table. 2016-09-12 11:12:12 +10:00
Daniel Thee Roperto
4462a9c07b Bugfix - Fixed problem preventing the creation of a new outage. 2016-09-12 09:53:50 +10:00
Daniel Thee Roperto
64d09721cf Fixed form edit set_data() signature. Issue #17. 2016-09-09 12:12:52 +10:00
Daniel Thee Roperto
b1e001427b Fixed missing newlines at end of files. Issue #17. 2016-09-09 11:45:20 +10:00
Daniel Thee Roperto
6bb9320ef6 Outage remodelled both in DB and PHP Class. Issue #17. 2016-09-09 11:39:44 +10:00
Daniel Thee Roperto
4e46e934d0 WIP Issue #17 - Settings page done, missing forms and other references to warning duration and stop time. 2016-09-08 17:25:28 +10:00
Daniel Thee Roperto
07ee61f4f3 Issue #20 - Allow changing also past and present outages. 2016-09-08 15:23:15 +10:00
Daniel Thee Roperto
54e6c40565 Issue #13 - Removed continue button from info page. Link to outage in warning bar opens in new tab. 2016-09-08 14:43:45 +10:00
Daniel Thee Roperto
a4de5d6bf1 Issue #10 - Added link to warning bar and info page. 2016-09-08 14:31:51 +10:00
Daniel Thee Roperto
efee27af40 Solving all warnings from moodle-plugin-ci check. 2016-09-08 11:13:46 +10:00
Daniel Thee Roperto
2a120f0ebe Renamed methods, files and language keywords in order to match Moodle style. Issue #16 2016-09-07 11:31:58 +10:00
Daniel Thee Roperto
68cfce9b48 Issue #9 - Fixed outagedb::getactive() to make better usage of Moodle DB API, removing hardcoded LIMIT from SQL Query. 2016-09-07 09:51:48 +10:00
Daniel Thee Roperto
9344b57eff Issue #9 - Improving frontend. 2016-09-06 19:53:18 +10:00
Daniel Thee Roperto
583516a3c7 Issue #9 - Checking if outage is ongoing or just a warning. Improved hooks, tests and HTML output. 2016-09-06 17:17:26 +10:00
Daniel Thee Roperto
be477ee787 Issue #9 - Fixed code standards. 2016-09-06 14:26:49 +10:00
Daniel Thee Roperto
4cccb518f3 Issue #9 - Fixed code standards. 2016-09-06 14:21:11 +10:00
Daniel Thee Roperto
d0c4a1c0be Issue #9 - Added missing method phpdocs 2016-09-06 14:11:10 +10:00
Daniel Thee Roperto
13418a6a28 Issue #9 - Hooks installed, getting current outage implemented, missing adding information to the UI. 2016-09-06 14:00:14 +10:00
Daniel Thee Roperto
aca6a0122e WIP Issue #9 - Fixed message on all pages, need to work on UI and DB. 2016-09-05 19:50:26 +10:00
Daniel Thee Roperto
98de8a6c69 Basic form validation for create/edit outage. Checks if starttime is in past, stoptime is after starttime, warningduration is not zero and title size. Issue #7. 2016-09-05 16:33:06 +10:00
Daniel Thee Roperto
f8034abc0e Added admin events to the Moodle log - Issue #14 2016-09-05 14:13:39 +10:00
Daniel Thee Roperto
18e0583ba5 Issue #12 - fixed code standard problems preventing Travis to build. 2016-09-02 15:38:19 +10:00
Daniel Thee Roperto
06b3e4f918 Issue #12: English references removed, using language pack, except on code related to Issue #11 later. 2016-09-02 14:42:01 +10:00
Daniel Thee Roperto
729c8f521a Fixed InvalidArgumentException namespace - Issue #1 2016-09-02 13:32:26 +10:00
Daniel Thee Roperto
2cf9afb5c5 Namespace changes, outagedb changed to used static methods instead on singleton, utils renamed to outagelib (better name when using the 'use' directive). Issue #1 2016-09-02 11:55:17 +10:00
Daniel Thee Roperto
5f4ea51fcc Removing alien code. 2016-09-02 09:48:43 +10:00
Daniel Thee Roperto
b9b6077ce4 Added tests for outagedb class - #1 2016-09-01 16:40:47 +10:00
Daniel Thee Roperto
44f826fd68 Added tests for outage and outageutils class - #1 2016-09-01 14:21:38 +10:00
Daniel Thee Roperto
1afb0493ea Fixed DELETE button - #12 2016-09-01 10:57:25 +10:00
Daniel Thee Roperto
1dafbc8672 Basic delete outage entry implemented. Still missing rules on which ones can be deleted. 2016-08-31 16:48:21 +10:00
Daniel Thee Roperto
9e1b5e8315 Editing outage entry implemented. 2016-08-31 16:19:50 +10:00
Daniel Thee Roperto
1d7a042e65 Several changes to easily integrate with moodle db api. Create outage page working. 2016-08-31 15:03:36 +10:00
Daniel Thee Roperto
d9b852792e Improved outage class encapsulation. Added outagedb as DB Context. Other minor changes. 2016-08-31 11:26:27 +10:00
Daniel Thee Roperto
0dea3d39a9 Code compliance. 2016-08-30 17:49:56 +10:00
Daniel Thee Roperto
f6cbd0f828 Building basic structure. 2016-08-30 14:35:00 +10:00