- prefixed class GroupAccess and UserAccess with LetoDMS_

This commit is contained in:
steinm 2010-11-03 10:23:57 +00:00
parent a26a34162e
commit f18c89ebab
3 changed files with 8 additions and 8 deletions

View File

@ -23,12 +23,12 @@
* dafür sind die Klassen Folder und Document selbst * dafür sind die Klassen Folder und Document selbst
* verantwortlich. * verantwortlich.
*/ */
class UserAccess class LetoDMS_UserAccess
{ {
var $_userID; var $_userID;
var $_mode; var $_mode;
function UserAccess($userID, $mode) function LetoDMS_UserAccess($userID, $mode)
{ {
$this->_userID = $userID; $this->_userID = $userID;
$this->_mode = $mode; $this->_mode = $mode;
@ -47,12 +47,12 @@ class UserAccess
} }
class GroupAccess class LetoDMS_GroupAccess
{ {
var $_groupID; var $_groupID;
var $_mode; var $_mode;
function GroupAccess($groupID, $mode) function LetoDMS_GroupAccess($groupID, $mode)
{ {
$this->_groupID = $groupID; $this->_groupID = $groupID;
$this->_mode = $mode; $this->_mode = $mode;

View File

@ -546,9 +546,9 @@ class LetoDMS_Document
foreach ($resArr as $row) foreach ($resArr as $row)
{ {
if ($row["userID"] != -1) if ($row["userID"] != -1)
array_push($this->_accessList[$mode]["users"], new UserAccess($row["userID"], $row["mode"])); array_push($this->_accessList[$mode]["users"], new LetoDMS_UserAccess($row["userID"], $row["mode"]));
else //if ($row["groupID"] != -1) else //if ($row["groupID"] != -1)
array_push($this->_accessList[$mode]["groups"], new GroupAccess($row["groupID"], $row["mode"])); array_push($this->_accessList[$mode]["groups"], new LetoDMS_GroupAccess($row["groupID"], $row["mode"]));
} }
} }

View File

@ -658,9 +658,9 @@ class LetoDMS_Folder
foreach ($resArr as $row) foreach ($resArr as $row)
{ {
if ($row["userID"] != -1) if ($row["userID"] != -1)
array_push($this->_accessList[$mode]["users"], new UserAccess($row["userID"], $row["mode"])); array_push($this->_accessList[$mode]["users"], new LetoDMS_UserAccess($row["userID"], $row["mode"]));
else //if ($row["groupID"] != -1) else //if ($row["groupID"] != -1)
array_push($this->_accessList[$mode]["groups"], new GroupAccess($row["groupID"], $row["mode"])); array_push($this->_accessList[$mode]["groups"], new LetoDMS_GroupAccess($row["groupID"], $row["mode"]));
} }
} }