ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilUserActionProviderFactory.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
13 {
14  protected static $providers = array(
15  array (
16  "component" => "Services/Contact/BuddySystem",
17  "class" => "ilContactUserActionProvider"
18  ),
19  array (
20  "component" => "Services/User/Actions",
21  "class" => "ilMailUserActionProvider"
22  ),
23  array (
24  "component" => "Services/User/Actions",
25  "class" => "ilUserUserActionProvider"
26  ),
27  array (
28  "component" => "Services/User/Actions",
29  "class" => "ilWorkspaceUserActionProvider"
30  ),
31  array (
32  "component" => "Services/User/Actions",
33  "class" => "ilChatUserActionProvider"
34  )
35 
36  );
37 
43  static function getAllProviders()
44  {
45  $providers = array();
46 
47  foreach (self::$providers as $p)
48  {
49  $dir = (isset($p["dir"]))
50  ? $p["dir"]
51  : "classes";
52  include_once("./".$p["component"]."/".$dir."/class.".$p["class"].".php");
53  $providers[] = new $p["class"]();
54  }
55 
56  return $providers;
57  }
58 
59 }
60 
61 ?>
Factory for user action providers.
static getAllProviders()
Get all action providers.
Create styles array
The data for the language used.