Example #1
0
 /**
  *
  * @param int $fromTs (=null) - GMT
  * @param int $toTs (=null) - GMT
  * @return array (of PcTrashbinTask)
  */
 public function getDeletedTasksSince($fromTs, $toTs)
 {
     $c = new Criteria();
     // this method returns only the non-deleted lists
     $listIds = $this->getAllListIds();
     // but most of the deleted lists will carry deleted tasks with them
     $deletedLists = $this->getDeletedListsSince($fromTs, $toTs);
     foreach ($deletedLists as $deletedList) {
         $listIds[] = $deletedList->getId();
     }
     $c->add(PcTrashbinTaskPeer::LIST_ID, $listIds, Criteria::IN);
     return PcTrashbinTaskPeer::getDeletedTasksSince($fromTs, $toTs, $c);
 }