19 declare(strict_types=1);
40 $data_helper = $DIC->learningObjectMetadata()->dataHelper();
42 $array = $data_helper->durationToArray($a_string);
48 public static function _fillHTMLMetaTags(
int $a_rbac_id,
int $a_obj_id,
string $a_type): bool
56 $ilObjDataCache = $DIC[
'ilObjDataCache'];
62 ) as $lng_code => $key_string) {
63 $tpl->setCurrentBlock(
'mh_meta_item');
64 $tpl->setVariable(
'MH_META_NAME',
'keywords');
65 $tpl->setVariable(
'MH_META_LANG', $lng_code);
66 $tpl->setVariable(
'MH_META_CONTENT', $key_string);
67 $tpl->parseCurrentBlock();
71 $tpl->setCurrentBlock(
'mh_meta_item');
72 $tpl->setVariable(
'MH_META_NAME',
'author');
73 $tpl->setVariable(
'MH_META_CONTENT', $author);
74 $tpl->parseCurrentBlock();
86 if (!$settings->isCopyrightSelectionActive()) {
99 return self::_parseCopyright(
static _LOMDurationToArray(string $a_string)
LOM datatype duration is a string like P2M4DT7H18M2S (2 months 4 days 7 hours 18 minutes 2 seconds) T...
static _parseCopyright(string $a_copyright)
Returns an empty string if copyright selection is not active, regardless of input.
static _getKeywordsByLanguageAsString(int $a_rbac_id, int $a_obj_id, string $a_type)
static _getDefaultCopyright()
Returns an empty string if copyright selection is not active.
static _fillHTMLMetaTags(int $a_rbac_id, int $a_obj_id, string $a_type)
static isEntry($a_cp_string)
static _lookupAuthors(int $a_rbac_id, int $a_obj_id, string $a_obj_type)
static _lookupCopyright(string $a_cp_string)
static createIdentifier(int $a_entry_id)