diff --git a/SeedDMS_Core/Core/inc.ClassAccess.php b/SeedDMS_Core/Core/inc.ClassAccess.php index 3d355e21e..c9ef9ffcd 100644 --- a/SeedDMS_Core/Core/inc.ClassAccess.php +++ b/SeedDMS_Core/Core/inc.ClassAccess.php @@ -1,122 +1,122 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, - * 2010 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Class to represent a user access right. - * This class cannot be used to modify access rights. - * - * @category DMS - * @package SeedDMS_Core - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, - * 2010 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_Core_UserAccess { /* {{{ */ - - /** - * @var SeedDMS_Core_User - */ - var $_user; - - /** - * @var - */ - var $_mode; - - /** - * SeedDMS_Core_UserAccess constructor. - * @param $user - * @param $mode - */ - function __construct($user, $mode) { - $this->_user = $user; - $this->_mode = $mode; - } - - /** - * @return int - */ - function getUserID() { return $this->_user->getID(); } - - /** - * @return mixed - */ - function getMode() { return $this->_mode; } - - /** - * @return bool - */ - function isAdmin() { - return ($this->_mode == SeedDMS_Core_User::role_admin); - } - - /** - * @return SeedDMS_Core_User - */ - function getUser() { - return $this->_user; - } -} /* }}} */ - - -/** - * Class to represent a group access right. - * This class cannot be used to modify access rights. - * - * @category DMS - * @package SeedDMS_Core - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_Core_GroupAccess { /* {{{ */ - - /** - * @var SeedDMS_Core_Group - */ - var $_group; - - /** - * @var - */ - var $_mode; - - /** - * SeedDMS_Core_GroupAccess constructor. - * @param $group - * @param $mode - */ - function __construct($group, $mode) { - $this->_group = $group; - $this->_mode = $mode; - } - - /** - * @return int - */ - function getGroupID() { return $this->_group->getID(); } - - /** - * @return mixed - */ - function getMode() { return $this->_mode; } - - /** - * @return SeedDMS_Core_Group - */ - function getGroup() { - return $this->_group; - } -} /* }}} */ \ No newline at end of file + + * @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, + * 2010 Uwe Steinmann + * @version Release: @package_version@ + */ + +/** + * Class to represent a user access right. + * This class cannot be used to modify access rights. + * + * @category DMS + * @package SeedDMS_Core + * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann + * @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, + * 2010 Uwe Steinmann + * @version Release: @package_version@ + */ +class SeedDMS_Core_UserAccess { /* {{{ */ + + /** + * @var SeedDMS_Core_User + */ + var $_user; + + /** + * @var + */ + var $_mode; + + /** + * SeedDMS_Core_UserAccess constructor. + * @param $user + * @param $mode + */ + function __construct($user, $mode) { + $this->_user = $user; + $this->_mode = $mode; + } + + /** + * @return int + */ + function getUserID() { return $this->_user->getID(); } + + /** + * @return mixed + */ + function getMode() { return $this->_mode; } + + /** + * @return bool + */ + function isAdmin() { + return ($this->_mode == SeedDMS_Core_User::role_admin); + } + + /** + * @return SeedDMS_Core_User + */ + function getUser() { + return $this->_user; + } +} /* }}} */ + + +/** + * Class to represent a group access right. + * This class cannot be used to modify access rights. + * + * @category DMS + * @package SeedDMS_Core + * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann + * @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann + * @version Release: @package_version@ + */ +class SeedDMS_Core_GroupAccess { /* {{{ */ + + /** + * @var SeedDMS_Core_Group + */ + var $_group; + + /** + * @var + */ + var $_mode; + + /** + * SeedDMS_Core_GroupAccess constructor. + * @param $group + * @param $mode + */ + function __construct($group, $mode) { + $this->_group = $group; + $this->_mode = $mode; + } + + /** + * @return int + */ + function getGroupID() { return $this->_group->getID(); } + + /** + * @return mixed + */ + function getMode() { return $this->_mode; } + + /** + * @return SeedDMS_Core_Group + */ + function getGroup() { + return $this->_group; + } +} /* }}} */