projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96eb7ef
)
DataObjects/Events.php
author
KH Lau
<khlau@roojs.com>
Mon, 30 Oct 2017 05:09:00 +0000
(13:09 +0800)
committer
KH Lau
<khlau@roojs.com>
Mon, 30 Oct 2017 05:09:00 +0000
(13:09 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
a3decdb
..
25ff519
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-254,6
+254,10
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
}
}
+ if (!isset($q['_who'])) {
+ //$this->autoJoinExtra();
+ }
+
// since roo does not support autojoin yet..
if (!isset($q['_distinct'])) {
//$this->autoJoinExtra();
// since roo does not support autojoin yet..
if (!isset($q['_distinct'])) {
//$this->autoJoinExtra();
@@
-714,4
+718,20
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
$this->selectAdd('join_person_id_id.email as email');
}
$this->selectAdd('join_person_id_id.email as email');
}
+
+ function autoJoinExtData()
+ {
+ $this->_join .= "LEFT JOIN
+ ext_data AS ext_data_id
+ ON
+ Events.modx_users_id = ext_data_id.userdata_id";
+ }
+
+ function autoJoinCorePerson()
+ {
+ $this->_join .= "LEFT JOIN
+ core_person AS core_person_id
+ ON
+ Events.person_id = core_person_id.id";
+ }
}
}