projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6cd6488
)
DataObjects/Core_group.php
author
Edward
<edward@roojs.com>
Tue, 18 Sep 2018 06:02:46 +0000
(14:02 +0800)
committer
Edward
<edward@roojs.com>
Tue, 18 Sep 2018 06:02:46 +0000
(14:02 +0800)
DataObjects/Core_group.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_group.php
b/DataObjects/Core_group.php
index
48285a2
..
9932a4f
100644
(file)
--- a/
DataObjects/Core_group.php
+++ b/
DataObjects/Core_group.php
@@
-55,6
+55,20
@@
class Pman_Core_DataObjects_Core_group extends DB_DataObject
}
}
}
}
+ if(!empty($q['_is_in_group'])){
+ $this->selectAdd("
+ COALESCE(
+ (SELECT id from core_group_member
+ WHERE
+ user_id = {$q['_is_in_group']}
+ AND
+ group_id = {$this->tableName()}.id
+ LIMIT 1
+ ),0) as group_membership_user_id
+ ");
+ }
+
+
$cp = DB_DataObject::Factory('core_person')->tableName();
$cgm = DB_DataObject::Factory('core_group_member')->tableName();
$cp = DB_DataObject::Factory('core_person')->tableName();
$cgm = DB_DataObject::Factory('core_group_member')->tableName();
@@
-75,11
+89,6
@@
class Pman_Core_DataObjects_Core_group extends DB_DataObject
");
}
");
}
-
- function toRooArray($q)
- {
- print_R($this);exit;
- }
function toEventString() {
return $this->name;
function toEventString() {
return $this->name;