ILIAS  release_7 Revision v7.30-3-g800a261c036
ilYuiUtil Class Reference

Yahoo YUI Library Utility functions. 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 initAnimation (ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Animation. More...
 
static initDragDrop (ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Drag and Drop. More...
 
static initDomEvent (ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI DomEvent. More...
 
static initPanel ($a_resize=false, ilGlobalTemplateInterface $a_main_tpl=null)
 Init yui panel. More...
 
static initConnectionWithAnimation ()
 Init YUI Connection module. More...
 
static initMenu ()
 Init YUI Menu module. More...
 
static initOverlay (ilGlobalTemplateInterface $a_main_tpl=null)
 Init YUI Overlay module. More...
 
static initSimpleDialog ()
 Init YUI Simple Dialog. More...
 
static initAssessmentWizard ()
 Init assessment wizard. More...
 
static initDragDropList ()
 init drag & drop list More...
 
static initDragDropAnimation ()
 init drag & drop and animation More...
 
static initElementSelection ()
 init element selection More...
 
static getDragDropList ($id_source, $title_source, $source, $id_dest, $title_dest, $dest)
 get a drag & drop list More...
 
static addYesNoDialog ($dialogname, $headertext, $message, $yesaction, $noaction, $defaultyes, $icon="help")
 
static initCalendar ()
 init calendar More...
 
static initButtonControl ()
 init button control In the moment used for calendar color picker button More...
 
static initColorPicker ()
 init color picker button More...
 
static initTabView ()
 Init YUI TabView component. More...
 
static initJson ()
 Init YUI JSON component. More...
 
static initLayout ()
 Init layout (alpha!) More...
 
static initTreeView ()
 Init treeView. More...
 
static initTooltip ()
 Init YUI Event. More...
 
static getLocalPath ($a_name="")
 Get local path of a YUI js file. More...
 

Data Fields

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

Static Protected Member Functions

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

Detailed Description

Yahoo YUI Library Utility functions.

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

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

Member Function Documentation

◆ addContainerCss()

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

Add container css.

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

563 {
564 global $DIC;
565
566 if ($a_main_tpl == null) {
567 $tpl = $DIC["tpl"];
568 } else {
569 $tpl = $a_main_tpl;
570 }
571
572 $tpl->addCss(self::getLocalPath("container/assets/skins/sam/container.css"));
573 }
global $DIC
Definition: goto.php:24
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41

References $DIC, and $tpl.

Referenced by initAssessmentWizard(), initOverlay(), initPanel(), initSimpleDialog(), and initTooltip().

+ Here is the caller graph for this function:

◆ addYesNoDialog()

static ilYuiUtil::addYesNoDialog (   $dialogname,
  $headertext,
  $message,
  $yesaction,
  $noaction,
  $defaultyes,
  $icon = "help" 
)
static

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

331 {
332 global $DIC;
333
334 $tpl = $DIC["tpl"];
335 $lng = $DIC->language();
336
338
339 $template = new ilTemplate("tpl.yes_no_dialog.js", true, true, "Services/YUI");
340 $template->setVariable("DIALOGNAME", $dialogname);
341 $template->setVariable("YES_ACTION", $yesaction);
342 $template->setVariable("NO_ACTION", $noaction);
343 $template->setVariable("DIALOG_HEADER", $headertext);
344 $template->setVariable("DIALOG_MESSAGE", $message);
345 $template->setVariable("TEXT_YES", $lng->txt("yes"));
346 $template->setVariable("TEXT_NO", $lng->txt("no"));
347 switch ($icon) {
348 case "warn":
349 $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_WARN");
350 break;
351 case "tip":
352 $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_TIP");
353 break;
354 case "info":
355 $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_INFO");
356 break;
357 case "block":
358 $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_BLOCK");
359 break;
360 case "alarm":
361 $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_ALARM");
362 break;
363 case "help":
364 default:
365 $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_HELP");
366 break;
367 }
368 if ($defaultyes) {
369 $template->touchBlock("isDefaultYes");
370 } else {
371 $template->touchBlock("isDefaultNo");
372 }
373 $tpl->setCurrentBlock("HeadContent");
374 $tpl->setVariable("CONTENT_BLOCK", $template->get());
375 $tpl->parseCurrentBlock();
376 }
special template class to simplify handling of ITX/PEAR
static initSimpleDialog()
Init YUI Simple Dialog.
$lng
$message
Definition: xapiexit.php:14

References $DIC, $lng, $message, $tpl, and initSimpleDialog().

+ Here is the call graph for this function:

◆ getDragDropList()

static ilYuiUtil::getDragDropList (   $id_source,
  $title_source,
  $source,
  $id_dest,
  $title_dest,
  $dest 
)
static

get a drag & drop list

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

299 {
301
302 $template = new ilTemplate("tpl.dragdroplist.html", true, true, "Services/YUI");
303 foreach ($source as $id => $name) {
304 $template->setCurrentBlock("source_element");
305 $template->setVariable("ELEMENT_ID", $id);
306 $template->setVariable("ELEMENT_NAME", $name);
307 $template->parseCurrentBlock();
308 $template->setCurrentBlock("element");
309 $template->setVariable("ELEMENT_ID", $id);
310 $template->parseCurrentBlock();
311 }
312 foreach ($dest as $id => $name) {
313 $template->setCurrentBlock("dest_element");
314 $template->setVariable("ELEMENT_ID", $id);
315 $template->setVariable("ELEMENT_NAME", $name);
316 $template->parseCurrentBlock();
317 $template->setCurrentBlock("element");
318 $template->setVariable("ELEMENT_ID", $id);
319 $template->parseCurrentBlock();
320 }
321 $template->setVariable("TITLE_LIST_1", $title_source);
322 $template->setVariable("TITLE_LIST_2", $title_dest);
323 $template->setVariable("LIST_1", $id_source);
324 $template->setVariable("LIST_2", $id_dest);
325
326 return $template->get();
327 }
static initDragDropList()
init drag & drop list
if($format !==null) $name
Definition: metadata.php:230
$source
Definition: metadata.php:76

References $name, $source, and initDragDropList().

+ Here is the call graph for this function:

◆ getLocalPath()

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

Get local path of a YUI js file.

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

554 {
555 return self::YUI_BASE . "/" . $a_name;
556 }

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

+ Here is the caller graph for this function:

◆ initAnimation()

static ilYuiUtil::initAnimation ( ilGlobalTemplateInterface  $a_main_tpl = null)
static

Init YUI Animation.

Parameters
ilGlobalTemplateInterface | null$a_main_tpl

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

78 {
79 global $DIC;
80
81 if ($a_main_tpl == null) {
82 $tpl = $DIC["tpl"];
83 } else {
84 $tpl = $a_main_tpl;
85 }
86
87 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
88 $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
89 }

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent().

+ Here is the caller graph for this function:

◆ initAssessmentWizard()

static ilYuiUtil::initAssessmentWizard ( )
static

Init assessment wizard.

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

236 {
237 global $DIC;
238
239 $tpl = $DIC["tpl"];
240
241 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
242 $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
243 $tpl->addJavaScript(self::YUI_BASE . "/button/button-min.js");
244 $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
245 $tpl->addCss(self::YUI_BASE . "/button/assets/skins/sam/button.css");
247 }
static addContainerCss(ilGlobalTemplateInterface $a_main_tpl=null)
Add container css.

References $DIC, $tpl, and addContainerCss().

+ Here is the call graph for this function:

◆ initButtonControl()

static ilYuiUtil::initButtonControl ( )
static

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

@access public

Returns
void

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

409 {
410 global $DIC;
411
412 $tpl = $DIC["tpl"];
413
414 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
415 $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
416
417 $tpl->addJavaScript(self::YUI_BASE . "/container/container_core-min.js");
418 $tpl->addJavaScript(self::YUI_BASE . "/menu/menu-min.js");
419
420 $tpl->addJavaScript(self::YUI_BASE . "/button/button-min.js");
421
422 $tpl->addCss(self::YUI_BASE . "/button/assets/skins/sam/button.css");
423 $tpl->addCss(self::YUI_BASE . "/menu/assets/skins/sam/menu.css");
424 }

References $DIC, and $tpl.

Referenced by initColorPicker().

+ Here is the caller graph for this function:

◆ initCalendar()

static ilYuiUtil::initCalendar ( )
static

init calendar

@access public

Returns

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

387 {
388 global $DIC;
389
390 $tpl = $DIC["tpl"];
391
392 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
393 $tpl->addJavaScript(self::YUI_BASE . "/calendar/calendar-min.js");
394
395 $tpl->addCss(self::YUI_BASE . "/calendar/assets/skins/sam/calendar.css");
396 $tpl->addCss("./Services/Calendar/css/calendar.css");
397 }

References $DIC, and $tpl.

◆ initColorPicker()

static ilYuiUtil::initColorPicker ( )
static

init color picker button

@access public

Returns
void

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

435 {
436 global $DIC;
437
438 $tpl = $DIC["tpl"];
439
441
442 $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
443 $tpl->addJavaScript(self::YUI_BASE . "/slider/slider-min.js");
444 $tpl->addJavaScript(self::YUI_BASE . "/colorpicker/colorpicker-min.js");
445
446 $tpl->addCss('./Services/Form/css/color_picker.css');
447 $tpl->addCss(self::YUI_BASE . "/colorpicker/assets/skins/sam/colorpicker.css");
448 }
static initButtonControl()
init button control In the moment used for calendar color picker button

References $DIC, $tpl, and initButtonControl().

Referenced by ilColorPickerInputGUI\insert(), and ilTRBLColorPickerInputGUI\insert().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initConnection()

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

Init YUI Connection module.

Parameters
ilGlobalTemplateInterface | null$a_main_tpl

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

21 {
22 global $DIC;
23
24 if ($a_main_tpl == null) {
25 $tpl = $DIC["tpl"];
26 } else {
27 $tpl = $a_main_tpl;
28 }
29 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
30 $tpl->addJavaScript(self::YUI_BASE . "/connection/connection-min.js");
31 }

References $DIC, and $tpl.

Referenced by ilExplorerBaseGUI\__construct(), ilBlockGUI\__construct(), ilAccordionGUI\addJavaScript(), ilLMPresentationGUI\addResourceFiles(), ilPCDataTableGUI\editDataCl(), ilMainMenuGUI\getHTML(), ilInternalLinkGUI\getInitHTML(), ilExplorer\getOutput(), ilCloudPluginInitGUI\initGUI(), ilHelpGUI\initHelp(), ilMediaPlayerGUI\initJavascript(), ILIAS\COPage\Editor\UI\Init\initUI(), ilGlobalPageTemplate\prepareBasicJS(), ilTable2GUI\renderFilter(), and ilAdvancedSelectionListGUI\setAsynch().

+ Here is the caller graph for this function:

◆ initConnectionWithAnimation()

static ilYuiUtil::initConnectionWithAnimation ( )
static

Init YUI Connection module.

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

169 {
170 global $DIC;
171
172 $tpl = $DIC["tpl"];
173
174 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
175 $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
176 $tpl->addJavaScript(self::YUI_BASE . "/connection/connection-min.js");
177 }

References $DIC, and $tpl.

Referenced by ilTestOutputGUI\executeCommand(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), and ilFlashFileInputGUI\insert().

+ Here is the caller graph for this function:

◆ initDom()

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

Init YUI Dom.

Parameters
ilGlobalTemplateInterface | null$a_main_tpl

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

59 {
60 global $DIC;
61
62 if ($a_main_tpl == null) {
63 $tpl = $DIC["tpl"];
64 } else {
65 $tpl = $a_main_tpl;
66 }
67
68 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
69 }

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent(), ilDataCollectionGlobalTemplate\printToStdout(), ilCOPageGlobalTemplate\printToStdout(), ilRTEGlobalTemplate\printToStdout(), ilGlobalTemplate\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.

Parameters
ilGlobalTemplateInterface | null$a_main_tpl

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

119 {
120 global $DIC;
121
122 if ($a_main_tpl == null) {
123 $tpl = $DIC["tpl"];
124 } else {
125 $tpl = $a_main_tpl;
126 }
127
128 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
129 }

References $DIC, and $tpl.

Referenced by ilTestServiceGUI\getPassListOfAnswersWithScoring(), assTextQuestionGUI\getTestOutput(), ilCalendarAppointmentGUI\initForm(), 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.

Parameters
ilGlobalTemplateInterface | null$a_main_tpl

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

98 {
99 global $DIC;
100
101 if ($a_main_tpl == null) {
102 $tpl = $DIC["tpl"];
103 } else {
104 $tpl = $a_main_tpl;
105 }
106
107 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
108 $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
109 $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
110 }

References $DIC, and $tpl.

Referenced by ilHierarchyFormGUI\__construct(), ilPCDataTableGUI\editDataCl(), ilSurveyPageGUI\renderPage(), and ilCalendarWeekGUI\show().

+ Here is the caller graph for this function:

◆ initDragDropAnimation()

static ilYuiUtil::initDragDropAnimation ( )
static

init drag & drop and animation

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

270 {
271 global $DIC;
272
273 $tpl = $DIC["tpl"];
274
275 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
276 $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
277 $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
278 }

References $DIC, and $tpl.

◆ initDragDropList()

static ilYuiUtil::initDragDropList ( )
static

init drag & drop list

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

254 {
255 global $DIC;
256
257 $tpl = $DIC["tpl"];
258
259 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
260 $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
261 $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
262 $tpl->addCss("./Services/YUI/templates/default/DragDropList.css");
263 }

References $DIC, and $tpl.

Referenced by getDragDropList().

+ Here is the caller graph for this function:

◆ initElementSelection()

static ilYuiUtil::initElementSelection ( )
static

init element selection

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

285 {
286 global $DIC;
287
288 $tpl = $DIC["tpl"];
289
290 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
291 $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
292 }

References $DIC, and $tpl.

◆ initEvent()

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

Init YUI Event.

Parameters
ilGlobalTemplateInterface | null$a_main_tpl

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

40 {
41 global $DIC;
42
43 if ($a_main_tpl == null) {
44 $tpl = $DIC["tpl"];
45 } else {
46 $tpl = $a_main_tpl;
47 }
48
49 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
50 }

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent().

+ Here is the caller graph for this function:

◆ initJson()

static ilYuiUtil::initJson ( )
static

Init YUI JSON component.

Author
jposs.nosp@m.elt@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

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

473 {
474 global $DIC;
475
476 $tpl = $DIC["tpl"];
477 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
478 $tpl->addJavaScript(self::YUI_BASE . "/json/json-min.js");
479 }

References $DIC, and $tpl.

◆ initLayout()

static ilYuiUtil::initLayout ( )
static

Init layout (alpha!)

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

486 {
487 global $DIC;
488
489 $tpl = $DIC["tpl"];
490
491 $tpl->addCss(self::YUI_BASE . "/assets/skins/sam/resize.css");
492 $tpl->addCss(self::YUI_BASE . "/assets/skins/sam/layout.css");
493
494 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
495 $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
496 $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
497 $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
498 $tpl->addJavaScript(self::YUI_BASE . "/resize/resize-min.js");
499 $tpl->addJavaScript(self::YUI_BASE . "/layout/layout-min.js");
500 }

References $DIC, and $tpl.

◆ initMenu()

static ilYuiUtil::initMenu ( )
static

Init YUI Menu module.

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

184 {
185 global $DIC;
186
187 $tpl = $DIC["tpl"];
188
189 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
190 $tpl->addJavaScript(self::YUI_BASE . "/container/container_core.js");
191 $tpl->addJavaScript(self::YUI_BASE . "/menu/menu-min.js");
192 $tpl->addCss(self::YUI_BASE . "/menu/assets/menu.css");
193 }

References $DIC, and $tpl.

◆ initOverlay()

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

Init YUI Overlay module.

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

200 {
201 global $DIC;
202
203 if ($a_main_tpl == null) {
204 $tpl = $DIC["tpl"];
205 } else {
206 $tpl = $a_main_tpl;
207 }
208
209 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
210 $tpl->addJavaScript(self::YUI_BASE . "/container/container_core-min.js");
212 }

References $DIC, $tpl, and addContainerCss().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initPanel()

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

Init yui panel.

@access public

Parameters
bool$a_resize
ilGlobalTemplateInterface | null$a_main_tpl
Returns
void

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

143 {
144 global $DIC;
145
146 if ($a_main_tpl == null) {
147 $tpl = $DIC["tpl"];
148 } else {
149 $tpl = $a_main_tpl;
150 }
151
152 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
153 $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
155 $tpl->addCss("./Services/Calendar/css/panel_min.css");
156
157 if ($a_resize) {
158 $tpl->addCss(self::YUI_BASE . "/resize/assets/skins/sam/resize.css");
159 $tpl->addJavaScript(self::YUI_BASE . "/utilities/utilities-min.js");
160 $tpl->addJavaScript(self::YUI_BASE . "/resize/resize-min.js");
161 }
162 }

References $DIC, $tpl, and addContainerCss().

Referenced by ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilPCDataTableGUI\editDataCl(), ilNoteGUI\initJavascript(), ilTaggingGUI\initJavascript(), ilLPObjectStatisticsLPTableGUI\initLearningProgressDetailsLayer(), ilExplorerSelectInputGUI\render(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initSimpleDialog()

static ilYuiUtil::initSimpleDialog ( )
static

Init YUI Simple Dialog.

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

219 {
220 global $DIC;
221
222 $tpl = $DIC["tpl"];
223
224 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
225 $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
226 $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
228 $tpl->addCss("./Services/YUI/templates/default/tpl.simpledialog.css");
229 }

References $DIC, $tpl, and addContainerCss().

Referenced by addYesNoDialog().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initTabView()

static ilYuiUtil::initTabView ( )
static

Init YUI TabView component.

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

455 {
456 global $DIC;
457
458 $tpl = $DIC["tpl"];
459
460 $tpl->addCss(self::YUI_BASE . "/tabview/assets/skins/sam/tabview.css");
461 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
462 $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
463 $tpl->addJavaScript(self::YUI_BASE . "/tabview/tabview-min.js");
464 }

References $DIC, and $tpl.

◆ initTooltip()

static ilYuiUtil::initTooltip ( )
static

Init YUI Event.

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

522 {
523 global $DIC;
524
525 $tpl = $DIC["tpl"];
526
528 $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
529 $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
530 $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
531 }

References $DIC, $tpl, and addContainerCss().

+ Here is the call graph for this function:

◆ initTreeView()

static ilYuiUtil::initTreeView ( )
static

Init treeView.

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

507 {
508 global $DIC;
509
510 $tpl = $DIC["tpl"];
511
512 $tpl->addJavaScript(self::getLocalPath() . '/yahoo/yahoo-min.js');
513 $tpl->addJavaScript(self::getLocalPath() . '/event/event-min.js');
514 $tpl->addJavaScript(self::getLocalPath() . '/treeview/treeview.js');
515 }

References $DIC, and $tpl.

Field Documentation

◆ YUI_BASE

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

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


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