Example #1
0
 /**
  * Get formatted calendar task events
  *
  * @access public
  * @param  QueryBuilder       $queryBuilder
  * @param  string             $start
  * @param  string             $end
  * @return array
  */
 public function getTaskEvents(QueryBuilder $queryBuilder, $start, $end)
 {
     $startColumn = $this->configModel->get('calendar_project_tasks', 'date_started');
     $queryBuilder->getQuery()->addCondition($this->getCalendarCondition($this->dateParser->getTimestampFromIsoFormat($start), $this->dateParser->getTimestampFromIsoFormat($end), $startColumn, 'date_due'));
     $formatter = new TaskCalendarFormatter($this->container);
     $formatter->setColumns($startColumn, 'date_due');
     return $queryBuilder->format($formatter);
 }