mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-04 15:12:30 +00:00
add SeedDMS_Core_User->isType() and SeedDMS_Core_Group->isType()
This commit is contained in:
parent
3655f4b08c
commit
8aa7662f31
|
@ -124,6 +124,15 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
return $groups;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Check if this object is of type 'group'.
|
||||
*
|
||||
* @param string $type type of object
|
||||
*/
|
||||
public function isType($type) { /* {{{ */
|
||||
return $type == 'group';
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* @param SeedDMS_Core_DMS $dms
|
||||
*/
|
||||
|
|
|
@ -250,6 +250,15 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
return $users;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Check if this object is of type 'user'.
|
||||
*
|
||||
* @param string $type type of object
|
||||
*/
|
||||
public function isType($type) { /* {{{ */
|
||||
return $type == 'user';
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* @param SeedDMS_Core_DMS $dms
|
||||
*/
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
- add SeedDMS_Core_DatabaseAccess::hasTable()
|
||||
- add SeedDMS_Core_User->isType() and SeedDMS_Core_Group->isType()
|
||||
- add SeedDMS_Core_User->getDMS() and SeedDMS_Core_Group->getDMS()
|
||||
</notes>
|
||||
<contents>
|
||||
<dir baseinstalldir="SeedDMS" name="/">
|
||||
|
|
Loading…
Reference in New Issue
Block a user