ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilContainerFilterService Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilContainerFilterService:

Public Member Functions

 __construct (?ilLanguage $lng=null, ?ilContainerFilterAdvMDAdapter $adv_adapter=null, ?ilContainerFilterFieldData $container_field_data=null, ?LOMServices $lom_services=null)
 
 util ()
 
 advancedMetadata ()
 
 data ()
 
 field (int $record_set_id, int $field_id)
 
 set (array $fields)
 Filter Set. More...
 
 standardSet ()
 Get standard set. More...
 
 userFilter (?array $data)
 User filter. More...
 
 cloneFilterFields (int $from_ref_id, int $to_ref_id)
 

Protected Attributes

ilLanguage $lng
 
ilContainerFilterFieldData $field_data
 
ilContainerFilterAdvMDAdapter $adv_adapter
 
LOMServices $lom_services
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Container filter service factory.

This is an Services/Container internal subservice currently not accessible via DIC API. Do not use this outside of Services/Container.

Main entry point.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilContainerFilterService::__construct ( ?ilLanguage  $lng = null,
?ilContainerFilterAdvMDAdapter  $adv_adapter = null,
?ilContainerFilterFieldData  $container_field_data = null,
?LOMServices  $lom_services = null 
)

Definition at line 38 of file class.ilContainerFilterService.php.

43 {
44 global $DIC;
45
46 $this->lng = (is_null($lng))
47 ? $DIC->language()
48 : $lng;
49
50 $this->adv_adapter = (is_null($adv_adapter))
53
54 $this->field_data = (is_null($container_field_data))
56 : $container_field_data;
57
58 $this->lom_services = (is_null($lom_services))
59 ? $DIC->learningObjectMetadata()
61 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilContainerFilterAdvMDAdapter $adv_adapter
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ advancedMetadata()

ilContainerFilterService::advancedMetadata ( )

Definition at line 68 of file class.ilContainerFilterService.php.

References $adv_adapter.

◆ cloneFilterFields()

ilContainerFilterService::cloneFilterFields ( int  $from_ref_id,
int  $to_ref_id 
)

Definition at line 118 of file class.ilContainerFilterService.php.

118 : void
119 {
120 $set = $this->field_data->getFilterSetForRefId($from_ref_id);
121 $fields = [];
122 foreach ($set->getFields() as $f) {
123 if ($f->getRecordSetId() === 0) {
124 $fields[] = $f;
125 }
126 }
127 $this->field_data->saveFilterSetForRefId($to_ref_id, $this->set($fields));
128 }

References Vendor\Package\$f.

◆ data()

ilContainerFilterService::data ( )

Definition at line 73 of file class.ilContainerFilterService.php.

74 {
75 return $this->field_data;
76 }
ilContainerFilterFieldData $field_data

References $field_data.

◆ field()

ilContainerFilterService::field ( int  $record_set_id,
int  $field_id 
)

Definition at line 78 of file class.ilContainerFilterService.php.

79 {
80 return new ilContainerFilterField($record_set_id, $field_id);
81 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by standardSet().

+ Here is the caller graph for this function:

◆ set()

ilContainerFilterService::set ( array  $fields)

Filter Set.

Definition at line 86 of file class.ilContainerFilterService.php.

87 {
88 return new ilContainerFilterSet($fields);
89 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ standardSet()

ilContainerFilterService::standardSet ( )

Get standard set.

Definition at line 94 of file class.ilContainerFilterService.php.

95 {
96 return new ilContainerFilterSet(
97 [
106 ]
107 );
108 }
field(int $record_set_id, int $field_id)

References field(), ilContainerFilterField\STD_FIELD_AUTHOR, ilContainerFilterField\STD_FIELD_COPYRIGHT, ilContainerFilterField\STD_FIELD_DESCRIPTION, ilContainerFilterField\STD_FIELD_KEYWORD, ilContainerFilterField\STD_FIELD_OBJECT_TYPE, ilContainerFilterField\STD_FIELD_TITLE, ilContainerFilterField\STD_FIELD_TITLE_DESCRIPTION, and ilContainerFilterField\STD_FIELD_TUTORIAL_SUPPORT.

+ Here is the call graph for this function:

◆ userFilter()

ilContainerFilterService::userFilter ( ?array  $data)

User filter.

Definition at line 113 of file class.ilContainerFilterService.php.

114 {
115 return new ilContainerUserFilter($data);
116 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $data.

◆ util()

ilContainerFilterService::util ( )

Definition at line 63 of file class.ilContainerFilterService.php.

64 {
65 return new ilContainerFilterUtil($this, $this->adv_adapter, $this->lng, $this->lom_services);
66 }
Utilities for container filter.

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

Field Documentation

◆ $adv_adapter

ilContainerFilterAdvMDAdapter ilContainerFilterService::$adv_adapter
protected

Definition at line 35 of file class.ilContainerFilterService.php.

Referenced by __construct(), and advancedMetadata().

◆ $field_data

ilContainerFilterFieldData ilContainerFilterService::$field_data
protected

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

Referenced by data().

◆ $lng

ilLanguage ilContainerFilterService::$lng
protected

Definition at line 33 of file class.ilContainerFilterService.php.

Referenced by __construct().

◆ $lom_services

LOMServices ilContainerFilterService::$lom_services
protected

Definition at line 36 of file class.ilContainerFilterService.php.

Referenced by __construct().


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