/** * * @param int $fromTs (=null) - GMT * @param int $toTs (=null) - GMT * @param int $taskId (=null) * @param int $listId (=null) * @param int $tagId (=null) * @param bool $completed (=false) * @param bool $onlyWithDueDate (=false) * @param bool $onlyWithoutDueDate (=false) * @param bool $onlyDueTodayOrTomorrow (=false) * @param bool $onlyStarred (=false) * @param string $byDate (=null) - in the format yyyy-mm-dd * @return array of PcTask */ public function getTasksByMultipleCriteria($fromTs = null, $toTs = null, $taskId = null, $listId = null, $tagId = null, $completed = false, $onlyWithDueDate = false, $onlyWithoutDueDate = false, $onlyDueTodayOrTomorrow = false, $onlyStarred = false, $byDate = null) { $c = new Criteria(); $c->addJoin(PcTaskPeer::LIST_ID, PcListPeer::ID, Criteria::INNER_JOIN); $c->add(PcListPeer::CREATOR_ID, $this->getId()); return PcTaskPeer::getTasksByMultipleCriteria($fromTs, $toTs, $taskId, $listId, $tagId, $completed, $onlyWithDueDate, $onlyWithoutDueDate, $onlyDueTodayOrTomorrow, $onlyStarred, $byDate, $c); }