seeddms-code/inc/inc.ClassAccess.php

77 lines
2.3 KiB
PHP
Raw Normal View History

2010-10-29 13:19:51 +00:00
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
2010-10-29 13:19:51 +00:00
// 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.
/**
* Class to represent a user access right.
* This class cannot be used to modify access rights.
*
* @category DMS
* @package LetoDMS
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
* @version Release: @package_version@
2010-10-29 13:19:51 +00:00
*/
class LetoDMS_UserAccess { /* {{{ */
var $_user;
2010-10-29 13:19:51 +00:00
var $_mode;
function LetoDMS_UserAccess($user, $mode) {
$this->_user = $user;
2010-10-29 13:19:51 +00:00
$this->_mode = $mode;
}
function getUserID() { return $this->_user->getID(); }
2010-10-29 13:19:51 +00:00
function getMode() { return $this->_mode; }
function getUser() {
2010-10-29 13:19:51 +00:00
return $this->_user;
}
} /* }}} */
2010-10-29 13:19:51 +00:00
/**
* Class to represent a group access right.
* This class cannot be used to modify access rights.
*
* @category DMS
* @package LetoDMS
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
* @version Release: @package_version@
*/
class LetoDMS_GroupAccess { /* {{{ */
var $_group;
2010-10-29 13:19:51 +00:00
var $_mode;
function LetoDMS_GroupAccess($group, $mode) {
$this->_group = $group;
2010-10-29 13:19:51 +00:00
$this->_mode = $mode;
}
function getGroupID() { return $this->_group->getID(); }
2010-10-29 13:19:51 +00:00
function getMode() { return $this->_mode; }
function getGroup() {
2010-10-29 13:19:51 +00:00
return $this->_group;
}
} /* }}} */
2010-10-29 13:19:51 +00:00
?>