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

Public Member Functions

 replaced ()
 
 getHTML (string $html)
 

Protected Attributes

array $append = []
 
array $prepend = []
 
string $replace = ''
 

Private Attributes

bool $replaced = false
 

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 ilUIHookProcessor

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

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

Member Function Documentation

◆ getHTML()

ilUIHookProcessor::getHTML ( string  $html)

Definition at line 80 of file class.ilUIHookProcessor.php.

References Vendor\Package\$a, $replace, and replaced().

80  : string
81  {
82  if ($this->replaced) {
83  $html = $this->replace;
84  }
85  foreach ($this->append as $a) {
86  $html .= $a;
87  }
88  foreach ($this->prepend as $p) {
89  $html = $p . $html;
90  }
91 
92  return $html;
93  }
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
+ Here is the call graph for this function:

◆ replaced()

ilUIHookProcessor::replaced ( )
Returns
bool Should HTML be replaced completely?

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

References $replaced.

Referenced by getHTML().

75  : bool
76  {
77  return $this->replaced;
78  }
+ Here is the caller graph for this function:

Field Documentation

◆ $append

array ilUIHookProcessor::$append = []
protected

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

◆ $prepend

array ilUIHookProcessor::$prepend = []
protected

Definition at line 28 of file class.ilUIHookProcessor.php.

◆ $replace

string ilUIHookProcessor::$replace = ''
protected

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

Referenced by getHTML().

◆ $replaced

bool ilUIHookProcessor::$replaced = false
private

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

Referenced by replaced().


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