ILIAS  release_7 Revision v7.30-3-g800a261c036
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 array(
36 "component" => "Modules/Group/UserActions",
37 "class" => "ilGroupUserActionProvider"
38 )
39
40 );
41
47 public static function getAllProviders()
48 {
49 $providers = array();
50
51 foreach (self::$providers as $p) {
52 $dir = (isset($p["dir"]))
53 ? $p["dir"]
54 : "classes";
55 include_once("./" . $p["component"] . "/" . $dir . "/class." . $p["class"] . ".php");
56 $providers[] = new $p["class"]();
57 }
58
59 return $providers;
60 }
61}
An exception for terminatinating execution or to throw for unit testing.
Factory for user action providers.
static getAllProviders()
Get all action providers.