ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 if object type does not support centralized offline handling. 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...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
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 54 of file class.ilObjCertificateSettingsAccess.php.

Referenced by getBackgroundImagePath(), and getBackgroundImageThumbPath().

55  {
56  return CLIENT_WEB_DIR . "/certificates/default/";
57  }
+ 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 84 of file class.ilObjCertificateSettingsAccess.php.

Referenced by getBackgroundImagePath(), and getBackgroundImageThumbPath().

85  {
86  return "background.jpg";
87  }
+ 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 64 of file class.ilObjCertificateSettingsAccess.php.

References getBackgroundImageDefaultFolder(), and getBackgroundImageName().

Referenced by getBackgroundImagePathWeb(), ilCertificateGUI\getEditorForm(), and hasBackgroundImage().

65  {
67 
68  if ($asRelative) {
69  return str_replace(
70  array(CLIENT_WEB_DIR, '//'),
71  array('[CLIENT_WEB_DIR]', '/'),
72  $imagePath
73  );
74  }
75 
76  return $imagePath;
77  }
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:

◆ 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 104 of file class.ilObjCertificateSettingsAccess.php.

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

105  {
106  return str_replace(
108  ILIAS_ABSOLUTE_PATH
109  ),
110  ilUtil::removeTrailingPathSeparators(ILIAS_HTTP_PATH),
112  );
113  }
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 94 of file class.ilObjCertificateSettingsAccess.php.

References getBackgroundImageDefaultFolder(), and getBackgroundImageName().

Referenced by ilCertificateSettingsFormRepository\createForm(), and getBackgroundImageThumbPathWeb().

95  {
97  }
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 120 of file class.ilObjCertificateSettingsAccess.php.

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

Referenced by ilCertificateSettingsFormRepository\createForm().

121  {
122  return str_replace(
124  ILIAS_ABSOLUTE_PATH
125  ),
126  ilUtil::removeTrailingPathSeparators(ILIAS_HTTP_PATH),
128  );
129  }
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 ilCertificateSettingsFormRepository\createForm().

42  {
44  return true;
45  }
46  return false;
47  }
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: