ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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.

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 }

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

+ 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.

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 }
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
$DIC
Definition: xapitoken.php:46

References $DIC, and $tpl.

Referenced by ilOnScreenChatGUI\initializeFrontend().

+ 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: