domci : commas should be followed by space

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5281 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-05-23 14:55:18 +00:00
parent 17168aaaef
commit f423229f94
20 changed files with 159 additions and 167 deletions

View File

@@ -191,8 +191,8 @@ class authzgroupsoo
$object = "/$object";
$rc = $this->allow ($module, $user, "$object");
if ($this->debug)
trigger_error ("authzgroups : accessRight ('$module','$user','$object')".
"=$rc", E_USER_NOTICE);
trigger_error ("authzgroups : accessRight ('$module', '$user', ".
"'$object')=$rc", E_USER_NOTICE);
if ($rc !== "NO")
return TRUE;
if ($user === "anonymous")
@@ -226,8 +226,8 @@ class authzgroupsoo
$object = "/$object";
$rc = $this->allow ($module, $user, $object);
if ($this->debug)
trigger_error ("authzgroups : accessWrite ('$module','$user','$object')".
"=$rc", E_USER_NOTICE);
trigger_error ("authzgroups : accessWrite ('$module', '$user', ".
"'$object')=$rc", E_USER_NOTICE);
if ($rc === "RW")
return TRUE;
if ($user === "anonymous")
@@ -263,7 +263,7 @@ class authzgroupsoo
$object = "/$object";
$rc = $this->allow ($module, $user, $object);
if ($this->debug)
trigger_error ("authzgroups : accessReadOnly ('$module','$user',".
trigger_error ("authzgroups : accessReadOnly ('$module', '$user', ".
"'$object')" ."=$rc", E_USER_NOTICE);
if ($rc === "RO")
return TRUE;
@@ -316,7 +316,7 @@ class authzgroupsoo
"group" => array ("varchar(255)", "not null"),
"comment" => array ("varchar(255)")));
$this->dbGroup->primary ("idgroup");
$this->dbGroup->unique (array ("idgroup", array ("module","group")));
$this->dbGroup->unique (array ("idgroup", array ("module", "group")));
$this->dbGroup->titles (array (
"idgroup" => dgettext ("domframework", "idgroup"),
"module" => dgettext ("domframework", "Module"),
@@ -335,7 +335,7 @@ class authzgroupsoo
"comment" => array ("varchar(255)")));
$this->dbGroupMember->primary ("idgroupmember");
$this->dbGroupMember->unique (array ("idgroupmember",
array ("user","idgroup")));
array ("user", "idgroup")));
$this->dbGroupMember->foreign (array (
"idgroup" => array ($this->tableprefix."authzgroup", "idgroup",
"ON UPDATE CASCADE ON DELETE CASCADE")));
@@ -355,10 +355,10 @@ class authzgroupsoo
"idright" => array ("integer", "not null", "autoincrement"),
"idgroup" => array ("integer", "not null"),
"idobject" => array ("integer", "not null"),
"right" => array ("varchar(2)", "not null"), // NO, RO,RW
"right" => array ("varchar(2)", "not null"), // NO, RO, RW
"comment" => array ("varchar(255)")));
$this->dbRight->primary ("idright");
$this->dbRight->unique (array ("idright", array ("idgroup","idobject")));
$this->dbRight->unique (array ("idright", array ("idgroup", "idobject")));
$this->dbRight->foreign (array (
"idgroup" => array ($this->tableprefix."authzgroup", "idgroup",
"ON UPDATE CASCADE ON DELETE CASCADE"),
@@ -584,7 +584,7 @@ class authzgroupsoo
$this->dbObject->whereAdd ("object", "=", $object);
return $this->dbObject->select ()
->whereAdd ("module", "=", $module)
->orderAdd ("object","ASC")
->orderAdd ("object", "ASC")
->execute ();
}