ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilContainerFilterUtil Class Reference

Utilities for container filter. More...

+ Collaboration diagram for ilContainerFilterUtil:

Public Member Functions

 __construct (ilContainerFilterService $service, ilContainerFilterAdvMDAdapter $adv_adapter, ilLanguage $lng)
 
 getContainerFieldTitle (int $record_id, int $field_id)
 Get title of field. More...
 
 getContainerRecordTitle (int $record_id)
 Get title of record. More...
 

Protected Attributes

ilContainerFilterAdvMDAdapter $adv_adapter
 
ilLanguage $lng
 
ilContainerFilterService $service
 

Detailed Description

Utilities for container filter.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.ilContainerFilterUtil.php.

Constructor & Destructor Documentation

◆ __construct()

ilContainerFilterUtil::__construct ( ilContainerFilterService  $service,
ilContainerFilterAdvMDAdapter  $adv_adapter,
ilLanguage  $lng 
)

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

References $adv_adapter, $lng, $service, and ILIAS\Repository\lng().

36  {
37  $this->adv_adapter = $adv_adapter;
38  $this->lng = $lng;
39  $this->service = $service;
40  }
ilContainerFilterAdvMDAdapter $adv_adapter
ilContainerFilterService $service
+ Here is the call graph for this function:

Member Function Documentation

◆ getContainerFieldTitle()

ilContainerFilterUtil::getContainerFieldTitle ( int  $record_id,
int  $field_id 
)

Get title of field.

Exceptions
ilException

Definition at line 46 of file class.ilContainerFilterUtil.php.

References $lng, ilAdvancedMDFieldDefinition\getInstance(), and ilLanguage\txt().

49  : string {
50  $lng = $this->lng;
51 
52  if ($record_id === 0) {
53  return $lng->txt("cont_std_filter_title_" . $field_id);
54  }
55 
56  $field = ilAdvancedMDFieldDefinition::getInstance($field_id);
57  return $field->getTitle();
58  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static getInstance(?int $a_field_id, ?int $a_type=null, string $language='')
+ Here is the call graph for this function:

◆ getContainerRecordTitle()

ilContainerFilterUtil::getContainerRecordTitle ( int  $record_id)

Get title of record.

Exceptions
ilException

Definition at line 64 of file class.ilContainerFilterUtil.php.

References $DIC, ILIAS\LTI\ToolProvider\$key, $lng, $ref_id, $service, ilMDCopyrightSelectionEntry\_getEntries(), ilMDSettings\_getInstance(), ilAdvancedMDRecord\_getInstanceByRecordId(), ilContainerFilterService\advancedMetadata(), ilContainerFilterService\data(), ILIAS\Repository\lng(), ilContainerFilterField\STD_FIELD_AUTHOR, ilContainerFilterField\STD_FIELD_COPYRIGHT, ilContainerFilterField\STD_FIELD_DESCRIPTION, ilContainerFilterField\STD_FIELD_KEYWORD, ilContainerFilterField\STD_FIELD_OBJECT_TYPE, ilContainerFilterField\STD_FIELD_ONLINE, ilContainerFilterField\STD_FIELD_TITLE, ilContainerFilterField\STD_FIELD_TITLE_DESCRIPTION, ilContainerFilterField\STD_FIELD_TUTORIAL_SUPPORT, ilLanguage\txt(), ilAdvancedMDFieldDefinition\TYPE_INTEGER, ilAdvancedMDFieldDefinition\TYPE_SELECT, ilAdvancedMDFieldDefinition\TYPE_SELECT_MULTI, ilAdvancedMDFieldDefinition\TYPE_TEXT, and ilContainerFilterService\util().

64  : string
65  {
66  $lng = $this->lng;
67 
68  if ($record_id === 0) {
69  return $lng->txt("cont_std_record_title");
70  }
71 
73  return $rec->getTitle();
74  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _getInstanceByRecordId(int $a_record_id)
+ Here is the call graph for this function:

Field Documentation

◆ $adv_adapter

ilContainerFilterAdvMDAdapter ilContainerFilterUtil::$adv_adapter
protected

Definition at line 28 of file class.ilContainerFilterUtil.php.

Referenced by __construct().

◆ $lng

ilLanguage ilContainerFilterUtil::$lng
protected

◆ $service

ilContainerFilterService ilContainerFilterUtil::$service
protected

Definition at line 30 of file class.ilContainerFilterUtil.php.

Referenced by __construct(), and getContainerRecordTitle().


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