authzgroups : Add titles in Objects

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1870 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-11-20 15:36:44 +00:00
parent 59f443994e
commit 25c015d22a

View File

@@ -126,6 +126,10 @@ class authzgroups
"comment"=> array ("varchar", "255"));
$this->dbObject->primary = "idobject";
$this->dbObject->unique = array ("idobject", array ("object", "module"));
$this->dbObject->titles = array ("idobject"=>_("idobject"),
"module"=>_("Module"),
"object"=>_("Object"),
"comment"=>_("Comment"));
$this->dbGroup = new dblayer ($dsn, $username, $password, $driver_options);
$this->dbGroup->debug = $this->debug;
@@ -270,6 +274,20 @@ class authzgroups
return $this->dbObject->read ($select);
}
/** Return an array containing the titles of the table translating in the user
language */
public function objectTitles ()
{
return $this->dbObject->titles;
}
/** Check if the provided datas are compilant with the object specification
@return array The errors found in the datas */
public function objectVerify ($datas, $idobject=false)
{
return $this->dbObject->verify ($datas, $idobject);
}
////////////////
// GROUPS //
////////////////