ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilYuiUtil Class Reference

Yahoo YUI Library Utility functions. More...

+ Collaboration diagram for ilYuiUtil:

Static Public Member Functions

static initConnection (ilTemplate $a_main_tpl=null)
 Init YUI Connection module. More...
 
static initEvent ()
 Init YUI Event. More...
 
static initDom ()
 Init YUI Dom. More...
 
static initAnimation ()
 Init YUI Animation. More...
 
static initDragDrop ()
 Init YUI Drag and Drop. More...
 
static initDomEvent ()
 Init YUI DomEvent. More...
 
static initPanel ($a_resize=false, ilTemplate $a_main_tpl=null)
 Init yui panel. More...
 
static initConnectionWithAnimation ()
 Init YUI Connection module. More...
 
static initMenu ()
 Init YUI Menu module. More...
 
static initOverlay (ilTemplate $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 (ilTemplate $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 ( ilTemplate  $a_main_tpl = null)
staticprotected

Add container css.

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

References $DIC, and $tpl.

530  {
531  global $DIC;
532 
533  if ($a_main_tpl == null) {
534  $tpl = $DIC["tpl"];
535  } else {
536  $tpl = $a_main_tpl;
537  }
538 
539  $tpl->addCss(self::getLocalPath("container/assets/skins/sam/container.css"));
540  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ addYesNoDialog()

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

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

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

298  {
299  global $DIC;
300 
301  $tpl = $DIC["tpl"];
302  $lng = $DIC->language();
303 
304  self::initSimpleDialog();
305 
306  $template = new ilTemplate("tpl.yes_no_dialog.js", true, true, "Services/YUI");
307  $template->setVariable("DIALOGNAME", $dialogname);
308  $template->setVariable("YES_ACTION", $yesaction);
309  $template->setVariable("NO_ACTION", $noaction);
310  $template->setVariable("DIALOG_HEADER", $headertext);
311  $template->setVariable("DIALOG_MESSAGE", $message);
312  $template->setVariable("TEXT_YES", $lng->txt("yes"));
313  $template->setVariable("TEXT_NO", $lng->txt("no"));
314  switch ($icon) {
315  case "warn":
316  $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_WARN");
317  break;
318  case "tip":
319  $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_TIP");
320  break;
321  case "info":
322  $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_INFO");
323  break;
324  case "block":
325  $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_BLOCK");
326  break;
327  case "alarm":
328  $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_ALARM");
329  break;
330  case "help":
331  default:
332  $template->setVariable("ICON", "YAHOO.widget.SimpleDialog.ICON_HELP");
333  break;
334  }
335  if ($defaultyes) {
336  $template->touchBlock("isDefaultYes");
337  } else {
338  $template->touchBlock("isDefaultNo");
339  }
340  $tpl->setCurrentBlock("HeadContent");
341  $tpl->setVariable("CONTENT_BLOCK", $template->get());
342  $tpl->parseCurrentBlock();
343  }
$template
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
catch(Exception $e) $message
$lng
special template class to simplify handling of ITX/PEAR

◆ getDragDropList()

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

get a drag & drop list

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

References $id, $name, $source, and $template.

266  {
267  self::initDragDropList();
268 
269  $template = new ilTemplate("tpl.dragdroplist.html", true, true, "Services/YUI");
270  foreach ($source as $id => $name) {
271  $template->setCurrentBlock("source_element");
272  $template->setVariable("ELEMENT_ID", $id);
273  $template->setVariable("ELEMENT_NAME", $name);
274  $template->parseCurrentBlock();
275  $template->setCurrentBlock("element");
276  $template->setVariable("ELEMENT_ID", $id);
277  $template->parseCurrentBlock();
278  }
279  foreach ($dest as $id => $name) {
280  $template->setCurrentBlock("dest_element");
281  $template->setVariable("ELEMENT_ID", $id);
282  $template->setVariable("ELEMENT_NAME", $name);
283  $template->parseCurrentBlock();
284  $template->setCurrentBlock("element");
285  $template->setVariable("ELEMENT_ID", $id);
286  $template->parseCurrentBlock();
287  }
288  $template->setVariable("TITLE_LIST_1", $title_source);
289  $template->setVariable("TITLE_LIST_2", $title_dest);
290  $template->setVariable("LIST_1", $id_source);
291  $template->setVariable("LIST_2", $id_dest);
292 
293  return $template->get();
294  }
$template
if(!array_key_exists('StateId', $_REQUEST)) $id
special template class to simplify handling of ITX/PEAR
$source
Definition: linkback.php:22

◆ getLocalPath()

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

Get local path of a YUI js file.

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

Referenced by ilSCORM13Player\debugGUI(), ilCOPageHTMLExport\exportSupportScripts(), and ilObjContentObject\getSupplyingExportFiles().

521  {
522  return self::YUI_BASE . "/" . $a_name;
523  }
+ Here is the caller graph for this function:

◆ initAnimation()

static ilYuiUtil::initAnimation ( )
static

Init YUI Animation.

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

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent().

62  {
63  global $DIC;
64 
65  $tpl = $DIC["tpl"];
66 
67  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
68  $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
69  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initAssessmentWizard()

static ilYuiUtil::initAssessmentWizard ( )
static

Init assessment wizard.

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

References $DIC, and $tpl.

203  {
204  global $DIC;
205 
206  $tpl = $DIC["tpl"];
207 
208  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
209  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
210  $tpl->addJavaScript(self::YUI_BASE . "/button/button-min.js");
211  $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
212  $tpl->addCss(self::YUI_BASE . "/button/assets/skins/sam/button.css");
213  self::addContainerCss();
214  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initButtonControl()

static ilYuiUtil::initButtonControl ( )
static

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

public

Returns
void

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

References $DIC, and $tpl.

376  {
377  global $DIC;
378 
379  $tpl = $DIC["tpl"];
380 
381  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
382  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
383 
384  $tpl->addJavaScript(self::YUI_BASE . "/container/container_core-min.js");
385  $tpl->addJavaScript(self::YUI_BASE . "/menu/menu-min.js");
386 
387  $tpl->addJavaScript(self::YUI_BASE . "/button/button-min.js");
388 
389  $tpl->addCss(self::YUI_BASE . "/button/assets/skins/sam/button.css");
390  $tpl->addCss(self::YUI_BASE . "/menu/assets/skins/sam/menu.css");
391  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initCalendar()

static ilYuiUtil::initCalendar ( )
static

init calendar

public

Returns

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

References $DIC, and $tpl.

354  {
355  global $DIC;
356 
357  $tpl = $DIC["tpl"];
358 
359  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
360  $tpl->addJavaScript(self::YUI_BASE . "/calendar/calendar-min.js");
361 
362  $tpl->addCss(self::YUI_BASE . "/calendar/assets/skins/sam/calendar.css");
363  $tpl->addCss("./Services/Calendar/css/calendar.css");
364  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initColorPicker()

static ilYuiUtil::initColorPicker ( )
static

init color picker button

public

Returns
void

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

References $DIC, and $tpl.

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

402  {
403  global $DIC;
404 
405  $tpl = $DIC["tpl"];
406 
407  self::initButtonControl();
408 
409  $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
410  $tpl->addJavaScript(self::YUI_BASE . "/slider/slider-min.js");
411  $tpl->addJavaScript(self::YUI_BASE . "/colorpicker/colorpicker-min.js");
412 
413  $tpl->addCss('./Services/Form/css/color_picker.css');
414  $tpl->addCss(self::YUI_BASE . "/colorpicker/assets/skins/sam/colorpicker.css");
415  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initConnection()

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

Init YUI Connection module.

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

References $DIC, and $tpl.

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

19  {
20  global $DIC;
21 
22  if ($a_main_tpl == null) {
23  $tpl = $DIC["tpl"];
24  } else {
25  $tpl = $a_main_tpl;
26  }
27  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
28  $tpl->addJavaScript(self::YUI_BASE . "/connection/connection-min.js");
29  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initConnectionWithAnimation()

static ilYuiUtil::initConnectionWithAnimation ( )
static

Init YUI Connection module.

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

References $DIC, and $tpl.

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

136  {
137  global $DIC;
138 
139  $tpl = $DIC["tpl"];
140 
141  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
142  $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
143  $tpl->addJavaScript(self::YUI_BASE . "/connection/connection-min.js");
144  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initDom()

static ilYuiUtil::initDom ( )
static

Init YUI Dom.

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

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent(), and ilTemplate\show().

49  {
50  global $DIC;
51 
52  $tpl = $DIC["tpl"];
53 
54  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
55  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initDomEvent()

static ilYuiUtil::initDomEvent ( )
static

Init YUI DomEvent.

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

References $DIC, and $tpl.

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

91  {
92  global $DIC;
93 
94  $tpl = $DIC["tpl"];
95 
96  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
97  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initDragDrop()

static ilYuiUtil::initDragDrop ( )
static

Init YUI Drag and Drop.

Definition at line 75 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().

76  {
77  global $DIC;
78 
79  $tpl = $DIC["tpl"];
80 
81  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
82  $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
83  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
84  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initDragDropAnimation()

static ilYuiUtil::initDragDropAnimation ( )
static

init drag & drop and animation

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

References $DIC, and $tpl.

237  {
238  global $DIC;
239 
240  $tpl = $DIC["tpl"];
241 
242  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
243  $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
244  $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
245  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initDragDropList()

static ilYuiUtil::initDragDropList ( )
static

init drag & drop list

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

References $DIC, and $tpl.

221  {
222  global $DIC;
223 
224  $tpl = $DIC["tpl"];
225 
226  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
227  $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
228  $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
229  $tpl->addCss("./Services/YUI/templates/default/DragDropList.css");
230  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initElementSelection()

static ilYuiUtil::initElementSelection ( )
static

init element selection

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

References $DIC, and $tpl.

252  {
253  global $DIC;
254 
255  $tpl = $DIC["tpl"];
256 
257  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
258  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
259  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initEvent()

static ilYuiUtil::initEvent ( )
static

Init YUI Event.

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

References $DIC, and $tpl.

Referenced by ilPropertyFormGUI\getContent().

36  {
37  global $DIC;
38 
39  $tpl = $DIC["tpl"];
40 
41  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
42  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ 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 439 of file class.ilYuiUtil.php.

References $DIC, and $tpl.

Referenced by ilChatroomBlockGUI\getHTML().

440  {
441  global $DIC;
442 
443  $tpl = $DIC["tpl"];
444  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
445  $tpl->addJavaScript(self::YUI_BASE . "/json/json-min.js");
446  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initLayout()

static ilYuiUtil::initLayout ( )
static

Init layout (alpha!)

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

References $DIC, and $tpl.

453  {
454  global $DIC;
455 
456  $tpl = $DIC["tpl"];
457 
458  $tpl->addCss(self::YUI_BASE . "/assets/skins/sam/resize.css");
459  $tpl->addCss(self::YUI_BASE . "/assets/skins/sam/layout.css");
460 
461  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
462  $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
463  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
464  $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
465  $tpl->addJavaScript(self::YUI_BASE . "/resize/resize-min.js");
466  $tpl->addJavaScript(self::YUI_BASE . "/layout/layout-min.js");
467  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initMenu()

static ilYuiUtil::initMenu ( )
static

Init YUI Menu module.

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

References $DIC, and $tpl.

151  {
152  global $DIC;
153 
154  $tpl = $DIC["tpl"];
155 
156  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
157  $tpl->addJavaScript(self::YUI_BASE . "/container/container_core.js");
158  $tpl->addJavaScript(self::YUI_BASE . "/menu/menu-min.js");
159  $tpl->addCss(self::YUI_BASE . "/menu/assets/menu.css");
160  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initOverlay()

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

Init YUI Overlay module.

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

References $DIC, and $tpl.

Referenced by ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilTestScoringByQuestionsGUI\getActiveSubTabId(), ilOverlayGUI\initJavascript(), and ilAssLacLegendGUI\initOverlay().

167  {
168  global $DIC;
169 
170  if ($a_main_tpl == null) {
171  $tpl = $DIC["tpl"];
172  } else {
173  $tpl = $a_main_tpl;
174  }
175 
176  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
177  $tpl->addJavaScript(self::YUI_BASE . "/container/container_core-min.js");
178  self::addContainerCss($tpl);
179  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initPanel()

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

Init yui panel.

public

Parameters
void
Returns
void

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

References $DIC, and $tpl.

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

110  {
111  global $DIC;
112 
113  if ($a_main_tpl != null) {
114  $tpl = $a_main_tpl;
115  } else {
116  $tpl = $DIC["tpl"];
117  }
118 
119  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
120  $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
121  self::addContainerCss($tpl);
122  $tpl->addCss("./Services/Calendar/css/panel_min.css");
123 
124  if ($a_resize) {
125  $tpl->addCss(self::YUI_BASE . "/resize/assets/skins/sam/resize.css");
126  $tpl->addJavaScript(self::YUI_BASE . "/utilities/utilities-min.js");
127  $tpl->addJavaScript(self::YUI_BASE . "/resize/resize-min.js");
128  }
129  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initSimpleDialog()

static ilYuiUtil::initSimpleDialog ( )
static

Init YUI Simple Dialog.

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

References $DIC, and $tpl.

186  {
187  global $DIC;
188 
189  $tpl = $DIC["tpl"];
190 
191  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
192  $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
193  $tpl->addJavaScript(self::YUI_BASE . "/dragdrop/dragdrop-min.js");
194  self::addContainerCss();
195  $tpl->addCss("./Services/YUI/templates/default/tpl.simpledialog.css");
196  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initTabView()

static ilYuiUtil::initTabView ( )
static

Init YUI TabView component.

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

References $DIC, and $tpl.

422  {
423  global $DIC;
424 
425  $tpl = $DIC["tpl"];
426 
427  $tpl->addCss(self::YUI_BASE . "/tabview/assets/skins/sam/tabview.css");
428  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
429  $tpl->addJavaScript(self::YUI_BASE . "/element/element-min.js");
430  $tpl->addJavaScript(self::YUI_BASE . "/tabview/tabview-min.js");
431  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initTooltip()

static ilYuiUtil::initTooltip ( )
static

Init YUI Event.

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

References $DIC, and $tpl.

489  {
490  global $DIC;
491 
492  $tpl = $DIC["tpl"];
493 
494  self::addContainerCss();
495  $tpl->addJavaScript(self::YUI_BASE . "/yahoo-dom-event/yahoo-dom-event.js");
496  $tpl->addJavaScript(self::YUI_BASE . "/animation/animation-min.js");
497  $tpl->addJavaScript(self::YUI_BASE . "/container/container-min.js");
498  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ initTreeView()

static ilYuiUtil::initTreeView ( )
static

Init treeView.

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

References $DIC, and $tpl.

474  {
475  global $DIC;
476 
477  $tpl = $DIC["tpl"];
478 
479  $tpl->addJavaScript(self::getLocalPath() . '/yahoo/yahoo-min.js');
480  $tpl->addJavaScript(self::getLocalPath() . '/event/event-min.js');
481  $tpl->addJavaScript(self::getLocalPath() . '/treeview/treeview.js');
482  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

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: