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

Static Public Member Functions

static initConnection (?ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Connection module. More...
 
static initEvent (?ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Event. More...
 
static initDom (?ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Dom. More...
 
static initDragDrop (?ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Drag and Drop used in Modules/Survey, Services/Calendar, Services/COPage, Services/Form (Jan 2022) More...
 
static initDomEvent (?ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI DomEvent used in Services/Calendar, Modules/Session, Modules/Test (Jan 2022) More...
 
static initPanel (bool $a_resize=false, ?ilGlobalTemplateInterface $a_main_tpl=null)
 Init yui panel used in Modules/Test, Services/TermsOfService (Jan 2022) More...
 
static initConnectionWithAnimation ()
 Init YUI connection and animation module used in Modules/Test (Jan 2022) More...
 
static initOverlay (?ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Overlay module used in Modules/Test, Services/TermsOfService, Services/Tracking, Services/UIComponent. More...
 
static initButtonControl ()
 init button control In the moment used for calendar color picker button More...
 
static initCookie ()
 used in Services/Authentication (Session Reminder) Jan 2022 More...
 
static getLocalPath (string $a_name="")
 Get local path of a YUI js file. More...
 

Static Protected Member Functions

static addContainerCss (?ilGlobalTemplateInterface $a_main_tpl=null)
 Add container css. More...
 

Protected Attributes

const YUI_BASE = "./libs/bower/bower_components/yui2/build"
 

Static Private Member Functions

static ensureGlobalTemplate (?ilGlobalTemplateInterface $main_tpl=null)
 

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 Yahoo YUI Library Utility functions

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

Definition at line 23 of file class.ilYuiUtil.php.

Member Function Documentation

◆ addContainerCss()

static ilYuiUtil::addContainerCss ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
staticprotected

Add container css.

Definition at line 191 of file class.ilYuiUtil.php.

References $tpl.

193  : void {
194  $tpl = self::ensureGlobalTemplate($a_main_tpl);
195  $tpl->addCss(self::getLocalPath("container/assets/skins/sam/container.css"));
196  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41

◆ ensureGlobalTemplate()

static ilYuiUtil::ensureGlobalTemplate ( ?ilGlobalTemplateInterface  $main_tpl = null)
staticprivate

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

References $DIC.

30  global $DIC;
31  return $main_tpl === null ? $DIC->ui()->mainTemplate() : $main_tpl;
32  }
global $DIC
Definition: feed.php:28

◆ getLocalPath()

static ilYuiUtil::getLocalPath ( string  $a_name = "")
static

Get local path of a YUI js file.

Definition at line 182 of file class.ilYuiUtil.php.

Referenced by ilSCORM13PlayerGUI\debugGUI(), ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles(), and YUITest\testPath().

182  : string
183  {
184  return self::YUI_BASE . "/" . $a_name;
185  }
+ Here is the caller graph for this function:

◆ initButtonControl()

static ilYuiUtil::initButtonControl ( )
static

init button control In the moment used for calendar color picker button

Definition at line 152 of file class.ilYuiUtil.php.

References $tpl.

152  : void
153  {
154  $tpl = self::ensureGlobalTemplate();
155  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
156  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
157 
158  $tpl->addJavaScript(self::YUI_BASE . "/container/container_core-min.js");
159  $tpl->addJavaScript(self::YUI_BASE . "/menu/menu-min.js");
160 
161  $tpl->addJavaScript(self::YUI_BASE . "/button/button-min.js");
162 
163  $tpl->addCss(self::YUI_BASE . "/button/assets/skins/sam/button.css");
164  $tpl->addCss(self::YUI_BASE . "/menu/assets/skins/sam/menu.css");
165  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41

◆ initConnection()

static ilYuiUtil::initConnection ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
static

Init YUI Connection module.

Definition at line 37 of file class.ilYuiUtil.php.

References $tpl.

Referenced by ilBlockGUI\__construct(), ilAccordionGUI\addJavaScript(), ilLMPresentationGUI\addResourceFiles(), ilInternalLinkGUI\getInitHTML(), ilExplorer\getOutput(), ilExplorerBaseGUI\init(), ilHelpGUI\initHelp(), ILIAS\Notes\InternalGUIService\initJavascript(), ilMediaPlayerGUI\initJavascript(), ILIAS\COPage\Editor\UI\Init\initUI(), ilTable2GUI\renderFilter(), and ilAdvancedSelectionListGUI\setAsynch().

39  : void {
40  $tpl = self::ensureGlobalTemplate($a_main_tpl);
41  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
42  $tpl->addJavaScript(self::YUI_BASE . "/connection/connection-min.js");
43  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

◆ initConnectionWithAnimation()

static ilYuiUtil::initConnectionWithAnimation ( )
static

Init YUI connection and animation module used in Modules/Test (Jan 2022)

Deprecated:

Definition at line 123 of file class.ilYuiUtil.php.

References $tpl.

Referenced by ilTestOutputGUI\executeCommand().

123  : void
124  {
125  $tpl = self::ensureGlobalTemplate();
126  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
127  $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
128  $tpl->addJavaScript(self::YUI_BASE . "/connection/connection-min.js");
129  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

◆ initCookie()

static ilYuiUtil::initCookie ( )
static

used in Services/Authentication (Session Reminder) Jan 2022

Deprecated:

Definition at line 171 of file class.ilYuiUtil.php.

References $tpl.

171  : void
172  {
173  $tpl = self::ensureGlobalTemplate();
174  $tpl->addJavaScript(self::YUI_BASE . "/yahoo/yahoo-min.js", 1);
175  $tpl->addJavaScript(self::YUI_BASE . "/cookie/cookie.js", 1);
176  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41

◆ initDom()

static ilYuiUtil::initDom ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
static

Init YUI Dom.

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

References $tpl.

Referenced by ilPropertyFormGUI\getContent(), ilRTEGlobalTemplate\printToStdout(), ilGlobalTemplate\printToStdout(), ilDataCollectionGlobalTemplate\printToStdout(), and ilGlobalTemplate\printToString().

62  : void {
63  $tpl = self::ensureGlobalTemplate($a_main_tpl);
64  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
65  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

◆ initDomEvent()

static ilYuiUtil::initDomEvent ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
static

Init YUI DomEvent used in Services/Calendar, Modules/Session, Modules/Test (Jan 2022)

Deprecated:

Definition at line 88 of file class.ilYuiUtil.php.

References $tpl.

Referenced by ilTestServiceGUI\getPassListOfAnswersWithScoring(), assTextQuestionGUI\getTestOutput(), ilCalendarAppointmentGUI\initForm(), ilObjSessionGUI\initForm(), and ilConsultationHoursGUI\initFormSequence().

90  : void {
91  $tpl = self::ensureGlobalTemplate($a_main_tpl);
92  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
93  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

◆ initDragDrop()

static ilYuiUtil::initDragDrop ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
static

Init YUI Drag and Drop used in Modules/Survey, Services/Calendar, Services/COPage, Services/Form (Jan 2022)

Deprecated:

Definition at line 73 of file class.ilYuiUtil.php.

References $tpl.

Referenced by ilHierarchyFormGUI\__construct(), ilSurveyPageEditGUI\renderPage(), ilCalendarDayGUI\show(), ilCalendarWeekGUI\show(), and ilCalendarMonthGUI\show().

75  : void {
76  $tpl = self::ensureGlobalTemplate($a_main_tpl);
77  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
78  $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
79  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
80  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

◆ initEvent()

static ilYuiUtil::initEvent ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
static

Init YUI Event.

Definition at line 49 of file class.ilYuiUtil.php.

References $tpl.

Referenced by ilPropertyFormGUI\getContent().

51  : void {
52  $tpl = self::ensureGlobalTemplate($a_main_tpl);
53  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
54  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

◆ initOverlay()

static ilYuiUtil::initOverlay ( ?ilGlobalTemplateInterface  $a_main_tpl = null)
static

Init YUI Overlay module used in Modules/Test, Services/TermsOfService, Services/Tracking, Services/UIComponent.

Deprecated:

Definition at line 138 of file class.ilYuiUtil.php.

References $tpl.

Referenced by ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilOverlayGUI\add(), ilLPObjectStatisticsLPTableGUI\initLearningProgressDetailsLayer(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().

140  : void {
141  $tpl = self::ensureGlobalTemplate($a_main_tpl);
142  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
143  $tpl->addJavaScript(self::YUI_BASE . "/container/container_core-min.js");
144  self::addContainerCss($tpl);
145  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

◆ initPanel()

static ilYuiUtil::initPanel ( bool  $a_resize = false,
?ilGlobalTemplateInterface  $a_main_tpl = null 
)
static

Init yui panel used in Modules/Test, Services/TermsOfService (Jan 2022)

Deprecated:

Definition at line 100 of file class.ilYuiUtil.php.

References $tpl.

Referenced by ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().

103  : void {
104  $tpl = self::ensureGlobalTemplate($a_main_tpl);
105  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
106  $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
107  self::addContainerCss($tpl);
108  $tpl->addCss("./Services/Calendar/css/panel_min.css");
109 
110  if ($a_resize) {
111  $tpl->addCss(self::YUI_BASE . "/resize/assets/skins/sam/resize.css");
112  $tpl->addJavaScript(self::YUI_BASE . "/utilities/utilities-min.js");
113  $tpl->addJavaScript(self::YUI_BASE . "/resize/resize-min.js");
114  }
115  }
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

Field Documentation

◆ YUI_BASE

const ilYuiUtil::YUI_BASE = "./libs/bower/bower_components/yui2/build"
protected

Definition at line 25 of file class.ilYuiUtil.php.


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