ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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.

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

35  {
36  global $DIC;
37 
38  $this->ui = $DIC->ui();
39  }
global $DIC
Definition: shib_login.php:26
+ 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.

References ILIAS\Repository\Symbol\SymbolAdapterGUI\$gl_type, and ILIAS\Repository\ui().

Referenced by ILIAS\Repository\Symbol\SymbolAdapterGUI\render().

51  : \ILIAS\UI\Component\Symbol\Symbol
52  {
53  $gl = $this->gl_type;
54  $s = $this->ui->factory()->symbol()->glyph()->$gl(
55  $this->href
56  );
57  return $s;
58  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ glyph()

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

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

References ILIAS\Repository\Symbol\SymbolAdapterGUI\$gl_type, and ILIAS\Repository\Symbol\SymbolAdapterGUI\$href.

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.

References ILIAS\Repository\Symbol\SymbolAdapterGUI\getSymbol(), and ILIAS\Repository\ui().

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  }
+ Here is the call graph for this function:

Field Documentation

◆ $gl_type

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

◆ $href

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

◆ $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: