ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLinkifyUtil Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilLinkifyUtil:

Static Public Member Functions

static initLinkify (?ilGlobalTemplateInterface $a_tpl=null)
 
static getLocalJsPaths ()
 Get paths of necessary js files. More...
 

Static Private Attributes

static string $ver = "1_1"
 
static string $min = ".min"
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Linkify utility class

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 25 of file class.ilLinkifyUtil.php.

Member Function Documentation

◆ getLocalJsPaths()

static ilLinkifyUtil::getLocalJsPaths ( )
static

Get paths of necessary js files.

Returns
string[]

Definition at line 49 of file class.ilLinkifyUtil.php.

Referenced by ilPCParagraph\getJavascriptFiles(), and ILIAS\LearningModule\Export\LMHtmlExport\getSupplyingExportFiles().

49  : array
50  {
51  return [
52  "./node_modules/linkifyjs/dist/linkify.min.js",
53  "./node_modules/linkifyjs/dist/linkify-jquery.min.js",
54  "./Services/Link/js/ilExtLink.js"
55  ];
56  }
+ Here is the caller graph for this function:

◆ initLinkify()

static ilLinkifyUtil::initLinkify ( ?ilGlobalTemplateInterface  $a_tpl = null)
static

Definition at line 30 of file class.ilLinkifyUtil.php.

References $DIC, and $tpl.

Referenced by ilOnScreenChatGUI\initializeFrontend().

30  : void
31  {
32  global $DIC;
33 
34  $tpl = $DIC["tpl"];
35 
36  if ($a_tpl === null) {
37  $a_tpl = $tpl;
38  }
39 
40  foreach (self::getLocalJsPaths() as $p) {
41  $a_tpl->addJavaScript($p);
42  }
43  }
global $DIC
Definition: feed.php:28
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the caller graph for this function:

Field Documentation

◆ $min

string ilLinkifyUtil::$min = ".min"
staticprivate

Definition at line 28 of file class.ilLinkifyUtil.php.

◆ $ver

string ilLinkifyUtil::$ver = "1_1"
staticprivate

Definition at line 27 of file class.ilLinkifyUtil.php.


The documentation for this class was generated from the following file: