◆ __construct()
ilSystemStyleHTMLExport::__construct |
( |
string |
$a_exp_dir | ) |
|
Definition at line 30 of file class.ilSystemStyleHTMLExport.php.
References addImage().
32 $this->style_dir = $a_exp_dir .
'/templates/default';
33 $this->style_img_dir = $a_exp_dir .
'/templates/default/images';
34 $this->img_dir = $a_exp_dir .
'/images';
37 $a_exp_dir .
'/images/browser',
38 $a_exp_dir .
'/images/media',
39 $a_exp_dir .
'/images/nav',
40 $a_exp_dir .
'/images/standard' 44 $this->
addImage(
'media/enlarge.svg');
45 $this->
addImage(
'browser/blank.png',
'/browser/plus.png');
46 $this->
addImage(
'browser/blank.png',
'/browser/minus.png');
47 $this->
addImage(
'browser/blank.png',
'/browser/blank.png');
49 $this->
addImage(
'standard/icon_st.svg');
50 $this->
addImage(
'standard/icon_pg.svg');
51 $this->
addImage(
'standard/icon_lm.svg');
52 $this->
addImage(
'nav/nav_arr_L.png');
53 $this->
addImage(
'nav/nav_arr_R.png');
addImage(string $a_file, string $a_exp_file_name='')
Add (icon) image to the list of images to be exported.
◆ addImage()
ilSystemStyleHTMLExport::addImage |
( |
string |
$a_file, |
|
|
string |
$a_exp_file_name = '' |
|
) |
| |
◆ createDirectories()
ilSystemStyleHTMLExport::createDirectories |
( |
| ) |
|
◆ export()
ilSystemStyleHTMLExport::export |
( |
| ) |
|
Definition at line 75 of file class.ilSystemStyleHTMLExport.php.
References createDirectories(), ilUtil\getImagePath(), and ilUtil\getStyleSheetLocation().
80 $this->style_dir = dirname($this->style_dir, 2) . DIRECTORY_SEPARATOR . dirname($location_stylesheet);
87 RecursiveIteratorIterator::SELF_FIRST
89 foreach ($iterator as $item) {
91 mkdir($this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
93 copy($item->getPathname(), $this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
98 foreach ($this->images as $im) {
99 $from = $to = $im[
'file'];
100 if ($im[
'exp_file_name'] !=
'') {
101 $to = $im[
'exp_file_name'];
105 $this->img_dir .
'/' . $to
static getStyleSheetLocation(string $mode="output", string $a_css_name="")
get full style sheet file name (path inclusive) of current user
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
◆ $images
array ilSystemStyleHTMLExport::$images = [] |
|
private |
◆ $img_browser_dir
string ilSystemStyleHTMLExport::$img_browser_dir |
|
protected |
◆ $img_dir
string ilSystemStyleHTMLExport::$img_dir |
|
protected |
◆ $img_sub_dirs
array ilSystemStyleHTMLExport::$img_sub_dirs |
|
protected |
◆ $style_dir
string ilSystemStyleHTMLExport::$style_dir |
|
protected |
◆ $style_img_dir
string ilSystemStyleHTMLExport::$style_img_dir |
|
protected |
The documentation for this class was generated from the following file: