19declare(strict_types=1);
 
   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');
 
   59    public function addImage(
string $a_file, 
string $a_exp_file_name = 
''): void
 
   61        $this->images[] = [
'file' => $a_file,
 
   62                           'exp_file_name' => $a_exp_file_name
 
   71        $this->style_dir = dirname($this->style_dir, 2) . DIRECTORY_SEPARATOR . dirname($location_stylesheet);
 
   76        $iterator = 
new RecursiveIteratorIterator(
 
   77            new RecursiveDirectoryIterator(dirname($location_stylesheet), FilesystemIterator::SKIP_DOTS),
 
   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 makeDirParents(string $a_dir)
Create a new directory and all parent directories.
 
addImage(string $a_file, string $a_exp_file_name='')
Add (icon) image to the list of images to be exported.
 
__construct(string $a_exp_dir)
 
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)