23 $this->exp_dir = $a_exp_dir;
24 $this->style_dir = $a_exp_dir .
"/style";
25 $this->style_img_dir = $a_exp_dir .
"/style/images";
26 $this->img_dir = $a_exp_dir .
"/images";
27 $this->img_browser_dir = $a_exp_dir .
"/images/browser";
31 $this->
addImage(
"browser/blank.png",
"/browser/plus.png");
32 $this->
addImage(
"browser/blank.png",
"/browser/minus.png");
33 $this->
addImage(
"browser/blank.png",
"/browser/blank.png");
58 public function addImage($a_file, $a_exp_file_name =
"")
60 $this->
images[] = [
"file" => $a_file,
61 "exp_file_name" => $a_exp_file_name];
78 \RecursiveIteratorIterator::SELF_FIRST
82 mkdir($this->style_dir . DIRECTORY_SEPARATOR . $iterator->getSubPathName());
84 copy($item, $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 getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
HTML export class for system styles.
Done rendering charts as images
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
addImage($a_file, $a_exp_file_name="")
Add (icon) image to the list of images to be exported.
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
__construct($a_exp_dir)
Initialisation.
createDirectories()
Create directories.