Passage en Namespace et tous les tests fonctionnels OK

This commit is contained in:
2021-05-10 11:48:15 +02:00
parent 536dd0d56b
commit eb30d8ef97
56 changed files with 1091 additions and 964 deletions

View File

@@ -70,7 +70,7 @@ class Authzgroups
{
$st = $this->dbObject->prepare ($req);
}
catch (Exception $e)
catch (\Exception $e)
{
if ($this->dbObject->debug) echo "DEBUG : PREPARE ERROR ! Return FALSE".
$e->getMessage()."\n";
@@ -86,14 +86,14 @@ class Authzgroups
if ($rc === false)
throw new \Exception ("Can't execute SQL request", 500);
}
catch (Exception $e)
catch (\Exception $e)
{
if ($this->dbObject->debug) echo "DEBUG : EXECUTE ERROR ! Return FALSE".
$e->getMessage()."\n";
throw new \Exception ($e->getMessage(), 500);
}
$res = array ();
while ($d = $st->fetch (PDO::FETCH_ASSOC))
while ($d = $st->fetch (\PDO::FETCH_ASSOC))
$res[$d["object"]] = $d["right"];
// Transform the numerical rights to RO/RW
foreach ($res as $k=>$r)
@@ -382,7 +382,7 @@ class Authzgroups
$class= "db$table";
$this->$class->createTable ();
}
catch (Exception $e)
catch (\Exception $e)
{
echo $e->getMessage()."\n";
}