Public Member Functions

ilMDUtilSelect Class Reference

Public Member Functions

 _getLanguageSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta data language selector.
 _getStructureSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta general structure selector.
 _getStatusSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta lifecycle status selector.
 _getRoleSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta lifecycle status selector.
 _getOperatingSystemSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta technical os selector.
 _getBrowserSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta technical browser selector.
 _getFormatSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta technical format selector All possible entries in meta_format are shown.
 _getDurationSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta technical duration selector All possible entries in meta_format are shown.
 _getInteractivityTypeSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational interactivity type All possible entries in meta_format are shown.
 _getLearningResourceTypeSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational learning resource type All possible entries in meta_format are shown.
 _getInteractivityLevelSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational interactivity level All possible entries in meta_format are shown.
 _getSemanticDensitySelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational semantic density All possible entries in meta_format are shown.
 _getIntendedEndUserRoleSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational intended end user role All possible entries in meta_format are shown.
 _getContextSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta context.
 _getLocationTypeSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta location type.
 _getDifficultySelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational difficulty All possible entries in meta_format are shown.
 _getTypicalAgeRangeSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational typical age range All possible entries in meta_format are shown.
 _getTypicalLearningTimeSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta educational typical learning time All possible entries in meta_format are shown.
 _getCostsSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta rights costs All possible entries in meta_format are shown.
 _getCopyrightAndOtherRestrictionsSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta rights copyright and other restrictions All possible entries in meta_format are shown.
 _getPurposeSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta rights copyright and other restrictions All possible entries in meta_format are shown.

Detailed Description

Definition at line 32 of file class.ilMDUtilSelect.php.


Member Function Documentation

ilMDUtilSelect::_getBrowserSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta technical browser selector.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 178 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilMDEditorGUI::listTechnical(), and ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Any','NetscapeCommunicator','MS-InternetExplorer','Opera','Amaya','Mozilla');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getContextSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta context.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 410 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('School','HigherEducation','Training','Other');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getCopyrightAndOtherRestrictionsSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta rights copyright and other restrictions All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 581 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Yes','No');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getCostsSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta rights costs All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 554 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Yes','No');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getDifficultySelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational difficulty All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 465 of file class.ilMDUtilSelect.php.

References $key, $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array(1 => 'VeryEasy',2 => 'Easy',3 => 'Medium',4 => 'Difficult',5 => 'VeryDifficult');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $key => $item)
                {
                        $options[$key] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getDurationSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta technical duration selector All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 241 of file class.ilMDUtilSelect.php.

References $key, $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }
                
                $items = array(15 => '15 '.$this->lng->txt('minutes'),
                                          30 => '30 '.$this->lng->txt('minutes'),
                                          45 => '45 '.$this->lng->txt('minutes'),
                                          60 => '1 '. $this->lng->txt('hour'),
                                          90 => '1 '. $this->lng->txt('hour').' 30 '.$this->lng->txt('minutes'),
                                          120 => '2 '.$this->lng->txt('hours'),
                                          180 => '3 '.$this->lng->txt('hours'),
                                          240 => '4 '.$this->lng->txt('hours'));

                foreach($items as $key => $item)
                {
                        $options[$key] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getFormatSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta technical format selector All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 205 of file class.ilMDUtilSelect.php.

References $lng, $query, $res, $row, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng,$ilDB;

                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }


                $query = "SELECT DISTINCT(format) as forma from il_meta_format ORDER BY format LIMIT 200";
                $res = $ilDB->query($query);
                if(!$res->numRows())
                {
                        return '';
                }
                while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
                {
                        if(strlen($row->forma))
                        {
                                $options[$row->forma] = substr($row->forma,0,48);
                        }
                }
                
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getIntendedEndUserRoleSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational intended end user role All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 384 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Teacher','Author','Learner','Manager');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getInteractivityLevelSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational interactivity level All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 330 of file class.ilMDUtilSelect.php.

References $key, $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array(1 => 'VeryLow',2 => 'Low',3 => 'Medium',4 => 'High',5 => 'VeryHigh');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $key => $item)
                {
                        $options[$key] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getInteractivityTypeSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational interactivity type All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 275 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Actice','Expositive','Mixed');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getLanguageSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta data language selector.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 43 of file class.ilMDUtilSelect.php.

References $lng, ilMDLanguageItem::_getPossibleLanguageCodes(), and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';

                global $lng;

                foreach(ilMDLanguageItem::_getPossibleLanguageCodes() as $code)
                {
                        $tmp_options[$code] = $lng->txt('meta_l_'.$code);
                }
                asort($tmp_options,SORT_STRING);

                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }
                $options = array_merge($options,$tmp_options);
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getLearningResourceTypeSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational learning resource type All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 302 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Exercise','Simulation','Questionnaire','Diagram','Figure','Graph','Index',
                                           'Slide','Table','NarrativeText','Exam','Experiment','ProblemStatement','SelfAssessment','Lecture');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getLocationTypeSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta location type.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 438 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilMDEditorGUI::listTechnical().

        {
                global $lng;

                $items = array('LocalFile','Reference');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getOperatingSystemSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta technical os selector.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 152 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilMDEditorGUI::listTechnical(), and ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('PC-DOS','MS-Windows','MAC-OS','Unix','Multi-OS','None');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getPurposeSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta rights copyright and other restrictions All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 608 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Discipline','Idea','Prerequisite','EducationalObjective','AccessibilityRestrictions',
                                           'EducationalLevel','SkillLevel','SecurityLevel','Competency');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getRoleSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta lifecycle status selector.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 124 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilMDEditorGUI::listLifecycle(), ilMDEditorGUI::listMetaMetaData(), and ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Author','Publisher','Unknown','Initiator','Terminator','Editor','GraphicalDesigner','TechnicalImplementer',
                                           'ContentProvider','TechnicalValidator','EducationalValidator','ScriptWriter','InstructionalDesigner',
                                           'SubjectMatterExpert','Creator','Validator');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $lng->txt('meta_'.strtolower($item));
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getSemanticDensitySelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational semantic density All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 357 of file class.ilMDUtilSelect.php.

References $key, $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array(1 => 'VeryLow',2 => 'Low',3 => 'Medium',4 => 'High',5 => 'VeryHigh');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $key => $item)
                {
                        $options[$key] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getStatusSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta lifecycle status selector.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 98 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilMDEditorGUI::listLifecycle(), and ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Draft','Final','Revised','Unavailable');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $lng->txt('meta_'.strtolower($item));
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getStructureSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta general structure selector.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 72 of file class.ilMDUtilSelect.php.

References $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                $items = array('Atomic','Collection','Networked','Hierarchical','Linear');
                
                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }

                foreach($items as $item)
                {
                        $options[$item] = $lng->txt('meta_'.strtolower($item));
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getTypicalAgeRangeSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational typical age range All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 492 of file class.ilMDUtilSelect.php.

References $key, $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }
                for($i = 1; $i < 100 ; $i++)
                {
                        $items[$i] = $i;
                }
                foreach($items as $key => $item)
                {
                        $options[$key] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilMDUtilSelect::_getTypicalLearningTimeSelect ( a_selected,
a_name,
prepend = array() 
)

Prepare a meta educational typical learning time All possible entries in meta_format are shown.

Parameters:
string Checked item
string Name of form variable.
array array(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns:
string Complete html select

Definition at line 521 of file class.ilMDUtilSelect.php.

References $key, $lng, and formSelect().

Referenced by ilAdvancedSearchGUI::showSearch().

        {
                global $lng;

                foreach($prepend as $value => $translation)
                {
                        $options[$value] = $translation;
                }
                $items = array(15 => '15 '.$this->lng->txt('minutes'),
                                          30 => '30 '.$this->lng->txt('minutes'),
                                          45 => '45 '.$this->lng->txt('minutes'),
                                          60 => '1 '. $this->lng->txt('hour'),
                                          90 => '1 '. $this->lng->txt('hour').' 30 '.$this->lng->txt('minutes'),
                                          120 => '2 '.$this->lng->txt('hours'),
                                          180 => '3 '.$this->lng->txt('hours'),
                                          240 => '4 '.$this->lng->txt('hours'));

                foreach($items as $key => $item)
                {
                        $options[$key] = $item;
                }
                return ilUtil::formSelect($a_selected,$a_name,$options,false,true);
        }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: