ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
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  "./Services/Link/lib/linkify/".self::$ver."/jquery.linkify".self::$min.".js",
42  "./Services/Link/js/ilExtLink.js"
43  );
44  }
+ 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 $tpl.

21  {
22  global $tpl;
23 
24  if ($a_tpl == null)
25  {
26  $a_tpl = $tpl;
27  }
28 
29  foreach (self::getLocalJsPaths() as $p)
30  {
31  $a_tpl->addJavaScript($p);
32  }
33  }
global $tpl
Definition: ilias.php:8

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: