summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/coursebackend.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [locationinfo] Suppress XML parsing error spamSimon Rettberg2019-01-291-1/+1
| | | | | | The SimpleXML constructor is quite verbose if you pass it e.g. an HTML error page instead of the expected XML. Suppress those errors, we'll do our own (more concise) logging in the exception handler.
* [locationinfo] Fix default setting for "select" backend optionsSimon Rettberg2018-04-051-1/+4
|
* [locationinfo] Fix handling of invalid backends, remove dummy-backend in ↵Simon Rettberg2017-12-071-14/+26
| | | | production
* [locationinfo] Fix formatting of calendar starttime/endtime, remove if not ↵Simon Rettberg2017-12-051-4/+30
| | | | | | | | possible The weekcalendar plugin chokes on badly formatted timestamps, so either fix or remove dates which don't match the expectation. Fixes #3192
* [locationinfo] Better error handling in hisinone backendSimon Rettberg2017-07-251-16/+14Star
|
* [locationinfo] Try working around messy time handling (timezones etc), CSSSimon Rettberg2017-07-071-0/+2
| | | | | | | | | | | | Webkit/Presto and Blink/Gecko (or rather the corresponding JS engine) disagree about how to handle certain date format strings wrt. time zones. This leads to nasty discrepancies of events being displayed in the calendar. (Unfortunately the students working on this project could not be convinced that properly handling time zones when dealing with time information should be considered important.) Also, some tweaks to CSS/layout have been implemented so the design isn't as messed up on old webkits that don't support flex layout.
* [locationinfo] Generate credentials in server-settings server sideSimon Rettberg2017-04-211-0/+39
| | | | | | | There's no need to generate parameters server side that get passed to the template engine which generates javascript code that generates html snippets in the browser. We now generate everything server side right away.
* [locationinfo] Rename tables to use module name as prefix; room -> locationSimon Rettberg2017-04-201-9/+9
|
* [locationinfo] CourseBackend: Rename some methods to be more descriptiveSimon Rettberg2017-04-191-6/+6
|
* [locationinfo] Better backend-specific property handling, get rid of URLSimon Rettberg2017-04-191-10/+37
| | | | | | | | - The backend URL still had special treatment for legacy reasons, when it would be perfectly fine to make it just another generic property the backend has to define. - Allow for the backend to declare a default value for properties. - Base class will now check and sanitize the setCredentials() input.
* [locationinfo] CourseBackends: Lots of bug fixes, missing error checks, ↵Simon Rettberg2017-04-191-72/+88
| | | | | | | | | | | | | improvements: - Add more checks for returned data structures from backend, like keys in arrays - Better error messages if something goes wrong, not just "server sent wrong xml" - Make checkConnection() of davinci and hisinone not require a valid room id, which we don't have in general - hisinone: Parse data structure just once for every room - Request coalescing: Only try so if getRefreshTime() > getCacheTime() - Move toArray() to base class instead of having two copies - Sanitize variable naming conventions
* [locationinfo] Format php filesSimon Rettberg2017-04-121-7/+15
|
* Dummy Klasse kommentiert und HisInOne erlaubt zwei Semester abzufragen falls ↵Dirk Riestere2017-03-291-1/+1
| | | | in dem Monat das Semester wechsel
* Bug das eine HisInOne Anfrage gestartet wird obwohl kein Shedule ↵Dirk Riestere2017-03-261-2/+11
| | | | aktualisiert werden muss ist behoben
* Übersetzungen der Credentials eingebaut und nicht fatale errors werden nun ↵Dirk Riestere2017-03-221-6/+12
| | | | im errorlog ausgegeben
* XML parser ist implementiert und HisInOne kann jetzt gelesen werdenDirk Riestere2017-03-201-17/+68
|
* Codeormat verschönert für HisInOne und ein json_encode für das backend ↵Dirk Riestere2017-03-141-1/+1
| | | | eingefügt der vergessen wurde
* Codeormat verschönert für HisInOne und ein json_encode für das backend ↵Dirk Riestere2017-03-141-3/+3
| | | | eingefügt der vergessen wurde
* Fehler beim xml lesen behobenDirk Riestere2017-03-091-2/+5
|
* setCredentials wie im Treffen besprochen geändert und fetchshedule gibt ↵Dirk Riestere2017-03-081-2/+3
| | | | jetzt nur noch arrays zurück
* Noch mehr exeption werden gefangen und die errors verhalten sich jetzt wie ↵Dirk Riestere2017-03-061-8/+15
| | | | beschrieben
* Noch mehr exeption werden gefangen und das verhalten bei errors ist ↵Dirk Riestere2017-03-051-0/+10
| | | | vereinheitlicht
* Bugfixes und Code verschönertDirk Riestere2017-03-021-90/+93
|
* Bugfixes und checkConection implementiertDirk Riestere2017-03-011-0/+5
|
* BugfixesDirk Riestere2017-02-281-1/+1
|
* BugfixesDirk Riestere2017-02-281-6/+7
|
* Bugfixes and Errorcode implementationDirk Riestere2017-02-271-1/+15
|
* Bugfixes und Caching wie besprochen verändertDirk Riestere2017-02-241-2/+2
|
* die klassen können jetzt ohne parameter erstellt werden, die url und die ↵Dirk Riestere2017-02-221-7/+4Star
| | | | serverID wird jetzt in setCredentials gesetzt
* fetchSchedule nimmt jetzt einen Array an und gibt mehrere Schedules zurückDirk Riestere2017-02-221-29/+37
|
* Typos behoben, und die cretendials werden auserhalb der Klasse gesetztDirk Riestere2017-02-211-7/+6Star
|
* Die Klassen sind wie besprochen eingerichtetDirk Riestere2017-02-151-17/+70
|
* [locationinfo] Add skeleton for pluggable course backend infrastructureSimon Rettberg2017-02-081-0/+108