ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilGlyphGUI Class Reference
+ Collaboration diagram for ilGlyphGUI:

Static Public Member Functions

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

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

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, and NO_TEXT.

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

{
global $lng;
$html = "";
$text = ($a_text == "")
? $lng->txt(self::$map[$a_glyph]["txt"])
: ($a_text == self::NO_TEXT)
? ""
: $a_text;
switch ($a_glyph)
{
case self::CARET:
$html = '<span class="caret"></span>';
break;
default:
$html = '<span class="sr-only">'.$text.
'</span><span class="'.self::$map[$a_glyph]["class"].'"></span>';
break;
}
return $html;
}

+ Here is the caller graph for this function:

Field Documentation

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.

const ilGlyphGUI::ATTACHMENT = "attachment"

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

const ilGlyphGUI::CALENDAR = "calendar"
const ilGlyphGUI::CARET = "caret"
const ilGlyphGUI::DRAG = "drag"
const ilGlyphGUI::NEXT = "next"

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

Referenced by ilTabsGUI\__getHTML().

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

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

Referenced by ilTabsGUI\__getHTML(), and get().

const ilGlyphGUI::PREVIOUS = "previous"

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

Referenced by ilTabsGUI\__getHTML().

const ilGlyphGUI::SEARCH = "search"

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