}
- if (!empty($q['query']['project_member_of'])) {
- // this is also a flag to return if they are a member..
- DB_DataObject::debugLevel(1);
- $do = DB_DataObject::Factory('ProjectDirectory');
- $this->joinAdd('LEFT', $do);
- $this->selectAdd('ProjectDirectory.id as is_member');
-
-
- if (!empty($q['query']['project_member_filter'])) {
- $this->whereAdd('id IN (
- SELECT person_id from
- ProjectDirectory
- WHERE project_id = ' . ((int) $q['query']['project_member_of']) .')');
-
- }
-
- }