ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLinkifyUtil Class Reference

Linkify utility class. More...

+ Collaboration diagram for ilLinkifyUtil:

Static Public Member Functions

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

Static Private Attributes

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

Detailed Description

Linkify utility class.

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.ilLinkifyUtil.php.

Member Function Documentation

◆ getLocalJsPaths()

static ilLinkifyUtil::getLocalJsPaths ( )
static

Get paths of necessary js files.

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

Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilPCParagraph\getJavascriptFiles(), and ilObjContentObject\getSupplyingExportFiles().

39  {
40  return array(
41  "./libs/bower/bower_components/linkifyjs/linkify.min.js",
42  "./libs/bower/bower_components/linkifyjs/linkify-jquery.min.js",
43  "./Services/Link/js/ilExtLink.js"
44  );
45  }
+ Here is the caller graph for this function:

◆ initLinkify()

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

Init Linkify.

Parameters
ilTemplate$a_tpltemplate

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

References $DIC, and $tpl.

Referenced by ilOnScreenChatMenuGUI\getMainMenuHTML(), and ilOnScreenChatGUI\initializeFrontend().

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  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

Field Documentation

◆ $min

ilLinkifyUtil::$min = ".min"
staticprivate

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

◆ $ver

ilLinkifyUtil::$ver = "1_1"
staticprivate

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


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