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

Class ilObjCertificateSettingsAccess. More...

+ Inheritance diagram for ilObjCertificateSettingsAccess:
+ Collaboration diagram for ilObjCertificateSettingsAccess:

Static Public Member Functions

static hasBackgroundImage ()
 Returns wheather or not a default background image exists. More...
 
static getBackgroundImageDefaultFolder ()
 Returns the filesystem path for the default background image. More...
 
static getBackgroundImagePath ($asRelative=false)
 Returns the filesystem path of the background image. More...
 
static getBackgroundImageName ()
 Returns the filename of the background image. More...
 
static getBackgroundImageThumbPath ()
 Returns the filesystem path of the background image thumbnail. More...
 
static getBackgroundImagePathWeb ()
 Returns the web path of the background image. More...
 
static getBackgroundImageThumbPathWeb ()
 Returns the web path of the background image thumbnail. More...
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto ($a_target)
 check whether goto script will succeed More...
 
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten. More...
 
static _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilObjectAccess
 _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition More...
 

Detailed Description

Class ilObjCertificateSettingsAccess.

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

Definition at line 34 of file class.ilObjCertificateSettingsAccess.php.

Member Function Documentation

◆ getBackgroundImageDefaultFolder()

static ilObjCertificateSettingsAccess::getBackgroundImageDefaultFolder ( )
static

Returns the filesystem path for the default background image.

Returns
string The filesystem path of the background image

Definition at line 55 of file class.ilObjCertificateSettingsAccess.php.

Referenced by getBackgroundImagePath(), and getBackgroundImageThumbPath().

56  {
57  return CLIENT_WEB_DIR . "/certificates/default/";
58  }
+ Here is the caller graph for this function:

◆ getBackgroundImageName()

static ilObjCertificateSettingsAccess::getBackgroundImageName ( )
static

Returns the filename of the background image.

Returns
string The filename of the background image

Definition at line 83 of file class.ilObjCertificateSettingsAccess.php.

Referenced by ilCertificate\deliverExportFileXML(), getBackgroundImagePath(), and getBackgroundImageThumbPath().

84  {
85  return "background.jpg";
86  }
+ Here is the caller graph for this function:

◆ getBackgroundImagePath()

static ilObjCertificateSettingsAccess::getBackgroundImagePath (   $asRelative = false)
static

Returns the filesystem path of the background image.

Parameters
bool$asRelative
Returns
string The filesystem path of the background image

Definition at line 65 of file class.ilObjCertificateSettingsAccess.php.

References array, getBackgroundImageDefaultFolder(), and getBackgroundImageName().

Referenced by ilCertificate\deliverExportFileXML(), getBackgroundImagePathWeb(), hasBackgroundImage(), and ilCertificate\processXHTML2FO().

66  {
67  if ($asRelative) {
68  return str_replace(
69  array(CLIENT_WEB_DIR, '//'),
70  array('[CLIENT_WEB_DIR]', '/'),
72  );
73  }
74 
76  }
static getBackgroundImageDefaultFolder()
Returns the filesystem path for the default background image.
static getBackgroundImageName()
Returns the filename of the background image.
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackgroundImagePathWeb()

static ilObjCertificateSettingsAccess::getBackgroundImagePathWeb ( )
static

Returns the web path of the background image.

Returns
string The web path of the background image

Definition at line 103 of file class.ilObjCertificateSettingsAccess.php.

References getBackgroundImagePath(), and ilUtil\removeTrailingPathSeparators().

104  {
105  include_once "./Services/Utilities/classes/class.ilUtil.php";
107  }
static getBackgroundImagePath($asRelative=false)
Returns the filesystem path of the background image.
static removeTrailingPathSeparators($path)
+ Here is the call graph for this function:

◆ getBackgroundImageThumbPath()

static ilObjCertificateSettingsAccess::getBackgroundImageThumbPath ( )
static

Returns the filesystem path of the background image thumbnail.

Returns
string The filesystem path of the background image thumbnail

Definition at line 93 of file class.ilObjCertificateSettingsAccess.php.

References getBackgroundImageDefaultFolder(), and getBackgroundImageName().

Referenced by getBackgroundImageThumbPathWeb().

94  {
96  }
static getBackgroundImageDefaultFolder()
Returns the filesystem path for the default background image.
static getBackgroundImageName()
Returns the filename of the background image.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBackgroundImageThumbPathWeb()

static ilObjCertificateSettingsAccess::getBackgroundImageThumbPathWeb ( )
static

Returns the web path of the background image thumbnail.

Returns
string The web path of the background image thumbnail

Definition at line 114 of file class.ilObjCertificateSettingsAccess.php.

References getBackgroundImageThumbPath(), and ilUtil\removeTrailingPathSeparators().

Referenced by ilCertificateGUI\certificateEditor().

115  {
116  include_once "./Services/Utilities/classes/class.ilUtil.php";
118  }
static getBackgroundImageThumbPath()
Returns the filesystem path of the background image thumbnail.
static removeTrailingPathSeparators($path)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasBackgroundImage()

static ilObjCertificateSettingsAccess::hasBackgroundImage ( )
static

Returns wheather or not a default background image exists.

Returns
boolean TRUE if a background image exists, FALSE otherwise

Definition at line 41 of file class.ilObjCertificateSettingsAccess.php.

References getBackgroundImagePath().

Referenced by ilCertificateGUI\certificateEditor(), ilCertificate\deliverExportFileXML(), and ilCertificate\processXHTML2FO().

42  {
44  return true;
45  } else {
46  return false;
47  }
48  }
static getBackgroundImagePath($asRelative=false)
Returns the filesystem path of the background image.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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