Yahoo YUI Library Utility functions.
More...
|
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...
|
|
|
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()
Add container css.
Definition at line 562 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
566 if ($a_main_tpl == null) {
572 $tpl->addCss(self::getLocalPath(
"container/assets/skins/sam/container.css"));
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ 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.
335 $lng = $DIC->language();
337 self::initSimpleDialog();
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"));
349 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
352 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
355 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
358 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
361 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
365 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
369 $template->touchBlock(
"isDefaultYes");
371 $template->touchBlock(
"isDefaultNo");
373 $tpl->setCurrentBlock(
"HeadContent");
374 $tpl->setVariable(
"CONTENT_BLOCK", $template->get());
375 $tpl->parseCurrentBlock();
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ 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.
300 self::initDragDropList();
302 $template =
new ilTemplate(
"tpl.dragdroplist.html",
true,
true,
"Services/YUI");
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();
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();
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);
326 return $template->get();
◆ getLocalPath()
static ilYuiUtil::getLocalPath |
( |
|
$a_name = "" | ) |
|
|
static |
◆ initAnimation()
Init YUI Animation.
- Parameters
-
Definition at line 77 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
Referenced by ilPropertyFormGUI\getContent().
81 if ($a_main_tpl == null) {
87 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
88 $tpl->addJavaScript(self::YUI_BASE .
"/animation/animation-min.js");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initAssessmentWizard()
static ilYuiUtil::initAssessmentWizard |
( |
| ) |
|
|
static |
Init assessment wizard.
Definition at line 235 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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();
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ 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.
414 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
415 $tpl->addJavaScript(self::YUI_BASE .
"/element/element-min.js");
417 $tpl->addJavaScript(self::YUI_BASE .
"/container/container_core-min.js");
418 $tpl->addJavaScript(self::YUI_BASE .
"/menu/menu-min.js");
420 $tpl->addJavaScript(self::YUI_BASE .
"/button/button-min.js");
422 $tpl->addCss(self::YUI_BASE .
"/button/assets/skins/sam/button.css");
423 $tpl->addCss(self::YUI_BASE .
"/menu/assets/skins/sam/menu.css");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initCalendar()
static ilYuiUtil::initCalendar |
( |
| ) |
|
|
static |
init calendar
public
- Returns
Definition at line 386 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
392 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
393 $tpl->addJavaScript(self::YUI_BASE .
"/calendar/calendar-min.js");
395 $tpl->addCss(self::YUI_BASE .
"/calendar/assets/skins/sam/calendar.css");
396 $tpl->addCss(
"./Services/Calendar/css/calendar.css");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ 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().
440 self::initButtonControl();
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");
446 $tpl->addCss(
'./Services/Form/css/color_picker.css');
447 $tpl->addCss(self::YUI_BASE .
"/colorpicker/assets/skins/sam/colorpicker.css");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initConnection()
Init YUI Connection module.
- Parameters
-
Definition at line 20 of file class.ilYuiUtil.php.
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().
24 if ($a_main_tpl == null) {
29 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
30 $tpl->addJavaScript(self::YUI_BASE .
"/connection/connection-min.js");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initConnectionWithAnimation()
static ilYuiUtil::initConnectionWithAnimation |
( |
| ) |
|
|
static |
◆ initDom()
◆ initDomEvent()
◆ initDragDrop()
◆ initDragDropAnimation()
static ilYuiUtil::initDragDropAnimation |
( |
| ) |
|
|
static |
init drag & drop and animation
Definition at line 269 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initDragDropList()
static ilYuiUtil::initDragDropList |
( |
| ) |
|
|
static |
init drag & drop list
Definition at line 253 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initElementSelection()
static ilYuiUtil::initElementSelection |
( |
| ) |
|
|
static |
init element selection
Definition at line 284 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
290 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
291 $tpl->addJavaScript(self::YUI_BASE .
"/element/element-min.js");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initEvent()
Init YUI Event.
- Parameters
-
Definition at line 39 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
Referenced by ilPropertyFormGUI\getContent().
43 if ($a_main_tpl == null) {
49 $tpl->addJavaScript(self::YUI_BASE .
"/yahoo-dom-event/yahoo-dom-event.js");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initJson()
static ilYuiUtil::initJson |
( |
| ) |
|
|
static |
◆ initLayout()
static ilYuiUtil::initLayout |
( |
| ) |
|
|
static |
Init layout (alpha!)
Definition at line 485 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
491 $tpl->addCss(self::YUI_BASE .
"/assets/skins/sam/resize.css");
492 $tpl->addCss(self::YUI_BASE .
"/assets/skins/sam/layout.css");
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");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initMenu()
static ilYuiUtil::initMenu |
( |
| ) |
|
|
static |
Init YUI Menu module.
Definition at line 183 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initOverlay()
◆ initPanel()
◆ initSimpleDialog()
static ilYuiUtil::initSimpleDialog |
( |
| ) |
|
|
static |
Init YUI Simple Dialog.
Definition at line 218 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initTabView()
static ilYuiUtil::initTabView |
( |
| ) |
|
|
static |
Init YUI TabView component.
Definition at line 454 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initTooltip()
static ilYuiUtil::initTooltip |
( |
| ) |
|
|
static |
Init YUI Event.
Definition at line 521 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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");
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ initTreeView()
static ilYuiUtil::initTreeView |
( |
| ) |
|
|
static |
Init treeView.
Definition at line 506 of file class.ilYuiUtil.php.
References $DIC, and $tpl.
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');
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
◆ YUI_BASE
const ilYuiUtil::YUI_BASE = "./libs/bower/bower_components/yui2/build" |
The documentation for this class was generated from the following file: