ILIAS  release_8 Revision v8.24
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.

36 {
37 $this->adv_adapter = $adv_adapter;
38 $this->lng = $lng;
39 $this->service = $service;
40 }
ilContainerFilterService $service
ilContainerFilterAdvMDAdapter $adv_adapter

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

+ 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.

49 : string {
51
52 if ($record_id === 0) {
53 return $lng->txt("cont_std_filter_title_" . $field_id);
54 }
55
57 return $field->getTitle();
58 }
static getInstance(?int $a_field_id, ?int $a_type=null, string $language='')
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...

References $lng, and ilLanguage\txt().

+ 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.

64 : string
65 {
67
68 if ($record_id === 0) {
69 return $lng->txt("cont_std_record_title");
70 }
71
73 return $rec->getTitle();
74 }
static _getInstanceByRecordId(int $a_record_id)

References $lng, and ilAdvancedMDRecord\_getInstanceByRecordId().

+ 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

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

Referenced by __construct(), and getContainerFieldTitle().

◆ $service

ilContainerFilterService ilContainerFilterUtil::$service
protected

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

Referenced by __construct().


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