2010-10-29 13:19:51 +00:00
|
|
|
|
<?php
|
|
|
|
|
// MyDMS. Document Management System
|
|
|
|
|
// Copyright (C) 2002-2005 Markus Westphal
|
|
|
|
|
// Copyright (C) 2006-2008 Malcolm Cowe
|
|
|
|
|
//
|
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Repr<EFBFBD>sentiert einen Eintrag in der tblACLs f<EFBFBD>r einen User.
|
|
|
|
|
* <EFBFBD>nderungen an der Berechtigung k<EFBFBD>nnen nicht vorgenommen werden;
|
|
|
|
|
* daf<EFBFBD>r sind die Klassen Folder und Document selbst
|
|
|
|
|
* verantwortlich.
|
|
|
|
|
*/
|
2010-11-03 10:23:57 +00:00
|
|
|
|
class LetoDMS_UserAccess
|
2010-10-29 13:19:51 +00:00
|
|
|
|
{
|
2010-11-18 10:28:45 +00:00
|
|
|
|
var $_user;
|
2010-10-29 13:19:51 +00:00
|
|
|
|
var $_mode;
|
|
|
|
|
|
2010-11-18 10:28:45 +00:00
|
|
|
|
function LetoDMS_UserAccess($user, $mode)
|
2010-10-29 13:19:51 +00:00
|
|
|
|
{
|
2010-11-18 10:28:45 +00:00
|
|
|
|
$this->_user = $user;
|
2010-10-29 13:19:51 +00:00
|
|
|
|
$this->_mode = $mode;
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-18 10:28:45 +00:00
|
|
|
|
function getUserID() { return $this->_user->getID(); }
|
2010-10-29 13:19:51 +00:00
|
|
|
|
|
|
|
|
|
function getMode() { return $this->_mode; }
|
|
|
|
|
|
2010-11-18 10:28:45 +00:00
|
|
|
|
function getUser() {
|
2010-10-29 13:19:51 +00:00
|
|
|
|
return $this->_user;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2010-11-03 10:23:57 +00:00
|
|
|
|
class LetoDMS_GroupAccess
|
2010-10-29 13:19:51 +00:00
|
|
|
|
{
|
2010-11-18 10:28:45 +00:00
|
|
|
|
var $_group;
|
2010-10-29 13:19:51 +00:00
|
|
|
|
var $_mode;
|
|
|
|
|
|
2010-11-18 10:28:45 +00:00
|
|
|
|
function LetoDMS_GroupAccess($group, $mode)
|
2010-10-29 13:19:51 +00:00
|
|
|
|
{
|
2010-11-18 10:28:45 +00:00
|
|
|
|
$this->_group = $group;
|
2010-10-29 13:19:51 +00:00
|
|
|
|
$this->_mode = $mode;
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-18 10:28:45 +00:00
|
|
|
|
function getGroupID() { return $this->_group->getID(); }
|
2010-10-29 13:19:51 +00:00
|
|
|
|
|
|
|
|
|
function getMode() { return $this->_mode; }
|
|
|
|
|
|
2010-11-18 10:28:45 +00:00
|
|
|
|
function getGroup() {
|
2010-10-29 13:19:51 +00:00
|
|
|
|
return $this->_group;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|