34 ilExerciseDerivedTaskProviderFactory::class,
35 ilForumDerivedTaskProviderFactory::class,
36 DerivedTaskProviderFactory::class,
37 ilBlogDerivedTaskProviderFactory::class
51 $this->provider_factories = array_map(fn ($class):
ilDerivedTaskProviderFactory =>
new $class($service), $this->default_provider_factories);
65 public function getAllProviders(
bool $active_only =
false,
int $user_id = null): array
70 $user_id = $this->service->getDependencies()->user()->getId();
73 foreach ($this->provider_factories as $provider_factory) {
74 foreach ($provider_factory->getProviders() as
$provider) {
75 if (!$active_only ||
$provider->isActive()) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilTaskService $service, $provider_factories=null)
Constructor.
Derived task providers factory.
array $default_provider_factories
getAllProviders(bool $active_only=false, int $user_id=null)
Get all task providers.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...