mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
set file format to unix, fix indenting of comments
This commit is contained in:
parent
b111c1428e
commit
ad52fffd21
|
@ -1,122 +1,122 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Implementation of user and group access object
|
* Implementation of user and group access object
|
||||||
*
|
*
|
||||||
* @category DMS
|
* @category DMS
|
||||||
* @package SeedDMS_Core
|
* @package SeedDMS_Core
|
||||||
* @license GPL 2
|
* @license GPL 2
|
||||||
* @version @version@
|
* @version @version@
|
||||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
||||||
* 2010 Uwe Steinmann
|
* 2010 Uwe Steinmann
|
||||||
* @version Release: @package_version@
|
* @version Release: @package_version@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to represent a user access right.
|
* Class to represent a user access right.
|
||||||
* This class cannot be used to modify access rights.
|
* This class cannot be used to modify access rights.
|
||||||
*
|
*
|
||||||
* @category DMS
|
* @category DMS
|
||||||
* @package SeedDMS_Core
|
* @package SeedDMS_Core
|
||||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
||||||
* 2010 Uwe Steinmann
|
* 2010 Uwe Steinmann
|
||||||
* @version Release: @package_version@
|
* @version Release: @package_version@
|
||||||
*/
|
*/
|
||||||
class SeedDMS_Core_UserAccess { /* {{{ */
|
class SeedDMS_Core_UserAccess { /* {{{ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var SeedDMS_Core_User
|
* @var SeedDMS_Core_User
|
||||||
*/
|
*/
|
||||||
var $_user;
|
var $_user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var
|
* @var
|
||||||
*/
|
*/
|
||||||
var $_mode;
|
var $_mode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SeedDMS_Core_UserAccess constructor.
|
* SeedDMS_Core_UserAccess constructor.
|
||||||
* @param $user
|
* @param $user
|
||||||
* @param $mode
|
* @param $mode
|
||||||
*/
|
*/
|
||||||
function __construct($user, $mode) {
|
function __construct($user, $mode) {
|
||||||
$this->_user = $user;
|
$this->_user = $user;
|
||||||
$this->_mode = $mode;
|
$this->_mode = $mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
function getUserID() { return $this->_user->getID(); }
|
function getUserID() { return $this->_user->getID(); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
function getMode() { return $this->_mode; }
|
function getMode() { return $this->_mode; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function isAdmin() {
|
function isAdmin() {
|
||||||
return ($this->_mode == SeedDMS_Core_User::role_admin);
|
return ($this->_mode == SeedDMS_Core_User::role_admin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return SeedDMS_Core_User
|
* @return SeedDMS_Core_User
|
||||||
*/
|
*/
|
||||||
function getUser() {
|
function getUser() {
|
||||||
return $this->_user;
|
return $this->_user;
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to represent a group access right.
|
* Class to represent a group access right.
|
||||||
* This class cannot be used to modify access rights.
|
* This class cannot be used to modify access rights.
|
||||||
*
|
*
|
||||||
* @category DMS
|
* @category DMS
|
||||||
* @package SeedDMS_Core
|
* @package SeedDMS_Core
|
||||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
|
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
|
||||||
* @version Release: @package_version@
|
* @version Release: @package_version@
|
||||||
*/
|
*/
|
||||||
class SeedDMS_Core_GroupAccess { /* {{{ */
|
class SeedDMS_Core_GroupAccess { /* {{{ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var SeedDMS_Core_Group
|
* @var SeedDMS_Core_Group
|
||||||
*/
|
*/
|
||||||
var $_group;
|
var $_group;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var
|
* @var
|
||||||
*/
|
*/
|
||||||
var $_mode;
|
var $_mode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SeedDMS_Core_GroupAccess constructor.
|
* SeedDMS_Core_GroupAccess constructor.
|
||||||
* @param $group
|
* @param $group
|
||||||
* @param $mode
|
* @param $mode
|
||||||
*/
|
*/
|
||||||
function __construct($group, $mode) {
|
function __construct($group, $mode) {
|
||||||
$this->_group = $group;
|
$this->_group = $group;
|
||||||
$this->_mode = $mode;
|
$this->_mode = $mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
function getGroupID() { return $this->_group->getID(); }
|
function getGroupID() { return $this->_group->getID(); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
function getMode() { return $this->_mode; }
|
function getMode() { return $this->_mode; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return SeedDMS_Core_Group
|
* @return SeedDMS_Core_Group
|
||||||
*/
|
*/
|
||||||
function getGroup() {
|
function getGroup() {
|
||||||
return $this->_group;
|
return $this->_group;
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user