45 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
51 $tmp_options[$code] = $lng->txt(
'meta_l_'.$code);
53 asort($tmp_options,SORT_STRING);
55 foreach($prepend as $value => $translation)
57 $options[$value] = $translation;
59 $options = array_merge($options,$tmp_options);
76 $items = array(
'Atomic',
'Collection',
'Networked',
'Hierarchical',
'Linear');
78 foreach($prepend as $value => $translation)
80 $options[$value] = $translation;
83 foreach($items as $item)
85 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
102 $items = array(
'Draft',
'Final',
'Revised',
'Unavailable');
104 foreach($prepend as $value => $translation)
106 $options[$value] = $translation;
109 foreach($items as $item)
111 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
128 $items = array(
'Author',
'Publisher',
'Unknown',
'Initiator',
'Terminator',
'Editor',
'GraphicalDesigner',
'TechnicalImplementer',
129 'ContentProvider',
'TechnicalValidator',
'EducationalValidator',
'ScriptWriter',
'InstructionalDesigner',
130 'SubjectMatterExpert',
'Creator',
'Validator');
132 foreach($prepend as $value => $translation)
134 $options[$value] = $translation;
137 foreach($items as $item)
139 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
156 $items = array(
'PC-DOS',
'MS-Windows',
'MAC-OS',
'Unix',
'Multi-OS',
'None');
158 foreach($prepend as $value => $translation)
160 $options[$value] = $translation;
163 foreach($items as $item)
165 $options[$item] = $item;
182 $items = array(
'Any',
'NetscapeCommunicator',
'MS-InternetExplorer',
'Opera',
'Amaya',
'Mozilla');
184 foreach($prepend as $value => $translation)
186 $options[$value] = $translation;
189 foreach($items as $item)
191 $options[$item] = $item;
209 foreach($prepend as $value => $translation)
211 $options[$value] = $translation;
217 $query =
"SELECT format as forma from il_meta_format GROUP BY format LIMIT 200";
218 $res = $ilDB->query($query);
225 if(strlen($row->forma))
227 $options[$row->forma] = substr($row->forma,0,48);
247 foreach($prepend as $value => $translation)
249 $options[$value] = $translation;
252 $items = array(15 =>
'15 '.$this->lng->txt(
'minutes'),
253 30 =>
'30 '.$this->lng->txt(
'minutes'),
254 45 =>
'45 '.$this->lng->txt(
'minutes'),
255 60 =>
'1 '. $this->lng->txt(
'hour'),
256 90 =>
'1 '. $this->lng->txt(
'hour').
' 30 '.$this->lng->txt(
'minutes'),
257 120 =>
'2 '.$this->lng->txt(
'hours'),
258 180 =>
'3 '.$this->lng->txt(
'hours'),
259 240 =>
'4 '.$this->lng->txt(
'hours'));
261 foreach($items as $key => $item)
263 $options[$key] = $item;
281 $items = array(
'Actice',
'Expositive',
'Mixed');
283 foreach($prepend as $value => $translation)
285 $options[$value] = $translation;
288 foreach($items as $item)
290 $options[$item] = $item;
308 $items = array(
'Exercise',
'Simulation',
'Questionnaire',
'Diagram',
'Figure',
'Graph',
'Index',
309 'Slide',
'Table',
'NarrativeText',
'Exam',
'Experiment',
'ProblemStatement',
'SelfAssessment',
'Lecture');
311 foreach($prepend as $value => $translation)
313 $options[$value] = $translation;
316 foreach($items as $item)
318 $options[$item] = $item;
336 $items = array(1 =>
'VeryLow',2 =>
'Low',3 =>
'Medium',4 =>
'High',5 =>
'VeryHigh');
338 foreach($prepend as $value => $translation)
340 $options[$value] = $translation;
343 foreach($items as $key => $item)
345 $options[$key] = $item;
363 $items = array(1 =>
'VeryLow',2 =>
'Low',3 =>
'Medium',4 =>
'High',5 =>
'VeryHigh');
365 foreach($prepend as $value => $translation)
367 $options[$value] = $translation;
370 foreach($items as $key => $item)
372 $options[$key] = $item;
390 $items = array(
'Teacher',
'Author',
'Learner',
'Manager');
392 foreach($prepend as $value => $translation)
394 $options[$value] = $translation;
397 foreach($items as $item)
399 $options[$item] = $item;
416 $items = array(
'School',
'HigherEducation',
'Training',
'Other');
418 foreach($prepend as $value => $translation)
420 $options[$value] = $translation;
423 foreach($items as $item)
425 $options[$item] = $item;
444 $items = array(
'LocalFile',
'Reference');
446 foreach($prepend as $value => $translation)
448 $options[$value] = $translation;
451 foreach($items as $item)
453 $options[$item] = $item;
471 $items = array(1 =>
'VeryEasy',2 =>
'Easy',3 =>
'Medium',4 =>
'Difficult',5 =>
'VeryDifficult');
473 foreach($prepend as $value => $translation)
475 $options[$value] = $translation;
478 foreach($items as $key => $item)
480 $options[$key] = $item;
498 foreach($prepend as $value => $translation)
500 $options[$value] = $translation;
502 for($i = 1; $i < 100 ; $i++)
506 foreach($items as $key => $item)
508 $options[$key] = $item;
527 foreach($prepend as $value => $translation)
529 $options[$value] = $translation;
531 $items = array(15 =>
'15 '.$this->lng->txt(
'minutes'),
532 30 =>
'30 '.$this->lng->txt(
'minutes'),
533 45 =>
'45 '.$this->lng->txt(
'minutes'),
534 60 =>
'1 '. $this->lng->txt(
'hour'),
535 90 =>
'1 '. $this->lng->txt(
'hour').
' 30 '.$this->lng->txt(
'minutes'),
536 120 =>
'2 '.$this->lng->txt(
'hours'),
537 180 =>
'3 '.$this->lng->txt(
'hours'),
538 240 =>
'4 '.$this->lng->txt(
'hours'));
540 foreach($items as $key => $item)
542 $options[$key] = $item;
560 $items = array(
'Yes',
'No');
562 foreach($prepend as $value => $translation)
564 $options[$value] = $translation;
567 foreach($items as $item)
569 $options[$item] = $item;
587 $items = array(
'Yes',
'No');
589 foreach($prepend as $value => $translation)
591 $options[$value] = $translation;
594 foreach($items as $item)
596 $options[$item] = $item;
614 $items = array(
'Discipline',
'Idea',
'Prerequisite',
'EducationalObjective',
'AccessibilityRestrictions',
615 'EducationalLevel',
'SkillLevel',
'SecurityLevel',
'Competency');
617 foreach($prepend as $value => $translation)
619 $options[$value] = $translation;
622 foreach($items as $item)
624 $options[$item] = $item;