ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilGlyphGUI Class Reference
+ Collaboration diagram for ilGlyphGUI:

Static Public Member Functions

static get ($a_glyph, $a_text="")
 Get glyph html. More...
 

Data Fields

const UP = "up"
 
const DOWN = "down"
 
const ADD = "add"
 
const REMOVE = "remove"
 
const PREVIOUS = "previous"
 
const NEXT = "next"
 
const CALENDAR = "calendar"
 
const CLOSE = "close"
 
const ATTACHMENT = "attachment"
 
const CARET = "caret"
 
const DRAG = "drag"
 
const SEARCH = "search"
 
const NO_TEXT = "**notext**"
 

Static Protected Attributes

static $map
 

Detailed Description

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilGlyphGUI.php.

Member Function Documentation

◆ get()

static ilGlyphGUI::get (   $a_glyph,
  $a_text = "" 
)
static

Get glyph html.

Parameters
string$a_glyphglyph constant
string$a_texttext representation
Returns
string html

Definition at line 50 of file class.ilGlyphGUI.php.

References $lng.

Referenced by ilTabsGUI\__getHTML(), ilTermsOfServiceSignedDocumentFormElementGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilTestQuestionsTableGUI\fillRow(), ilDataCollectionTreePickInputGUI\getHtml(), ilMainMenuGUI\getLanguageSelection(), ilHierarchyFormGUI\getLegend(), ilMediaPlayerGUI\getMp3PlayerHtml(), ilFormPropertyGUI\getMultiIconsHTML(), ilNoteGUI\getNoteListHTML(), ilEssayKeywordWizardInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilTextWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilFileWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilImageWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilPageObjectGUI\insertHelp(), ilScoringAdjustmentGUI\outputAdjustQuestionForm(), ilTermsOfServiceAgreementByLanguageTableGUI\prepareRow(), ilTermsOfServiceAcceptanceHistoryTableGUI\prepareRow(), ilGloAdvColSortInputGUI\render(), ilBirthdayInputGUI\render(), ilScheduleInputGUI\render(), ilDateTimeInputGUI\render(), ilDateDurationInputGUI\render(), ilSurveyPageGUI\renderPage(), ilSurveyPageGUI\renderPageNode(), ilObjForumGUI\setTreeStateAsynchObject(), ilCalendarDayGUI\show(), ilCalendarWeekGUI\show(), ilCalendarMonthGUI\show(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilSearchGUI\showSearch(), and ilLuceneSearchGUI\showSearchForm().

51  {
52  global $lng;
53 
54  $html = "";
55  $text = ($a_text == "")
56  ? $lng->txt(self::$map[$a_glyph]["txt"])
57  : ($a_text == self::NO_TEXT)
58  ? ""
59  : $a_text;
60  switch ($a_glyph)
61  {
62  case self::CARET:
63  $html = '<span class="caret"></span>';
64  break;
65 
66  default:
67  $html = '<span class="sr-only">'.$text.
68  '</span><span class="'.self::$map[$a_glyph]["class"].'"></span>';
69  break;
70 
71  }
72  return $html;
73  }
global $lng
Definition: privfeed.php:40
+ Here is the caller graph for this function:

Field Documentation

◆ $map

ilGlyphGUI::$map
staticprotected
Initial value:
= array(
"up" => array("class" => "glyphicon glyphicon-chevron-up", "txt" => "up"),
"down" => array("class" => "glyphicon glyphicon-chevron-down", "txt" => "down"),
"add" => array("class" => "glyphicon glyphicon-plus", "txt" => "add"),
"remove" => array("class" => "glyphicon glyphicon-minus", "txt" => "remove"),
"previous" => array("class" => "glyphicon glyphicon-chevron-left", "txt" => "previous"),
"next" => array("class" => "glyphicon glyphicon-chevron-right", "txt" => "next"),
"calendar" => array("class" => "glyphicon glyphicon-calendar", "txt" => "calendar"),
"close" => array("class" => "glyphicon glyphicon-remove", "txt" => "close"),
"attachment" => array("class" => "glyphicon glyphicon-paperclip", "txt" => "attachment"),
"caret" => array("class" => "", "txt" => ""),
"drag" => array("class" => "glyphicon glyphicon-share-alt", "txt" => "drag"),
"search" => array("class" => "glyphicon glyphicon-search", "txt" => "search")
)

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

◆ ADD

◆ ATTACHMENT

const ilGlyphGUI::ATTACHMENT = "attachment"

Definition at line 22 of file class.ilGlyphGUI.php.

Referenced by ilObjForumGUI\setTreeStateAsynchObject().

◆ CALENDAR

const ilGlyphGUI::CALENDAR = "calendar"

◆ CARET

const ilGlyphGUI::CARET = "caret"

◆ CLOSE

◆ DOWN

◆ DRAG

const ilGlyphGUI::DRAG = "drag"

◆ NEXT

const ilGlyphGUI::NEXT = "next"

Definition at line 19 of file class.ilGlyphGUI.php.

Referenced by ilTabsGUI\__getHTML().

◆ NO_TEXT

const ilGlyphGUI::NO_TEXT = "**notext**"

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

Referenced by ilTabsGUI\__getHTML().

◆ PREVIOUS

const ilGlyphGUI::PREVIOUS = "previous"

Definition at line 18 of file class.ilGlyphGUI.php.

Referenced by ilTabsGUI\__getHTML().

◆ REMOVE

◆ SEARCH

◆ UP


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