Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function generate(): Activity |
||
20 | { |
||
21 | $platformLanguageIso = api_get_language_isocode( |
||
22 | api_get_setting('platformLanguage') |
||
23 | ); |
||
24 | $platform = api_get_setting('Institution').' - '.api_get_setting('siteName'); |
||
25 | |||
26 | return new Activity( |
||
27 | IRI::fromString('http://id.tincanapi.com/activitytype/lms'), |
||
28 | new Definition( |
||
29 | LanguageMap::create([$platformLanguageIso => $platform]) |
||
30 | ) |
||
34 |