ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

39 {
40 $this->adv_adapter = $adv_adapter;
41 $this->lng = $lng;
42 $this->service = $service;
43 $this->lom_services = $lom_services;
44 }
ilContainerFilterService $service
ilContainerFilterAdvMDAdapter $adv_adapter

References $adv_adapter, $lng, $lom_services, $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 50 of file class.ilContainerFilterUtil.php.

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

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

Referenced by __construct().

◆ $lng

ilLanguage ilContainerFilterUtil::$lng
protected

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

Referenced by __construct(), and getContainerFieldTitle().

◆ $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().


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