ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilLinkifyUtil.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
11 {
12  private static $ver = "1_1";
13  private static $min = ".min";
14 
20  static function initLinkify($a_tpl = null)
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  }
34 
38  static function getLocalJsPaths()
39  {
40  return array(
41  "./Services/Link/lib/linkify/".self::$ver."/jquery.linkify".self::$min.".js",
42  "./Services/Link/js/ilExtLink.js"
43  );
44  }
45 }
46 ?>
static getLocalJsPaths()
Get paths of necessary js files.
global $tpl
Definition: ilias.php:8
Create styles array
The data for the language used.
Linkify utility class.
static initLinkify($a_tpl=null)
Init Linkify.