Passage en Namespace et tous les tests fonctionnels OK
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user