added uuid and ugid
This commit is contained in:
parent
4894f690f1
commit
c7a2c4390e
2 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,10 @@ class Group extends DatabaseObject {
|
|||
return $groups;
|
||||
}
|
||||
|
||||
public static function getByUgid($uuid) {
|
||||
return current(self::getByFilter(array('ugid' => $ugid)));
|
||||
}
|
||||
|
||||
public function getUsers($recursive = false) {
|
||||
$groups[$this->id] = $this;
|
||||
if ($recursive === true) {
|
||||
|
|
|
@ -28,6 +28,10 @@ class User extends DatabaseObject {
|
|||
/*
|
||||
* simple self::getByFilter() wrapper
|
||||
*/
|
||||
public static function getByUuid($uuid) {
|
||||
return current(self::getByFilter(array('uuid' => $uuid)));
|
||||
}
|
||||
|
||||
public static function getByEMail($email) {
|
||||
return current(self::getByFilter(array('email' => $email)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue