ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilLinkifyUtil.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11{
12 private static $ver = "1_1";
13 private static $min = ".min";
14
20 public static function initLinkify($a_tpl = null)
21 {
22 global $DIC;
23
24 $tpl = $DIC["tpl"];
25
26 if ($a_tpl == null) {
27 $a_tpl = $tpl;
28 }
29
30 foreach (self::getLocalJsPaths() as $p) {
31 $a_tpl->addJavaScript($p);
32 }
33 }
34
38 public static function getLocalJsPaths()
39 {
40 return array(
41 "./node_modules/linkifyjs/dist/linkify.min.js",
42 "./node_modules/linkifyjs/dist/linkify-jquery.min.js",
43 "./Services/Link/js/ilExtLink.js"
44 );
45 }
46}
An exception for terminatinating execution or to throw for unit testing.
Linkify utility class.
static initLinkify($a_tpl=null)
Init Linkify.
static getLocalJsPaths()
Get paths of necessary js files.
global $DIC
Definition: goto.php:24
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41