19 declare(strict_types=1);
39 array $prepend = array(),
40 bool $a_options_only =
false 47 $tmp_options[$code] =
$lng->txt(
'meta_l_' . $code);
49 asort($tmp_options, SORT_STRING);
52 foreach ($prepend as $value => $translation) {
53 $options[$value] = $translation;
55 $options = array_merge($options, $tmp_options);
76 array $prepend = array(),
77 bool $a_options_only =
false 83 $items = array(
'Atomic',
'Collection',
'Networked',
'Hierarchical',
'Linear');
85 foreach ($prepend as $value => $translation) {
86 $options[$value] = $translation;
89 foreach ($items as $item) {
90 $options[$item] =
$lng->txt(
'meta_' . strtolower($item));
112 array $prepend = array(),
113 bool $a_options_only =
false 119 $items = array(
'Draft',
'Final',
'Revised',
'Unavailable');
121 foreach ($prepend as $value => $translation) {
122 $options[$value] = $translation;
125 foreach ($items as $item) {
126 $options[$item] =
$lng->txt(
'meta_' . strtolower($item));
148 array $prepend = array(),
149 bool $a_options_only =
false 163 'TechnicalImplementer',
165 'TechnicalValidator',
166 'EducationalValidator',
168 'InstructionalDesigner',
169 'SubjectMatterExpert',
175 foreach ($prepend as $value => $translation) {
176 $options[$value] = $translation;
179 foreach ($items as $item) {
180 $options[$item] =
$lng->txt(
'meta_' . strtolower($item));
202 array $prepend = array(),
203 bool $a_options_only =
false 209 $items = array(
'PC-DOS',
'MS-Windows',
'MAC-OS',
'Unix',
'Multi-OS',
'None');
211 foreach ($prepend as $value => $translation) {
212 $options[$value] = $translation;
215 foreach ($items as $item) {
216 $options[$item] = $item;
238 array $prepend = array(),
239 bool $a_options_only =
false 245 $items = array(
'Any',
'NetscapeCommunicator',
'MS-InternetExplorer',
'Opera',
'Amaya',
'Mozilla');
247 foreach ($prepend as $value => $translation) {
248 $options[$value] = $translation;
251 foreach ($items as $item) {
252 $options[$item] = $item;
274 array $prepend = array(),
275 bool $a_options_only =
false 280 $ilDB = $DIC[
'ilDB'];
283 foreach ($prepend as $value => $translation) {
284 $options[$value] = $translation;
287 $ilDB->setLimit(200, 0);
290 $query =
"SELECT format AS forma from il_meta_format GROUP BY format";
292 if (!
$res->numRows()) {
297 if (is_string($row->forma) && $row->forma !==
'') {
298 $options[$row->forma] = substr($row->forma, 0, 48);
318 public static function _getDurationSelect(
string $a_selected,
string $a_name, array $prepend = array()): string
324 foreach ($prepend as $value => $translation) {
325 $options[$value] = $translation;
329 15 =>
'15 ' .
$lng->txt(
'minutes'),
330 30 =>
'30 ' .
$lng->txt(
'minutes'),
331 45 =>
'45 ' .
$lng->txt(
'minutes'),
332 60 =>
'1 ' .
$lng->txt(
'hour'),
333 90 =>
'1 ' .
$lng->txt(
'hour') .
' 30 ' .
$lng->txt(
'minutes'),
334 120 =>
'2 ' .
$lng->txt(
'hours'),
335 180 =>
'3 ' .
$lng->txt(
'hours'),
336 240 =>
'4 ' .
$lng->txt(
'hours')
339 foreach ($items as $key => $item) {
340 $options[$key] = $item;
355 array $prepend = array(),
356 bool $a_options_only =
false 362 $items = array(
'Actice',
'Expositive',
'Mixed');
364 foreach ($prepend as $value => $translation) {
365 $options[$value] = $translation;
368 foreach ($items as $item) {
369 $options[$item] = $item;
392 array $prepend = array(),
393 bool $a_options_only =
false 417 foreach ($prepend as $value => $translation) {
418 $options[$value] = $translation;
421 foreach ($items as $item) {
422 $options[$item] = $item;
447 array $prepend = array(),
448 bool $a_options_only =
false 454 $items = array(1 =>
'VeryLow', 2 =>
'Low', 3 =>
'Medium', 4 =>
'High', 5 =>
'VeryHigh');
456 foreach ($prepend as $value => $translation) {
457 $options[$value] = $translation;
460 foreach ($items as $key => $item) {
461 $options[$key] = $item;
486 array $prepend = array(),
487 bool $a_options_only =
false 493 $items = array(1 =>
'VeryLow', 2 =>
'Low', 3 =>
'Medium', 4 =>
'High', 5 =>
'VeryHigh');
495 foreach ($prepend as $value => $translation) {
496 $options[$value] = $translation;
499 foreach ($items as $key => $item) {
500 $options[$key] = $item;
523 array $prepend = array(),
524 bool $a_options_only =
false 530 $items = array(
'Teacher',
'Author',
'Learner',
'Manager');
532 foreach ($prepend as $value => $translation) {
533 $options[$value] = $translation;
536 foreach ($items as $item) {
537 $options[$item] = $item;
559 array $prepend = array(),
560 bool $a_options_only =
false 566 $items = array(
'School',
'HigherEducation',
'Training',
'Other');
568 foreach ($prepend as $value => $translation) {
569 $options[$value] = $translation;
572 foreach ($items as $item) {
573 $options[$item] = $item;
596 $items = array(
'LocalFile',
'Reference');
598 foreach ($prepend as $value => $translation) {
599 $options[$value] = $translation;
602 foreach ($items as $item) {
603 $options[$item] = $item;
620 array $prepend = array(),
621 bool $a_options_only =
false 627 $items = array(1 =>
'VeryEasy', 2 =>
'Easy', 3 =>
'Medium', 4 =>
'Difficult', 5 =>
'VeryDifficult');
629 foreach ($prepend as $value => $translation) {
630 $options[$value] = $translation;
633 foreach ($items as $key => $item) {
634 $options[$key] = $item;
655 array $prepend = array()
662 foreach ($prepend as $value => $translation) {
663 $options[$value] = $translation;
666 for ($i = 1; $i < 100; $i++) {
669 foreach ($items as $key => $item) {
670 $options[$key] = $item;
683 array $prepend = array()
689 foreach ($prepend as $value => $translation) {
690 $options[$value] = $translation;
693 15 =>
'15 ' .
$lng->txt(
'minutes'),
694 30 =>
'30 ' .
$lng->txt(
'minutes'),
695 45 =>
'45 ' .
$lng->txt(
'minutes'),
696 60 =>
'1 ' .
$lng->txt(
'hour'),
697 90 =>
'1 ' .
$lng->txt(
'hour') .
' 30 ' .
$lng->txt(
'minutes'),
698 120 =>
'2 ' .
$lng->txt(
'hours'),
699 180 =>
'3 ' .
$lng->txt(
'hours'),
700 240 =>
'4 ' .
$lng->txt(
'hours')
703 foreach ($items as $key => $item) {
704 $options[$key] = $item;
719 array $prepend = array(),
720 bool $a_options_only =
false 726 $items = array(
'Yes',
'No');
728 foreach ($prepend as $value => $translation) {
729 $options[$value] = $translation;
732 foreach ($items as $item) {
733 $options[$item] = $item;
756 array $prepend = array(),
757 bool $a_options_only =
false 763 $items = array(
'Yes',
'No');
765 foreach ($prepend as $value => $translation) {
766 $options[$value] = $translation;
769 foreach ($items as $item) {
770 $options[$item] = $item;
793 array $prepend = array(),
794 bool $a_options_only =
false 804 'EducationalObjective',
805 'AccessibilityRestrictions',
812 foreach ($prepend as $value => $translation) {
813 $options[$value] = $translation;
816 foreach ($items as $item) {
817 $options[$item] = $item;
static _getOperatingSystemSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta technical os selector.
static _getCopyrightAndOtherRestrictionsSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta rights copyright and other restrictions All possible entries in meta_format are shown...
static _getPurposeSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta rights copyright and other restrictions All possible entries in meta_format are shown...
static _getBrowserSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta technical browser selector.
static _getLearningResourceTypeSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta educational learning resource type All possible entries in meta_format are shown...
static _getTypicalAgeRangeSelect(string $a_selected, string $a_name, array $prepend=array())
Prepare a meta educational typical age range All possible entries in meta_format are shown...
static _getSemanticDensitySelect( $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta educational semantic density All possible entries in meta_format are shown...
static _getStatusSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta lifecycle status selector.
static _getLocationTypeSelect(string $a_selected, string $a_name, array $prepend=array())
Prepare a meta location type.
static _getDifficultySelect( $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta educational difficulty All possible entries in meta_format are shown.
static _getCostsSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta rights costs All possible entries in meta_format are shown.
static _getPossibleLanguageCodes()
static _getDurationSelect(string $a_selected, string $a_name, array $prepend=array())
Prepare a meta technical duration selector All possible entries in meta_format are shown...
static _getStructureSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta general structure selector.
static _getInteractivityLevelSelect( $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta educational interactivity level All possible entries in meta_format are shown...
static _getLanguageSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta data language selector.
static _getIntendedEndUserRoleSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta educational intended end user role All possible entries in meta_format are shown...
static _getRoleSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta lifecycle status selector.
static _getContextSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta context.
static _getFormatSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta technical format selector All possible entries in meta_format are shown.
static _getInteractivityTypeSelect(string $a_selected, string $a_name, array $prepend=array(), bool $a_options_only=false)
Prepare a meta educational interactivity type All possible entries in meta_format are shown...
static _getTypicalLearningTimeSelect(string $a_selected, string $a_name, array $prepend=array())
Prepare a meta educational typical learning time All possible entries in meta_format are shown...