44 $a_string = trim($a_string);
45 #$pattern = '/^(PT)?(\d{1,2}H)?(\d{1,2}M)?(\d{1,2}S)?$/i';
46 $pattern =
'/^P(\d{1,2}M)?(\d{1,2}D)?(T(\d{1,2}H)?(\d{1,2}M)?(\d{1,2}S)?)?$/i';
48 if(!preg_match($pattern,$a_string,$matches))
53 if(preg_match(
'/^P(\d+)M/i',$a_string,$matches))
55 $months = $matches[1];
58 if(preg_match(
'/(\d+)+D/i',$a_string,$matches))
60 #var_dump("<pre>",$matches,"<pre>");
64 if(preg_match(
'/(\d+)+H/i',$a_string,$matches))
66 #var_dump("<pre>",$matches,"<pre>");
69 if(preg_match(
'/T(\d{1,2}H)?(\d+)M/i',$a_string,$matches))
71 #var_dump("<pre>",$matches,"<pre>");
74 if(preg_match(
'/(\d+)S/i',$a_string,$matches))
76 #var_dump("<pre>",$matches,"<pre>");
81 if(!$months and !$days and !$hours and !$min and !$sec)
86 return array($months,$days,$hours,$min,$sec);
101 global
$tpl,$ilObjDataCache;
103 include_once(
'Services/MetaData/classes/class.ilMDKeyword.php');
106 $tpl->setCurrentBlock(
'mh_meta_item');
107 $tpl->setVariable(
'MH_META_NAME',
'keywords');
108 $tpl->setVariable(
'MH_META_LANG',$lng_code);
109 $tpl->setVariable(
'MH_META_CONTENT',$key_string);
110 $tpl->parseCurrentBlock();
112 include_once(
'Services/MetaData/classes/class.ilMDContribute.php');
115 $tpl->setCurrentBlock(
'mh_meta_item');
116 $tpl->setVariable(
'MH_META_NAME',
'author');
117 $tpl->setVariable(
'MH_META_CONTENT',$author);
118 $tpl->parseCurrentBlock();
134 include_once(
'Services/MetaData/classes/class.ilMDSettings.php');
136 if(!$settings->isCopyrightSelectionActive())
140 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');