ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 = "./node_modules/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.

193 : void {
194 $tpl = self::ensureGlobalTemplate($a_main_tpl);
195 $tpl->addCss("assets/css/container.css");
196
197 }
static ensureGlobalTemplate(?ilGlobalTemplateInterface $main_tpl=null)

◆ ensureGlobalTemplate()

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

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

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

◆ 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.

182 : string
183 {
184 return self::YUI_BASE . "/" . $a_name;
185 }

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

+ 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.

152 : void
153 {
155 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
156 $tpl->addJavaScript("assets/js/element-min.js");
157
158 $tpl->addJavaScript("assets/js/container_core-min.js");
159 $tpl->addJavaScript("assets/js/menu-min.js");
160
161 $tpl->addJavaScript("assets/js/button-min.js");
162
163 $tpl->addCss("assets/css/button.css");
164 $tpl->addCss("assets/css/menu.css");
165 }

◆ initConnection()

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

Init YUI Connection module.

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

39 : void {
40 $tpl = self::ensureGlobalTemplate($a_main_tpl);
41 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
42 $tpl->addJavaScript("assets/js/connection-min.js");
43 }

Referenced by ilAccordionGUI\addJavaScript(), ilLMPresentationGUI\addResourceFiles(), ilExplorer\getOutput(), ilExplorerBaseGUI\init(), ilTable2GUI\renderFilter(), and ilAdvancedSelectionListGUI\setAsynch().

+ 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.

123 : void
124 {
126 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
127 $tpl->addJavaScript("assets/js/animation-min.js");
128 $tpl->addJavaScript("assets/js/connection-min.js");
129 }

◆ initCookie()

static ilYuiUtil::initCookie ( )
static

used in Services/Authentication (Session Reminder) Jan 2022

Deprecated:

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

171 : void
172 {
174 $tpl->addJavaScript("assets/js/yahoo-min.js", 1);
175 $tpl->addJavaScript("assets/js/cookie.js", 1);
176 }

◆ initDom()

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

Init YUI Dom.

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

62 : void {
63 $tpl = self::ensureGlobalTemplate($a_main_tpl);
64 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
65 }

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

+ 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.

90 : void {
91 $tpl = self::ensureGlobalTemplate($a_main_tpl);
92 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
93 }

Referenced by ilObjSessionGUI\initForm(), and ilConsultationHoursGUI\initFormSequence().

+ 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.

75 : void {
76 $tpl = self::ensureGlobalTemplate($a_main_tpl);
77 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
78 $tpl->addJavaScript("assets/js/dragdrop-min.js");
79 $tpl->addJavaScript("assets/js/element-min.js");
80 }

Referenced by ilCalendarDayGUI\show(), ilCalendarMonthGUI\show(), and ilCalendarWeekGUI\show().

+ 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.

51 : void {
52 $tpl = self::ensureGlobalTemplate($a_main_tpl);
53 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
54 }

Referenced by ilPropertyFormGUI\getContent().

+ 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.

140 : void {
141 $tpl = self::ensureGlobalTemplate($a_main_tpl);
142 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
143 $tpl->addJavaScript("assets/js/container_core-min.js");
145 }
static addContainerCss(?ilGlobalTemplateInterface $a_main_tpl=null)
Add container css.

Referenced by ILIAS\LegalDocuments\Legacy\Table\__construct().

+ 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.

103 : void {
104 $tpl = self::ensureGlobalTemplate($a_main_tpl);
105 $tpl->addJavaScript("assets/js/yahoo-dom-event.js");
106 $tpl->addJavaScript("assets/js/container-min.js");
108 $tpl->addCss("./components/ILIAS/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("assets/js/utilities.js");
113 $tpl->addJavaScript("assets/js/resize-min.js");
114 }
115 }

Referenced by ILIAS\LegalDocuments\Legacy\Table\__construct().

+ Here is the caller graph for this function:

Field Documentation

◆ YUI_BASE

const ilYuiUtil::YUI_BASE = "./node_modules/yui2/build"
protected

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


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