19declare(strict_types=1);
84 if (strpos($skin_directory,
'../') === 0) {
85 $skin_directory = realpath(__DIR__ .
'/../../../../../../templates/' . $skin_directory);
87 $output_file = dirname($skin_directory) .
'/' . $this->
getSkin()->getId() .
'.zip';
111 return $this->
getSkinDirectory() . $style_id .
"/".$this->getSkin()->getStyle($style_id)->getCssFile() .
'.css';
116 return $this->
getSkinDirectory() . $style_id .
"/".$this->getSkin()->getStyle($style_id)->getCssFile() .
'.scss';
121 return $this->
getSkinDirectory() . $style_id .
"/".$this->getScssSettingsFolderName();
126 return $this->system_styles_conf->getScssSettingsFolderName();
static deliverFileAttached(string $path_to_file, ?string $download_file_name=null, ?string $mime_type=null, bool $delete_file=false)
static zip(string $a_dir, string $a_file, bool $compress_content=false)
This class is responsible for all file system related actions related actions of a skin such as copyi...
export()
Exports the complete skin to an zip file.
getFontsStylePath(string $style_id)
createTempZip()
Creates a temp zip file.
getScssFilePath(string $style_id)
ilSystemStyleConfig $system_styles_conf
Used to wire this component up with the correct pathes into the customizing directory.
ilSkin $skin
Data-scope for the skin this container capsules.
getImagesStylePath(string $style_id)
setSystemStylesConf(ilSystemStyleConfig $system_styles_conf)
getCSSFilePath(string $style_id)
getScssSettingsPath(string $style_id)
ilSystemStyleMessageStack $message_stack
Used to stack messages to be displayed to the user (mostly reports for failed actions)
setMessageStack(ilSystemStyleMessageStack $message_stack)
getScssSettingsFolderName()
getSoundsStylePath(string $style_id)
__construct(Language $lng, ilSkin $skin, ilSystemStyleMessageStack $message_stack, ?ilSystemStyleConfig $system_styles_conf=null,)
ilSkin holds an manages the basic data of a skin as provide by the template of the skin.
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
Used to stack messages to be shown to the user.