add SeedDMS_Core_User->isType() and SeedDMS_Core_Group->isType()

This commit is contained in:
Uwe Steinmann 2021-01-29 10:33:09 +01:00
parent 3655f4b08c
commit 8aa7662f31
3 changed files with 20 additions and 0 deletions

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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="/">