}
-
-
- function gatherChanges($since, $uid, $ar) {
- // array contains a list of project:X repo:X ticket:X etc..
-
- $q->whereAdd("person_id != $uid"); /// unless they are commits?
-
- $q->whereAdd(implode(' OR ', $conds));
- $q->whereAdd("changedate > '$since'");
-
- // we are going to end up with a list of objects that have changed.
- // eg. a ticket or a repo..
-
- $cs_ar = $q->fetchAll();
- $ret = array();
- foreach($cs_ar as $o) {
- if (!isset($ret[$o->ontable .':'. $o->onid])) {
- $ret[$o->ontable .':'. $o->onid] = array();
- }
- $ret[$o->ontable .':'. $o->onid][] = $o->id;
- }
-
- // something later is going to use those id's to decide what to send out..
-
- return $ret;
-
-
- }
+
}