setTitle('common.tasks'); } /** * @see GridHandler::loadData() * * @return array Grid data. */ protected function loadData($request, $filter) { $user = $request->getUser(); // Get all level task notifications. $notificationDao = DAORegistry::getDAO('NotificationDAO'); /** @var NotificationDAO $notificationDao */ $notifications = $notificationDao->getByUserId($user->getId(), Notification::NOTIFICATION_LEVEL_TASK)->toArray(); // Checkbox selection requires the array keys match the notification id $notificationsForRow = []; foreach ($notifications as $notification) { $notificationsForRow[$notification->getId()] = $notification; } return $notificationsForRow; } }