ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBiblFieldFilterPresentationGUI 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 ilBiblFieldFilterPresentationGUI:

Public Member Functions

 __construct (\ilBiblFieldFilterInterface $filter, ilBiblFactoryFacadeInterface $facade)
 ilBiblFieldFilterPresentationGUI constructor. More...
 
 getFilterItem ()
 
 getFilter ()
 
 setFilter (\ilBiblFieldFilterInterface $filter)
 

Protected Attributes

ilBiblFactoryFacadeInterface $facade
 
ilBiblFieldFilterInterface $filter
 

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 Class ilBiblFieldFilterPresentationGUI

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 24 of file class.ilBiblFieldFilterPresentationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilBiblFieldFilterPresentationGUI::__construct ( \ilBiblFieldFilterInterface  $filter,
ilBiblFactoryFacadeInterface  $facade 
)

ilBiblFieldFilterPresentationGUI constructor.

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

References $facade, $filter, ILIAS\UI\examples\Symbol\Glyph\Filter\filter(), and ILIAS\Repository\lng().

35  {
36  $this->facade = $facade;
37  $this->filter = $filter;
38  $this->lng()->loadLanguageModule('bibl');
39  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getFilter()

ilBiblFieldFilterPresentationGUI::getFilter ( )

Definition at line 75 of file class.ilBiblFieldFilterPresentationGUI.php.

References $filter.

Referenced by getFilterItem().

76  {
77  return $this->filter;
78  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getFilterItem()

ilBiblFieldFilterPresentationGUI::getFilterItem ( )

Definition at line 42 of file class.ilBiblFieldFilterPresentationGUI.php.

References Vendor\Package\$f, $filter, ilBiblFieldFilterInterface\FILTER_TYPE_MULTI_SELECT_INPUT, ilBiblFieldFilterInterface\FILTER_TYPE_SELECT_INPUT, ilBiblFieldFilterInterface\FILTER_TYPE_TEXT_INPUT, getFilter(), and ILIAS\Repository\lng().

43  {
44  $field = $this->facade->fieldFactory()->findById($this->getFilter()->getFieldId());
45  $translated = $this->facade->translationFactory()->translate($field);
46 
47  $ilBiblFieldFilter = $this->getFilter();
48 
49  $obj_id = $this->facade->iliasObjId();
50  $f = $this->facade->attributeFactory();
51 
52  switch ($ilBiblFieldFilter->getFilterType()) {
54  $filter = new ilTextInputGUI($translated, $field->getIdentifier());
55  break;
57  $filter = new ilSelectInputGUI($translated, $field->getIdentifier());
58  $options[null] = $this->lng()->txt("please_select");
59  $options += $f->getPossibleValuesForFieldAndObject($field, $obj_id);
60  $filter->setOptions($options);
61  break;
63  $filter = new ilMultiSelectInputGUI($translated, $field->getIdentifier());
64  $options = $f->getPossibleValuesForFieldAndObject($field, $obj_id);
65  $filter->setOptions($options);
66  break;
67  default:
68  throw new LogicException('no filter type used');
69  }
70 
71  return $filter;
72  }
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...
+ Here is the call graph for this function:

◆ setFilter()

ilBiblFieldFilterPresentationGUI::setFilter ( \ilBiblFieldFilterInterface  $filter)

Definition at line 81 of file class.ilBiblFieldFilterPresentationGUI.php.

References $filter, and ILIAS\UI\examples\Symbol\Glyph\Filter\filter().

81  : void
82  {
83  $this->filter = $filter;
84  }
+ Here is the call graph for this function:

Field Documentation

◆ $facade

ilBiblFactoryFacadeInterface ilBiblFieldFilterPresentationGUI::$facade
protected

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

Referenced by __construct().

◆ $filter

ilBiblFieldFilterInterface ilBiblFieldFilterPresentationGUI::$filter
protected

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