Exemplo n.º 1
0
 /**
  * Returns the specified events recurrences.
  *
  * @param int|string $id
  *
  * @return array|\Cartalyst\DataGrid\DataGrid
  */
 public function gridRecurrences($id)
 {
     $events = $this->event->getRecurrencesByApiId($id);
     if ($events) {
         $columns = ['start', 'end'];
         $settings = ['sort' => 'start', 'direction' => 'desc', 'threshold' => 10, 'throttle' => 11];
         return $this->event->newGrid($events, $columns, $settings);
     }
     return [];
 }