ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilLinkifyUtil Class Reference

Linkify utility class. 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

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  "assets/js/linkify.min.js",
53  "assets/js/linkify-element.min.js",
54  "assets/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 null.

Referenced by ilOnScreenChatGUI\initializeFrontend(), ilChatroomViewGUI\setupTemplate(), and ilChatroomHistoryGUI\showMessages().

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:26
+ 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: