17 const COMPLETED =
'http://adlnet.gov/expapi/verbs/completed';
18 const PASSED =
'http://adlnet.gov/expapi/verbs/passed';
19 const FAILED =
'http://adlnet.gov/expapi/verbs/failed';
20 const SATISFIED =
'http://adlnet.gov/expapi/verbs/satisfied';
21 const PROGRESSED =
'http://adlnet.gov/expapi/verbs/progressed';
22 const EXPERIENCED =
'http://adlnet.gov/expapi/verbs/experienced';
28 'http://adlnet.gov/expapi/verbs/abandoned',
29 'http://adlnet.gov/expapi/verbs/answered',
30 'http://adlnet.gov/expapi/verbs/asked',
31 'http://adlnet.gov/expapi/verbs/attempted',
32 'http://adlnet.gov/expapi/verbs/attended',
33 'http://adlnet.gov/expapi/verbs/commented',
34 'http://adlnet.gov/expapi/verbs/completed',
35 'http://adlnet.gov/expapi/verbs/exited',
36 'http://adlnet.gov/expapi/verbs/experienced',
37 'http://adlnet.gov/expapi/verbs/failed',
38 'http://adlnet.gov/expapi/verbs/imported',
39 'http://adlnet.gov/expapi/verbs/initialized',
40 'http://adlnet.gov/expapi/verbs/interacted',
41 'http://adlnet.gov/expapi/verbs/launched',
42 'http://adlnet.gov/expapi/verbs/mastered',
43 'http://adlnet.gov/expapi/verbs/passed',
44 'http://adlnet.gov/expapi/verbs/preferred',
45 'http://adlnet.gov/expapi/verbs/progressed',
46 'http://adlnet.gov/expapi/verbs/registered',
47 'http://adlnet.gov/expapi/verbs/responded',
48 'http://adlnet.gov/expapi/verbs/resumed',
49 'http://adlnet.gov/expapi/verbs/satisfied',
50 'http://adlnet.gov/expapi/verbs/scored',
51 'http://adlnet.gov/expapi/verbs/shared',
52 'http://adlnet.gov/expapi/verbs/suspended',
53 'http://adlnet.gov/expapi/verbs/terminated',
54 'http://adlnet.gov/expapi/verbs/voided' 72 return 'http://adlnet.gov/expapi/verbs/' . $verb;
83 '' => $DIC->language()->txt(
'cmix_all_verbs')
86 foreach (
$verbs as $verb) {
88 $options[urlencode($verb)] = self::getVerbTranslation(
105 '' => $DIC->language()->txt(
'cmix_all_verbs')
108 foreach ($this->verbs as $verb) {
109 $options[urlencode($verb)] = self::getVerbTranslation(
125 $verbMatch = preg_match(
'/\/([^\/]+)$/', $verb, $matches);
126 $shortVerb = $matches[1];
127 $langVar = preg_replace(
'/http(s)?:\/\//',
'', $verb);
128 $langVar = str_replace(
'.',
'', $langVar);
129 $langVar = str_replace(
'/',
'_', $langVar);
130 $langVar =
'cmix_' . $langVar;
131 $translatedVerb = $lng->
txt($langVar);
133 if (strpos($translatedVerb,
'-cmix_') === 0) {
136 return $translatedVerb;
getDynamicSelectOptions($verbs)
static getVerbTranslation(ilLanguage $lng, $verb)
txt($a_topic, $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...