38 public static function init($a_type)
43 include_once
"Services/Context/classes/class.".$class_name.
".php";
45 self::$type = $a_type;
61 case self::CONTEXT_WEB:
62 return "ilContextWeb";
64 case self::CONTEXT_CRON:
65 return "ilContextCron";
67 case self::CONTEXT_RSS:
68 return "ilContextRss";
70 case self::CONTEXT_ICAL:
71 return "ilContextIcal";
73 case self::CONTEXT_SOAP:
74 return "ilContextSoap";
76 case self::CONTEXT_WEBDAV:
77 return "ilContextWebdav";
79 case self::CONTEXT_RSS_AUTH:
80 return "ilContextRssAuth";
82 case self::CONTEXT_WEB_ACCESS_CHECK:
83 return "ilContextWebAccessCheck";
85 case self::CONTEXT_SESSION_REMINDER:
86 return "ilContextSessionReminder";
88 case self::CONTEXT_SOAP_WITHOUT_CLIENT:
89 return "ilContextSoapWithoutClient";
91 case self::CONTEXT_UNITTEST:
92 return "ilContextUnitTest";
94 case self::CONTEXT_REST:
95 return 'ilContextRest';
97 case self::CONTEXT_SCORM:
98 return 'ilContextScorm';
110 if(!self::$class_name)
114 return call_user_func(array(self::$class_name, $a_method));
127 if($ilCtrl && $ilCtrl->isAsynch())