37 $nr_buckets = count($this->dic->backgroundTasks()->persistence()->getBucketIdsOfUser($this->dic->user()->getId()));
38 if ($nr_buckets === 0) {
42 $this->dic->ui()->mainTemplate()->addJavaScript(
"./Services/BackgroundTasks/js/background_task_refresh.js");
43 $this->dic->language()->loadLanguageModule(
'background_tasks');
50 $group =
$factory->standardGroup(
$id(
'bg_task_bucket_group'))
51 ->withTitle($this->
txt(
'background_tasks'))
53 $factory->standard($id(
'bg_task_bucket'))
54 ->withNotificationItem($item_source->getNotificationItem($nr_buckets))
64 private function txt(
string $id): string
66 return $this->dic->language()->txt($id);
Interface AbstractNotificationProvider.
Interface IdentificationInterface.
Class BTNotificationProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface NotificationProvider.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins