Merge remote-tracking branch 'origin/master'

This commit is contained in:
Cris
2018-09-13 14:58:38 +02:00
4 changed files with 59 additions and 5 deletions
@@ -88,7 +88,7 @@ class Lehrveranstaltung_model extends DB_Model
$query = "
SELECT lehrveranstaltung_id, ? || '_' || kuerzel || '_' || lvpostfix AS lvgroupname
SELECT lehrveranstaltung_id, ? || '_' || kuerzel || '_' || replace(lvpostfix, ' ', '-') AS lvgroupname
FROM(
SELECT DISTINCT ON (kuerzel, lvpostfix)
lehrveranstaltung_id,
@@ -25,8 +25,10 @@ class Benutzerfunktion_model extends DB_Model
/**
* Gets all Benutzer for a given OE and specified Benutzerfunktionen
* @param $oe_kurzbz
* @param $funktion_kurzbz string with one benutzerfunktionname or array with one or more
* @param $oe_kurzbz
* @param bool $activeoeonly if true, retrieve only active Organisationseinheiten
* @param bool $activebenonly if true, retrieve only active Benutzer
* @return array|null
*/
public function getBenutzerFunktionen($funktion_kurzbz, $oe_kurzbz = null, $activeoeonly = false, $activebenonly = false)
@@ -41,7 +43,7 @@ class Benutzerfunktion_model extends DB_Model
if ($activebenonly === true)
$query .= " JOIN public.tbl_benutzer USING(uid)";
$query .= "WHERE (datum_von <= NOW() OR datum_von IS NULL) AND (datum_bis >= NOW() OR datum_bis IS NULL)";
$query .= " WHERE (datum_von <= NOW() OR datum_von IS NULL) AND (datum_bis >= NOW() OR datum_bis IS NULL)";
if (is_string($funktion_kurzbz))
{
+2
View File
@@ -267,6 +267,8 @@
"ml/json-ld": "1.*",
"mottie/tablesorter": "^2.29",
"nategood/httpful": "^0.2.20",
"netcarver/textile": "^3.5",
"nicolaskruchten/pivottable": "^2.15.0",
Generated
+52 -2
View File
@@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "0a7b99cf08f40f15cad6397a2097d834",
"content-hash": "4065f6ebe38d16462908ebbdac8adf7d",
"hash": "e5e3e110545316baa4087a8e1a283a7c",
"content-hash": "e191f9af8e2103de78eaa130122ec72b",
"packages": [
{
"name": "BlackrockDigital/startbootstrap-sb-admin-2",
@@ -1159,6 +1159,56 @@
],
"time": "2018-07-10 13:32:19"
},
{
"name": "nategood/httpful",
"version": "0.2.20",
"source": {
"type": "git",
"url": "https://github.com/nategood/httpful.git",
"reference": "c1cd4d46a4b281229032cf39d4dd852f9887c0f6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nategood/httpful/zipball/c1cd4d46a4b281229032cf39d4dd852f9887c0f6",
"reference": "c1cd4d46a4b281229032cf39d4dd852f9887c0f6",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": "*"
},
"type": "library",
"autoload": {
"psr-0": {
"Httpful": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nate Good",
"email": "me@nategood.com",
"homepage": "http://nategood.com"
}
],
"description": "A Readable, Chainable, REST friendly, PHP HTTP Client",
"homepage": "http://github.com/nategood/httpful",
"keywords": [
"api",
"curl",
"http",
"requests",
"rest",
"restful"
],
"time": "2015-10-26 16:11:30"
},
{
"name": "netcarver/textile",
"version": "v3.6.0",