renamed 'departement' to 'department'

This commit is contained in:
xdrm-brackets 2018-03-15 17:40:12 +01:00
parent 2a0d8e15b1
commit e1bdac7f5b
3 changed files with 13 additions and 13 deletions

View File

@ -6,18 +6,18 @@
* Time: 19:36
*/
namespace api\module\departement;
namespace api\module\department;
use database\core\Repo;
use database\repo\departement;
use database\repo\department;
class errorsController
{
public static function get($args){
/** @var departement $repo */
$repo = Repo::getRepo("departement");
/** @var department $repo */
$repo = Repo::getRepo("department");
return ["data" => $repo->getErrors()];
}

View File

@ -6,19 +6,19 @@
* Time: 17:36
*/
namespace api\module\departement;
namespace api\module\department;
use database\core\Repo;
use database\repo\departement;
use database\repo\department;
class statsController
{
public static function get($args){
/** @var departement $repo */
$repo = Repo::getRepo("departement");
/** @var department $repo */
$repo = Repo::getRepo("department");
return ["data" => $repo->getStats()];
}

View File

@ -12,7 +12,7 @@ namespace database\repo;
use database\core\Repo;
use database\core\Repo_i;
class departement extends Repo_i
class department extends Repo_i
{
public function getErrors() : array {
@ -65,17 +65,17 @@ class departement extends Repo_i
WHERE
0 != (SELECT MOD(SUM(volume),U.volumeCours) modCours FROM Cours WHERE UE_code = U.code GROUP BY Cours.UE_code)
)
UNION
(SELECT 'UNEQUIVALENT_VH' errorType, 'TD' entityType, U.code
FROM UE U
WHERE
0 != (SELECT MOD(SUM(volume),U.volumeTD) modCours FROM TD WHERE UE_code = U.code GROUP BY TD.UE_code)
)
UNION
(SELECT 'UNEQUIVALENT_VH' errorType, 'TP' entityType, U.code
FROM UE U
WHERE