ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ addYesNoDialog()

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

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

References $DIC, $lng, $message, and $tpl.

331  {
332  global $DIC;
333 
334  $tpl = $DIC["tpl"];
335  $lng = $DIC->language();
336 
337  self::initSimpleDialog();
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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$lng
$DIC
Definition: xapitoken.php:46
$message
Definition: xapiexit.php:14

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

References $name, and $source.

299  {
300  self::initDragDropList();
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  }
if($format !==null) $name
Definition: metadata.php:230
$source
Definition: metadata.php:76

◆ getLocalPath()

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

Get local path of a YUI js file.

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

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

554  {
555  return self::YUI_BASE . "/" . $a_name;
556  }
+ 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.

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent().

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

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");
246  self::addContainerCss();
247  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initButtonControl()

static ilYuiUtil::initButtonControl ( )
static

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

public

Returns
void

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initCalendar()

static ilYuiUtil::initCalendar ( )
static

init calendar

public

Returns

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initColorPicker()

static ilYuiUtil::initColorPicker ( )
static

init color picker button

public

Returns
void

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

References $DIC, and $tpl.

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

435  {
436  global $DIC;
437 
438  $tpl = $DIC["tpl"];
439 
440  self::initButtonControl();
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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

Referenced by ilExplorerBaseGUI\__construct(), ilBlockGUI\__construct(), ilAccordionGUI\addJavaScript(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilMainMenuGUI\getHTML(), ilInternalLinkGUI\getInitHTML(), ilExplorer\getOutput(), ilCloudPluginInitGUI\initGUI(), ilHelpGUI\initHelp(), ilMediaPlayerGUI\initJavascript(), ilLMPresentationGUI\layout(), ilTable2GUI\renderFilter(), ilAdvancedSelectionListGUI\setAsynch(), and ilPageObjectGUI\showPage().

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

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

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

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

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

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

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

Referenced by ilHierarchyFormGUI\__construct(), ilCalendarMonthGUI\addScheduleFilter(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilCalendarDayGUI\executeCommand(), ilSurveyPageGUI\renderPage(), ilCalendarWeekGUI\show(), and ilPageObjectGUI\showPage().

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initDragDropList()

static ilYuiUtil::initDragDropList ( )
static

init drag & drop list

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initElementSelection()

static ilYuiUtil::initElementSelection ( )
static

init element selection

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

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

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent().

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initLayout()

static ilYuiUtil::initLayout ( )
static

Init layout (alpha!)

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initMenu()

static ilYuiUtil::initMenu ( )
static

Init YUI Menu module.

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initOverlay()

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

Init YUI Overlay module.

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

References $DIC, and $tpl.

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

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");
211  self::addContainerCss($tpl);
212  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ Here is the caller graph for this function:

◆ initPanel()

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

Init yui panel.

public

Parameters
bool$a_resize
ilGlobalTemplateInterface | null$a_main_tpl
Returns
void

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

References $DIC, and $tpl.

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

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");
154  self::addContainerCss($tpl);
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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46
+ 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.

References $DIC, and $tpl.

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");
227  self::addContainerCss();
228  $tpl->addCss("./Services/YUI/templates/default/tpl.simpledialog.css");
229  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initTabView()

static ilYuiUtil::initTabView ( )
static

Init YUI TabView component.

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initTooltip()

static ilYuiUtil::initTooltip ( )
static

Init YUI Event.

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

References $DIC, and $tpl.

522  {
523  global $DIC;
524 
525  $tpl = $DIC["tpl"];
526 
527  self::addContainerCss();
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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

◆ initTreeView()

static ilYuiUtil::initTreeView ( )
static

Init treeView.

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

References $DIC, and $tpl.

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  }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

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: