◆ __construct()
ilSystemStyleHTMLExport::__construct |
( |
string |
$a_exp_dir | ) |
|
Definition at line 29 of file class.ilSystemStyleHTMLExport.php.
References addImage().
31 $this->style_dir = $a_exp_dir .
'/templates/default';
32 $this->style_img_dir = $a_exp_dir .
'/templates/default/images';
33 $this->img_dir = $a_exp_dir .
'/images';
34 $this->img_browser_dir = $a_exp_dir .
'/images/browser';
38 $this->
addImage(
'browser/blank.png',
'/browser/plus.png');
39 $this->
addImage(
'browser/blank.png',
'/browser/minus.png');
40 $this->
addImage(
'browser/blank.png',
'/browser/blank.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 66 of file class.ilSystemStyleHTMLExport.php.
References createDirectories(), ilUtil\getImagePath(), and ilUtil\getStyleSheetLocation().
71 $this->style_dir = dirname($this->style_dir, 2) . DIRECTORY_SEPARATOR . dirname($location_stylesheet);
78 RecursiveIteratorIterator::SELF_FIRST
80 foreach ($iterator as $item) {
82 mkdir($this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
84 copy($item->getPathname(), $this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
89 foreach ($this->images as $im) {
90 $from = $to = $im[
'file'];
91 if ($im[
'exp_file_name'] !=
'') {
92 $to = $im[
'exp_file_name'];
96 $this->img_dir .
'/' . $to
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
◆ $images
array ilSystemStyleHTMLExport::$images = [] |
|
private |
◆ $img_browser_dir
string ilSystemStyleHTMLExport::$img_browser_dir |
|
protected |
◆ $img_dir
string ilSystemStyleHTMLExport::$img_dir |
|
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: