37 public static function init($a_type)
42 include_once
"Services/Context/classes/class.".$class_name.
".php";
44 self::$type = $a_type;
60 case self::CONTEXT_WEB:
61 return "ilContextWeb";
63 case self::CONTEXT_CRON:
64 return "ilContextCron";
66 case self::CONTEXT_RSS:
67 return "ilContextRss";
69 case self::CONTEXT_ICAL:
70 return "ilContextIcal";
72 case self::CONTEXT_SOAP:
73 return "ilContextSoap";
75 case self::CONTEXT_WEBDAV:
76 return "ilContextWebdav";
78 case self::CONTEXT_RSS_AUTH:
79 return "ilContextRssAuth";
81 case self::CONTEXT_WEB_ACCESS_CHECK:
82 return "ilContextWebAccessCheck";
84 case self::CONTEXT_SESSION_REMINDER:
85 return "ilContextSessionReminder";
87 case self::CONTEXT_SOAP_WITHOUT_CLIENT:
88 return "ilContextSoapWithoutClient";
90 case self::CONTEXT_UNITTEST:
91 return "ilContextUnitTest";
93 case self::CONTEXT_REST:
94 return 'ilContextRest';
106 if(!self::$class_name)
110 return call_user_func(array(self::$class_name, $a_method));
123 if($ilCtrl && $ilCtrl->isAsynch())