Settings UI class for system styles.
More...
◆ checkPermission()
ilSystemStyleMainGUI::checkPermission |
( |
|
$a_perm, |
|
|
|
$a_throw_exc = true |
|
) |
| |
Checks permission for system styles.
Permissions work on two levels, ordinary rbac and the 'enable_system_styles_management' setting in the tools section of the ilias.ini.php
- Parameters
-
| $a_perm | |
bool | true | $a_throw_exc | |
- Returns
- bool
- Exceptions
-
Definition at line 216 of file class.ilSystemStyleMainGUI.php.
References $_GET, $config, $ilIliasIniFile, and ilUtil\sendFailure().
223 if ($a_perm ==
"sty_management") {
224 $has_perm = $ilIliasIniFile->readVariable(
"tools",
"enable_system_styles_management")==
"1" ?
true:
false;
225 $a_perm =
"sty_write_system";
226 if ($has_perm && !is_writable(
$config->getCustomizingSkinPath())) {
233 $has_perm = $this->rbacsystem->checkAccess($a_perm, $this->ref_id);
238 include_once
"Services/Object/exceptions/class.ilObjectException.php";
Base exception class for object service.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
◆ setUnderworldTitle()
ilSystemStyleMainGUI::setUnderworldTitle |
( |
| ) |
|
|
protected |
Sets title correctly if one system style is opened.
- Exceptions
-
Definition at line 283 of file class.ilSystemStyleMainGUI.php.
References $_GET, $style, and ilSystemStyleSkinContainer\generateFromId().
285 $skin_id =
$_GET[
"skin_id"];
286 $style_id =
$_GET[
"style_id"];
289 $style = $skin->getStyle($style_id);
291 $this->tpl->setTitle(
$style->getName());
292 if (
$style->isSubstyle()) {
293 $this->tpl->setDescription(
294 $this->lng->txt(
"settings_of_substyle") .
" '" .
$style->getName() .
"' " .
295 $this->lng->txt(
"of_parent") .
" '" . $skin->getStyle(
$style->getSubstyleOf())->getName() .
"' " .
296 $this->lng->txt(
"from_skin") .
" " . $skin->getName()
299 $this->tpl->setDescription(
300 $this->lng->txt(
"settings_of_style") .
" '" .
$style->getName() .
"' " .
301 $this->lng->txt(
"from_skin") .
" '" . $skin->getName() .
"'"
static generateFromId($skin_id, ilSystemStyleMessageStack $message_stack=null, ilSystemStyleConfig $system_styles_conf=null)
Generate the container class by parsing the corresponding XML.
◆ $ctrl
ilSystemStyleMainGUI::$ctrl |
|
protected |
◆ $DIC
ilSystemStyleMainGUI::$DIC |
|
protected |
◆ $lng
ilSystemStyleMainGUI::$lng |
|
protected |
◆ $rbacsystem
ilSystemStyleMainGUI::$rbacsystem |
|
protected |
◆ $ref_id
ilSystemStyleMainGUI::$ref_id |
|
protected |
◆ $tabs
ilSystemStyleMainGUI::$tabs |
|
protected |
◆ $tpl
ilSystemStyleMainGUI::$tpl |
|
protected |
The documentation for this class was generated from the following file: