ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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)
 Constructor. More...
 
 getContainerFieldTitle ($record_id, $field_id)
 Get title of field. More...
 
 getContainerRecordTitle ($record_id)
 Get title of record. More...
 

Protected Attributes

 $adv_adapter
 
 $lng
 
 $service
 

Detailed Description

Utilities for container filter.

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

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

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

References $adv_adapter, $lng, and $service.

32  {
33  $this->adv_adapter = $adv_adapter;
34  $this->lng = $lng;
35  $this->service = $service;
36  }

Member Function Documentation

◆ getContainerFieldTitle()

ilContainerFilterUtil::getContainerFieldTitle (   $record_id,
  $field_id 
)

Get title of field.

Parameters
$record_id
$field_id
Returns
string
Exceptions
ilException

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

References $lng, and ilAdvancedMDFieldDefinition\getInstance().

46  {
47  $lng = $this->lng;
48 
49  if ($record_id == 0) {
50  return $lng->txt("cont_std_filter_title_" . $field_id);
51  }
52 
53  $field = ilAdvancedMDFieldDefinition::getInstance($field_id);
54  return $field->getTitle();
55  }
static getInstance($a_field_id, $a_type=null)
Get definition instance by type.
+ Here is the call graph for this function:

◆ getContainerRecordTitle()

Field Documentation

◆ $adv_adapter

ilContainerFilterUtil::$adv_adapter
protected

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

Referenced by __construct().

◆ $lng

ilContainerFilterUtil::$lng
protected

◆ $service

ilContainerFilterUtil::$service
protected

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

Referenced by __construct(), and getContainerRecordTitle().


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