ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSecurImageUtil Class Reference

SecurImage Library Utility functions. More...

+ Collaboration diagram for ilSecurImageUtil:

Static Public Member Functions

static getDirectory ()
 
static getImageScript ()
 
static getAudioScript ()
 
static includeSecurImage ()
 

Static Private Attributes

static $ver = '3_5_1'
 

Detailed Description

SecurImage Library Utility functions.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 11 of file class.ilSecurImageUtil.php.

Member Function Documentation

◆ getAudioScript()

static ilSecurImageUtil::getAudioScript ( )
static
Returns
string

Definition at line 37 of file class.ilSecurImageUtil.php.

References ilUtil\appendUrlParameterString(), and ilUtil\getImagePath().

Referenced by ilCaptchaInputGUI\checkInput().

38  {
39  $script = self::getDirectory() . '/securimage_play.swf';
40  $script = ilUtil::appendUrlParameterString($script, 'audio_file=' . self::getDirectory() . '/il_securimage_play.php', true);
41  $script = ilUtil::appendUrlParameterString($script, 'icon_file=' . ilUtil::getImagePath('icon_audiocaptcha-19.png'), true);
42  return $script;
43  }
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDirectory()

static ilSecurImageUtil::getDirectory ( )
static
Returns
string

Definition at line 21 of file class.ilSecurImageUtil.php.

Referenced by ilCaptchaInputGUI\checkInput(), and ilSecurImage\showImage().

22  {
23  return './Services/Captcha/lib/securimage_' . self::$ver;
24  }
+ Here is the caller graph for this function:

◆ getImageScript()

static ilSecurImageUtil::getImageScript ( )
static
Returns
string

Definition at line 29 of file class.ilSecurImageUtil.php.

Referenced by ilCaptchaInputGUI\checkInput().

30  {
31  return self::getDirectory() . '/il_securimage_show.php';
32  }
+ Here is the caller graph for this function:

◆ includeSecurImage()

static ilSecurImageUtil::includeSecurImage ( )
static

Definition at line 48 of file class.ilSecurImageUtil.php.

Referenced by ilSecurImage\__construct().

49  {
50  require_once 'Services/Captcha/lib/securimage_' . self::$ver . '/securimage.php';
51  }
+ Here is the caller graph for this function:

Field Documentation

◆ $ver

ilSecurImageUtil::$ver = '3_5_1'
staticprivate

Definition at line 16 of file class.ilSecurImageUtil.php.


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