ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ProviderFactory.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\Awareness\User;
20 
22 
28 {
32  protected static array $providers = array(
33  array(
34  "component" => "components/ILIAS/Contact/BuddySystem",
35  "class" => "ilAwarenessUserProviderContactRequests"
36  ),
37  array(
38  "component" => "components/ILIAS/Awareness",
39  "class" => "\ILIAS\Awareness\User\ProviderSystemContacts"
40  ),
41  array(
42  "component" => "components/ILIAS/Awareness",
43  "class" => "\ILIAS\Awareness\User\ProviderCourseContacts"
44  ),
45  array(
46  "component" => "components/ILIAS/Awareness",
47  "class" => "\ILIAS\Awareness\User\ProviderCurrentCourse"
48  ),
49  array(
50  "component" => "components/ILIAS/Contact/BuddySystem",
51  "class" => "ilAwarenessUserProviderApprovedContacts"
52  ),
53  array(
54  "component" => "components/ILIAS/Awareness",
55  "class" => "\ILIAS\Awareness\User\ProviderMemberships"
56  ),
57  array(
58  "component" => "components/ILIAS/Awareness",
59  "class" => "\ILIAS\Awareness\User\ProviderAllUsers"
60  )
61  );
62  protected Container $dic;
63 
64  public function __construct(Container $DIC)
65  {
66  $this->dic = $DIC;
67  }
68 
73  public function getAllProviders(): array
74  {
75  $providers = array();
76 
77  foreach (self::$providers as $p) {
78  $providers[] = new $p["class"]($this->dic);
79  }
80 
81  return $providers;
82  }
83 }
getAllProviders()
Get all awareness providers.
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$dic
Definition: result.php:31