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

@@ -1647,10 +1647,10 @@ class Dblayeroo
if (! is_object ($object))
$this->DBException ("Invalid setForeignObj parameter: not an object");
if (! is_subclass_of ($object, __CLASS__) &&
get_class ($object) !== "dblayeroo" &&
get_class ($object) !== __NAMESPACE__."\dblayeroo")
get_class ($object) !== "Dblayeroo" &&
get_class ($object) !== __NAMESPACE__."\Dblayeroo")
$this->DBException (
"Invalid object provided to setForeignObj (not dblayeroo object)");
"Invalid object provided to setForeignObj (not Dblayeroo object)");
if (! isset ($object->table))
$this->DBException (
"Invalid object provided to setForeignObj (no table defined)");
@@ -2098,10 +2098,10 @@ class Dblayeroo
if (! is_object ($object))
$this->DBException ("Invalid object provided to join (not object)");
if (! is_subclass_of ($object, __CLASS__) &&
get_class ($object) !== "dblayeroo" &&
get_class ($object) !== __NAMESPACE__."\dblayeroo")
get_class ($object) !== "Dblayeroo" &&
get_class ($object) !== __NAMESPACE__."\Dblayeroo")
$this->DBException (
"Invalid object provided to join (not dblayeroo object)");
"Invalid object provided to join (not Dblayeroo object)");
if ($this->dsn !== $object->dsn)
$this->DBException (
"DSN different : don't support JOIN between databases");