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

Public Member Functions

 __construct (?array $data)
 
 getData ()
 
 isEmpty ()
 

Protected Attributes

array $data
 

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 user filer. This holds the current filter data being used for filtering the objects being presented.

Currently a plain assoc array as retrieved by $filter->getData

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

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

Constructor & Destructor Documentation

◆ __construct()

ilContainerUserFilter::__construct ( ?array  $data)

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

32 {
33 $this->data = $data;
34 }

References $data.

Member Function Documentation

◆ getData()

ilContainerUserFilter::getData ( )

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

36 : ?array
37 {
38 return $this->data;
39 }

References $data.

Referenced by ILIAS\Container\Content\Filter\FilterManager\apply().

+ Here is the caller graph for this function:

◆ isEmpty()

ilContainerUserFilter::isEmpty ( )

Definition at line 41 of file class.ilContainerUserFilter.php.

41 : bool
42 {
43 $empty = true;
44 if (is_array($this->data)) {
45 foreach ($this->data as $d) {
46 if (trim((string) $d) !== "") {
47 $empty = false;
48 }
49 }
50 }
51 return $empty;
52 }

References Vendor\Package\$d.

Referenced by ILIAS\Container\Content\Filter\FilterManager\apply().

+ Here is the caller graph for this function:

Field Documentation

◆ $data

array ilContainerUserFilter::$data
protected

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

Referenced by __construct(), and getData().


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