ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Repository\Symbol\SymbolAdapterGUI Class Reference
+ Collaboration diagram for ILIAS\Repository\Symbol\SymbolAdapterGUI:

Public Member Functions

 __construct ()
 
 glyph (string $gl_type, string $href="")
 
 render ()
 

Protected Member Functions

 getSymbol ()
 

Protected Attributes

const TYPE_GLYPH = 0
 
ILIAS DI UIServices $ui
 
int $type = self::TYPE_GLYPH
 
string $gl_type = ""
 
string $href = ""
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Symbol\SymbolAdapterGUI::__construct ( )

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

35 {
36 global $DIC;
37
38 $this->ui = $DIC->ui();
39 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\Repository\ui().

+ Here is the call graph for this function:

Member Function Documentation

◆ getSymbol()

ILIAS\Repository\Symbol\SymbolAdapterGUI::getSymbol ( )
protected

Definition at line 51 of file class.SymbolAdapterGUI.php.

52 {
53 $gl = $this->gl_type;
54 $s = $this->ui->factory()->symbol()->glyph()->$gl(
55 $this->href
56 );
57 return $s;
58 }
This describes a symbol.
Definition: Symbol.php:30

References ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ glyph()

ILIAS\Repository\Symbol\SymbolAdapterGUI::glyph ( string  $gl_type,
string  $href = "" 
)

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

44 : self {
45 $this->gl_type = $gl_type;
46 $this->href = $href;
47 $this->type = self::TYPE_GLYPH;
48 return $this;
49 }

◆ render()

ILIAS\Repository\Symbol\SymbolAdapterGUI::render ( )

Definition at line 60 of file class.SymbolAdapterGUI.php.

60 : string
61 {
62 $s = $this->ui->renderer()->render($this->getSymbol());
63 // workaround to get rid of a tags
64 if ($this->href === "") {
65 $s = str_replace("</a>", "", substr($s, strpos($s, "<span")));
66 }
67 return $s;
68 }

References ILIAS\GlobalScreen\Scope\MainMenu\Factory\getSymbol(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

Field Documentation

◆ $gl_type

string ILIAS\Repository\Symbol\SymbolAdapterGUI::$gl_type = ""
protected

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

◆ $href

string ILIAS\Repository\Symbol\SymbolAdapterGUI::$href = ""
protected

Definition at line 32 of file class.SymbolAdapterGUI.php.

◆ $type

int ILIAS\Repository\Symbol\SymbolAdapterGUI::$type = self::TYPE_GLYPH
protected

Definition at line 30 of file class.SymbolAdapterGUI.php.

◆ $ui

ILIAS DI UIServices ILIAS\Repository\Symbol\SymbolAdapterGUI::$ui
protected

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

◆ TYPE_GLYPH

const ILIAS\Repository\Symbol\SymbolAdapterGUI::TYPE_GLYPH = 0
protected

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


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