ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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, LOMServices $lom_services)
 
 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
 
LOMServices $lom_services
 

Detailed Description

Utilities for container filter.

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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

39  {
40  $this->adv_adapter = $adv_adapter;
41  $this->lng = $lng;
42  $this->service = $service;
43  $this->lom_services = $lom_services;
44  }
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 50 of file class.ilContainerFilterUtil.php.

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

53  : string {
54  $lng = $this->lng;
55 
56  if ($record_id === 0) {
57  return $lng->txt("cont_std_filter_title_" . $field_id);
58  }
59 
60  $field = ilAdvancedMDFieldDefinition::getInstance($field_id);
61  return $field->getTitle();
62  }
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 68 of file class.ilContainerFilterUtil.php.

References $DIC, $lng, $ref_id, $service, 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().

68  : string
69  {
70  $lng = $this->lng;
71 
72  if ($record_id === 0) {
73  return $lng->txt("cont_std_record_title");
74  }
75 
77  return $rec->getTitle();
78  }
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 29 of file class.ilContainerFilterUtil.php.

Referenced by __construct().

◆ $lng

ilLanguage ilContainerFilterUtil::$lng
protected

◆ $lom_services

LOMServices ilContainerFilterUtil::$lom_services
protected

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

Referenced by __construct().

◆ $service

ilContainerFilterService ilContainerFilterUtil::$service
protected

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

Referenced by __construct(), and getContainerRecordTitle().


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