Yahoo YUI Library Utility functions.
More...
|
static | initConnection () |
| 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) |
| Init yui panel. More...
|
|
static | initConnectionWithAnimation () |
| Init YUI Connection module. More...
|
|
static | initMenu () |
| Init YUI Menu module. More...
|
|
static | initOverlay () |
| 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...
|
|
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 11 of file class.ilYuiUtil.php.
◆ addContainerCss()
static ilYuiUtil::addContainerCss |
( |
| ) |
|
|
staticprotected |
Add container css.
Definition at line 445 of file class.ilYuiUtil.php.
References $tpl.
449 $tpl->addCss(self::getLocalPath(
"container/assets/skins/sam/container.css"));
◆ addYesNoDialog()
static ilYuiUtil::addYesNoDialog |
( |
|
$dialogname, |
|
|
|
$headertext, |
|
|
|
$message, |
|
|
|
$yesaction, |
|
|
|
$noaction, |
|
|
|
$defaultyes, |
|
|
|
$icon = "help" |
|
) |
| |
|
static |
Definition at line 242 of file class.ilYuiUtil.php.
References $lng, and $tpl.
246 self::initSimpleDialog();
248 $template =
new ilTemplate(
"tpl.yes_no_dialog.js", TRUE, TRUE,
"Services/YUI");
249 $template->setVariable(
"DIALOGNAME", $dialogname);
250 $template->setVariable(
"YES_ACTION", $yesaction);
251 $template->setVariable(
"NO_ACTION", $noaction);
252 $template->setVariable(
"DIALOG_HEADER", $headertext);
253 $template->setVariable(
"DIALOG_MESSAGE", $message);
254 $template->setVariable(
"TEXT_YES", $lng->txt(
"yes"));
255 $template->setVariable(
"TEXT_NO", $lng->txt(
"no"));
259 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
262 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
265 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
268 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
271 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
275 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
280 $template->touchBlock(
"isDefaultYes");
284 $template->touchBlock(
"isDefaultNo");
286 $tpl->setCurrentBlock(
"HeadContent");
287 $tpl->setVariable(
"CONTENT_BLOCK", $template->get());
288 $tpl->parseCurrentBlock();
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 210 of file class.ilYuiUtil.php.
212 self::initDragDropList();
214 $template =
new ilTemplate(
"tpl.dragdroplist.html", TRUE, TRUE,
"Services/YUI");
215 foreach ($source as $id => $name)
217 $template->setCurrentBlock(
"source_element");
218 $template->setVariable(
"ELEMENT_ID", $id);
219 $template->setVariable(
"ELEMENT_NAME", $name);
220 $template->parseCurrentBlock();
221 $template->setCurrentBlock(
"element");
222 $template->setVariable(
"ELEMENT_ID", $id);
223 $template->parseCurrentBlock();
225 foreach ($dest as $id => $name)
227 $template->setCurrentBlock(
"dest_element");
228 $template->setVariable(
"ELEMENT_ID", $id);
229 $template->setVariable(
"ELEMENT_NAME", $name);
230 $template->parseCurrentBlock();
231 $template->setCurrentBlock(
"element");
232 $template->setVariable(
"ELEMENT_ID", $id);
233 $template->parseCurrentBlock();
235 $template->setVariable(
"TITLE_LIST_1", $title_source);
236 $template->setVariable(
"TITLE_LIST_2", $title_dest);
237 $template->setVariable(
"LIST_1", $id_source);
238 $template->setVariable(
"LIST_2", $id_dest);
239 return $template->get();
special template class to simplify handling of ITX/PEAR
◆ getLocalPath()
static ilYuiUtil::getLocalPath |
( |
|
$a_name = "" | ) |
|
|
static |
◆ initAnimation()
static ilYuiUtil::initAnimation |
( |
| ) |
|
|
static |
Init YUI Animation.
Definition at line 50 of file class.ilYuiUtil.php.
References $tpl.
Referenced by ilPropertyFormGUI\getContent().
54 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
55 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
◆ initAssessmentWizard()
static ilYuiUtil::initAssessmentWizard |
( |
| ) |
|
|
static |
Init assessment wizard.
Definition at line 159 of file class.ilYuiUtil.php.
References $tpl.
163 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
164 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
165 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
166 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
167 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
168 self::addContainerCss();
◆ initButtonControl()
static ilYuiUtil::initButtonControl |
( |
| ) |
|
|
static |
init button control In the moment used for calendar color picker button
public
- Returns
- void
Definition at line 317 of file class.ilYuiUtil.php.
References $tpl.
321 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
322 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
324 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
325 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
327 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
329 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
330 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/skins/sam/menu.css");
◆ initCalendar()
static ilYuiUtil::initCalendar |
( |
| ) |
|
|
static |
init calendar
public
- Returns
Definition at line 298 of file class.ilYuiUtil.php.
References $tpl.
302 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
303 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/calendar/calendar-min.js");
305 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/calendar/assets/skins/sam/calendar.css");
306 $tpl->addCss(
"./Services/Calendar/css/calendar.css");
◆ initColorPicker()
static ilYuiUtil::initColorPicker |
( |
| ) |
|
|
static |
init color picker button
public
- Returns
- void
Definition at line 340 of file class.ilYuiUtil.php.
References $tpl.
Referenced by ilColorPickerInputGUI\insert(), and ilTRBLColorPickerInputGUI\insert().
344 self::initButtonControl();
346 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
347 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/slider/slider-min.js");
348 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/colorpicker/colorpicker-min.js");
350 $tpl->addCss(
'./Services/Form/css/color_picker.css');
351 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/colorpicker/assets/skins/sam/colorpicker.css");
◆ initConnection()
static ilYuiUtil::initConnection |
( |
| ) |
|
|
static |
Init YUI Connection module.
Definition at line 19 of file class.ilYuiUtil.php.
References $tpl.
Referenced by ilBlockGUI\__construct(), ilAccordionGUI\addJavaScript(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilInternalLinkGUI\getInitHTML(), ilExplorer\getOutput(), ilCloudPluginInitGUI\initGUI(), ilMediaPlayerGUI\initJavascript(), ilTable2GUI\renderFilter(), ilAdvancedSelectionListGUI\setAsynch(), and ilPageObjectGUI\showPage().
22 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
23 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
◆ initConnectionWithAnimation()
static ilYuiUtil::initConnectionWithAnimation |
( |
| ) |
|
|
static |
◆ initDom()
static ilYuiUtil::initDom |
( |
| ) |
|
|
static |
◆ initDomEvent()
static ilYuiUtil::initDomEvent |
( |
| ) |
|
|
static |
◆ initDragDrop()
static ilYuiUtil::initDragDrop |
( |
| ) |
|
|
static |
◆ initDragDropAnimation()
static ilYuiUtil::initDragDropAnimation |
( |
| ) |
|
|
static |
init drag & drop and animation
Definition at line 187 of file class.ilYuiUtil.php.
References $tpl.
191 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
192 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
193 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
◆ initDragDropList()
static ilYuiUtil::initDragDropList |
( |
| ) |
|
|
static |
init drag & drop list
Definition at line 174 of file class.ilYuiUtil.php.
References $tpl.
178 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
179 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
180 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
181 $tpl->addCss(
"./Services/YUI/templates/default/DragDropList.css");
◆ initElementSelection()
static ilYuiUtil::initElementSelection |
( |
| ) |
|
|
static |
init element selection
Definition at line 199 of file class.ilYuiUtil.php.
References $tpl.
203 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
204 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
◆ initEvent()
static ilYuiUtil::initEvent |
( |
| ) |
|
|
static |
◆ initJson()
static ilYuiUtil::initJson |
( |
| ) |
|
|
static |
◆ initLayout()
static ilYuiUtil::initLayout |
( |
| ) |
|
|
static |
Init layout (alpha!)
Definition at line 381 of file class.ilYuiUtil.php.
References $tpl.
385 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/resize.css");
386 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/layout.css");
388 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
389 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
390 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
391 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
392 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
393 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/layout/layout-min.js");
◆ initMenu()
static ilYuiUtil::initMenu |
( |
| ) |
|
|
static |
Init YUI Menu module.
Definition at line 120 of file class.ilYuiUtil.php.
References $tpl.
124 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
125 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core.js");
126 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
127 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/menu.css");
◆ initOverlay()
static ilYuiUtil::initOverlay |
( |
| ) |
|
|
static |
◆ initPanel()
static ilYuiUtil::initPanel |
( |
|
$a_resize = false | ) |
|
|
static |
Init yui panel.
public
- Parameters
-
- Returns
- void
Definition at line 87 of file class.ilYuiUtil.php.
References $tpl.
Referenced by ilTestScoringByQuestionsGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilTaggingGUI\initJavascript(), ilNoteGUI\initJavascript(), ilLPObjectStatisticsLPTableGUI\initLearningProgressDetailsLayer(), ilScoringAdjustmentGUI\outputAdjustQuestionForm(), ilExplorerSelectInputGUI\render(), ilCalendarDayGUI\show(), ilCalendarWeekGUI\show(), ilCalendarMonthGUI\show(), and ilPageObjectGUI\showPage().
91 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
92 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
93 self::addContainerCss();
94 $tpl->addCss(
"./Services/Calendar/css/panel_min.css");
98 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/resize/assets/skins/sam/resize.css");
99 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/utilities/utilities-min.js");
100 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
◆ initSimpleDialog()
static ilYuiUtil::initSimpleDialog |
( |
| ) |
|
|
static |
Init YUI Simple Dialog.
Definition at line 145 of file class.ilYuiUtil.php.
References $tpl.
149 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
150 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
151 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
152 self::addContainerCss();
153 $tpl->addCss(
"./Services/YUI/templates/default/tpl.simpledialog.css");
◆ initTabView()
static ilYuiUtil::initTabView |
( |
| ) |
|
|
static |
Init YUI TabView component.
Definition at line 357 of file class.ilYuiUtil.php.
References $tpl.
361 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/tabview/assets/skins/sam/tabview.css");
362 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
363 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
364 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/tabview/tabview-min.js");
◆ initTooltip()
static ilYuiUtil::initTooltip |
( |
| ) |
|
|
static |
Init YUI Event.
Definition at line 411 of file class.ilYuiUtil.php.
References $tpl.
415 self::addContainerCss();
416 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
417 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
418 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
◆ initTreeView()
static ilYuiUtil::initTreeView |
( |
| ) |
|
|
static |
Init treeView.
Definition at line 399 of file class.ilYuiUtil.php.
References $tpl.
403 $tpl->addJavaScript(self::getLocalPath().
'/yahoo/yahoo-min.js');
404 $tpl->addJavaScript(self::getLocalPath().
'/event/event-min.js');
405 $tpl->addJavaScript(self::getLocalPath().
'/treeview/treeview.js');
◆ $ver
ilYuiUtil::$ver = "2_9_0" |
|
staticprivate |
The documentation for this class was generated from the following file: