Yahoo YUI Library Utility functions.
More...
|
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...
|
|
|
const | YUI_BASE = "./libs/bower/bower_components/yui2/build" |
|
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.
◆ 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.
533 if ($a_main_tpl == null) {
539 $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 297 of file class.ilYuiUtil.php.
References $DIC, $lng, $message, $template, and $tpl.
302 $lng = $DIC->language();
304 self::initSimpleDialog();
307 $template->setVariable(
"DIALOGNAME", $dialogname);
308 $template->setVariable(
"YES_ACTION", $yesaction);
309 $template->setVariable(
"NO_ACTION", $noaction);
310 $template->setVariable(
"DIALOG_HEADER", $headertext);
316 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
319 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
322 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
325 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
328 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
332 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
340 $tpl->setCurrentBlock(
"HeadContent");
342 $tpl->parseCurrentBlock();
catch(Exception $e) $message
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.
267 self::initDragDropList();
271 $template->setCurrentBlock(
"source_element");
280 $template->setCurrentBlock(
"dest_element");
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);
if(!array_key_exists('StateId', $_REQUEST)) $id
special template class to simplify handling of ITX/PEAR
◆ getLocalPath()
static ilYuiUtil::getLocalPath |
( |
|
$a_name = "" | ) |
|
|
static |
◆ initAnimation()
static ilYuiUtil::initAnimation |
( |
| ) |
|
|
static |
◆ initAssessmentWizard()
static ilYuiUtil::initAssessmentWizard |
( |
| ) |
|
|
static |
Init assessment wizard.
Definition at line 202 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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();
◆ 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.
381 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
382 $tpl->addJavaScript(self::YUI_BASE .
"/element/element-min.js");
384 $tpl->addJavaScript(self::YUI_BASE .
"/container/container_core-min.js");
385 $tpl->addJavaScript(self::YUI_BASE .
"/menu/menu-min.js");
387 $tpl->addJavaScript(self::YUI_BASE .
"/button/button-min.js");
389 $tpl->addCss(self::YUI_BASE .
"/button/assets/skins/sam/button.css");
390 $tpl->addCss(self::YUI_BASE .
"/menu/assets/skins/sam/menu.css");
◆ initCalendar()
static ilYuiUtil::initCalendar |
( |
| ) |
|
|
static |
init calendar
public
- Returns
Definition at line 353 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
359 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
360 $tpl->addJavaScript(self::YUI_BASE .
"/calendar/calendar-min.js");
362 $tpl->addCss(self::YUI_BASE .
"/calendar/assets/skins/sam/calendar.css");
363 $tpl->addCss(
"./Services/Calendar/css/calendar.css");
◆ 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().
407 self::initButtonControl();
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");
413 $tpl->addCss(
'./Services/Form/css/color_picker.css');
414 $tpl->addCss(self::YUI_BASE .
"/colorpicker/assets/skins/sam/colorpicker.css");
◆ 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(), ilInternalLinkGUI\getInitHTML(), ilExplorer\getOutput(), ilCloudPluginInitGUI\initGUI(), ilMediaPlayerGUI\initJavascript(), ilLMPresentationGUI\layout(), ilTable2GUI\renderFilter(), ilAdvancedSelectionListGUI\setAsynch(), and ilPageObjectGUI\showPage().
22 if ($a_main_tpl == null) {
27 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
28 $tpl->addJavaScript(self::YUI_BASE .
"/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 236 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
◆ initDragDropList()
static ilYuiUtil::initDragDropList |
( |
| ) |
|
|
static |
init drag & drop list
Definition at line 220 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
◆ initElementSelection()
static ilYuiUtil::initElementSelection |
( |
| ) |
|
|
static |
init element selection
Definition at line 251 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
257 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
258 $tpl->addJavaScript(self::YUI_BASE .
"/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 452 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
458 $tpl->addCss(self::YUI_BASE .
"/assets/skins/sam/resize.css");
459 $tpl->addCss(self::YUI_BASE .
"/assets/skins/sam/layout.css");
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");
◆ initMenu()
static ilYuiUtil::initMenu |
( |
| ) |
|
|
static |
Init YUI Menu module.
Definition at line 150 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
◆ initOverlay()
static ilYuiUtil::initOverlay |
( |
ilTemplate |
$a_main_tpl = null | ) |
|
|
static |
◆ initPanel()
static ilYuiUtil::initPanel |
( |
|
$a_resize = false , |
|
|
ilTemplate |
$a_main_tpl = null |
|
) |
| |
|
static |
Init yui panel.
public
- Parameters
-
- Returns
- void
Definition at line 109 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
Referenced by ilTestScoringByQuestionsGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilTaggingGUI\initJavascript(), ilNoteGUI\initJavascript(), ilLPObjectStatisticsLPTableGUI\initLearningProgressDetailsLayer(), ilScoringAdjustmentGUI\outputAdjustQuestionForm(), ilExplorerSelectInputGUI\render(), and ilPageObjectGUI\showPage().
113 if ($a_main_tpl != null) {
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");
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");
◆ initSimpleDialog()
static ilYuiUtil::initSimpleDialog |
( |
| ) |
|
|
static |
Init YUI Simple Dialog.
Definition at line 185 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
◆ initTabView()
static ilYuiUtil::initTabView |
( |
| ) |
|
|
static |
Init YUI TabView component.
Definition at line 421 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
◆ initTooltip()
static ilYuiUtil::initTooltip |
( |
| ) |
|
|
static |
Init YUI Event.
Definition at line 488 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
◆ initTreeView()
static ilYuiUtil::initTreeView |
( |
| ) |
|
|
static |
Init treeView.
Definition at line 473 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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');
◆ YUI_BASE
const ilYuiUtil::YUI_BASE = "./libs/bower/bower_components/yui2/build" |
The documentation for this class was generated from the following file: