mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
add $_comment as protected var, add some more documentation
This commit is contained in:
parent
f6c9b35def
commit
398244ab68
|
@ -36,6 +36,13 @@ class SeedDMS_Core_Group { /* {{{ */
|
||||||
*/
|
*/
|
||||||
protected $_name;
|
protected $_name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The comment of the user group
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $_comment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Back reference to DMS this user group belongs to
|
* Back reference to DMS this user group belongs to
|
||||||
*
|
*
|
||||||
|
@ -145,8 +152,14 @@ class SeedDMS_Core_Group { /* {{{ */
|
||||||
return true;
|
return true;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
// $asManager=false: verify if user is in group
|
/**
|
||||||
// $asManager=true : verify if user is in group as manager
|
* Check if user is member of group
|
||||||
|
*
|
||||||
|
* @param object $user user to be checked
|
||||||
|
* @param boolean $asManager also check whether user is manager of group if
|
||||||
|
* set to true, otherwise does not care about manager status
|
||||||
|
* @return boolean true if user is member, otherwise false
|
||||||
|
*/
|
||||||
function isMember($user,$asManager=false) { /* {{{ */
|
function isMember($user,$asManager=false) { /* {{{ */
|
||||||
if (isset($this->_users)&&!$asManager) {
|
if (isset($this->_users)&&!$asManager) {
|
||||||
foreach ($this->_users as $usr)
|
foreach ($this->_users as $usr)
|
||||||
|
@ -167,6 +180,12 @@ class SeedDMS_Core_Group { /* {{{ */
|
||||||
return true;
|
return true;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Toggle manager status of user
|
||||||
|
*
|
||||||
|
* @param object $user
|
||||||
|
* @return boolean true if operation was successful, otherwise false
|
||||||
|
*/
|
||||||
function toggleManager($user) { /* {{{ */
|
function toggleManager($user) { /* {{{ */
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user