ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMDUtilSelect Class Reference
+ Collaboration diagram for ilMDUtilSelect:

Public Member Functions

 _getLanguageSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta data language selector.
 _getStructureSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta general structure selector.
 _getStatusSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta lifecycle status selector.
 _getRoleSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta lifecycle status selector.
 _getOperatingSystemSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta technical os selector.
 _getBrowserSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta technical browser selector.
 _getFormatSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 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(), $a_options_only=false)
 Prepare a meta educational interactivity type All possible entries in meta_format are shown.
 _getLearningResourceTypeSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta educational learning resource type All possible entries in meta_format are shown.
 _getInteractivityLevelSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta educational interactivity level All possible entries in meta_format are shown.
 _getSemanticDensitySelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta educational semantic density All possible entries in meta_format are shown.
 _getIntendedEndUserRoleSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta educational intended end user role All possible entries in meta_format are shown.
 _getContextSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta context.
 _getLocationTypeSelect ($a_selected, $a_name, $prepend=array())
 Prepare a meta location type.
 _getDifficultySelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 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(), $a_options_only=false)
 Prepare a meta rights costs All possible entries in meta_format are shown.
 _getCopyrightAndOtherRestrictionsSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 Prepare a meta rights copyright and other restrictions All possible entries in meta_format are shown.
 _getPurposeSelect ($a_selected, $a_name, $prepend=array(), $a_options_only=false)
 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(),
  $a_options_only = false 
)

Prepare a meta technical browser selector.

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement(), and ilMDEditorGUI\listTechnical().

{
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;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

Prepare a meta context.

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
global $lng;
$items = array('School','HigherEducation','Training','Other');
foreach($prepend as $value => $translation)
{
$options[$value] = $translation;
}
foreach($items as $item)
{
$options[$item] = $item;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
global $lng;
$items = array('Yes','No');
foreach($prepend as $value => $translation)
{
$options[$value] = $translation;
}
foreach($items as $item)
{
$options[$item] = $item;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
global $lng;
$items = array('Yes','No');
foreach($prepend as $value => $translation)
{
$options[$value] = $translation;
}
foreach($items as $item)
{
$options[$item] = $item;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement(), and ilLuceneAdvancedSearchFields\parseFieldQuery().

{
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;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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
stringChecked item
stringName of form variable.
arrayarray(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns
string Complete html select

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

References $lng, and formSelect().

{
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:

ilMDUtilSelect::_getFormatSelect (   $a_selected,
  $a_name,
  $prepend = array(),
  $a_options_only = false 
)

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

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

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

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

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
global $lng,$ilDB;
foreach($prepend as $value => $translation)
{
$options[$value] = $translation;
}
$ilDB->setLimit(200,0);
// In case an index is defined on field il_meta_format, this group by
// statement takes advantage of it to improve the performance of the query.
$query = "SELECT format as forma from il_meta_format GROUP BY format";
$res = $ilDB->query($query);
if(!$res->numRows())
{
return '';
}
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
if(strlen($row->format))
{
$options[$row->format] = substr($row->format,0,48);
}
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
global $lng;
$items = array('Teacher','Author','Learner','Manager');
foreach($prepend as $value => $translation)
{
$options[$value] = $translation;
}
foreach($items as $item)
{
$options[$item] = $item;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement(), and ilLuceneAdvancedSearchFields\parseFieldQuery().

{
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;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
global $lng;
$items = array('Actice','Expositive','Mixed');
foreach($prepend as $value => $translation)
{
$options[$value] = $translation;
}
foreach($items as $item)
{
$options[$item] = $item;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

Prepare a meta data language selector.

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

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

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

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
global $lng;
{
$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);
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
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;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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
stringChecked item
stringName of form variable.
arrayarray(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns
string Complete html select

Definition at line 503 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(),
  $a_options_only = false 
)

Prepare a meta technical os selector.

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement(), and ilMDEditorGUI\listTechnical().

{
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;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
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;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

Prepare a meta lifecycle status selector.

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement(), ilMDEditorGUI\listLifecycle(), and ilMDEditorGUI\listMetaMetaData().

{
global $lng;
$items = array('Author','Publisher','Unknown','Initiator','Terminator','Editor','GraphicalDesigner','TechnicalImplementer',
'ContentProvider','TechnicalValidator','EducationalValidator','ScriptWriter','InstructionalDesigner',
'SubjectMatterExpert','Creator','Validator','PointOfContact');
foreach($prepend as $value => $translation)
{
$options[$value] = $translation;
}
foreach($items as $item)
{
$options[$item] = $lng->txt('meta_'.strtolower($item));
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

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

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement(), and ilLuceneAdvancedSearchFields\parseFieldQuery().

{
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;
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

Prepare a meta lifecycle status selector.

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement(), ilMDEditorGUI\listLifecycle(), and ilMDEditorGUI\listQuickEdit_scorm().

{
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));
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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(),
  $a_options_only = false 
)

Prepare a meta general structure selector.

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

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

References $lng, and formSelect().

Referenced by ilLuceneAdvancedSearchFields\getFormElement().

{
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));
}
// BEGIN PATCH Lucene search
return $a_options_only ? $options : ilUtil::formSelect($a_selected,$a_name,$options,false,true);
// END PATCH Lucene Search
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
stringChecked item
stringName of form variable.
arrayarray(value => 'string') of first item. E.g: array(0,'-Please select-')
Returns
string Complete html select

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

References $lng, and formSelect().

{
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:

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

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

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

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

References $lng, and formSelect().

{
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:


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