-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTempReport.php
More file actions
35 lines (32 loc) · 831 Bytes
/
TempReport.php
File metadata and controls
35 lines (32 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace koolreport\instant;
class TempReport extends \koolreport\KoolReport
{
function settings()
{
if(gettype($this->params["@assets"])==="array")
{
//Manual
return array(
"assets"=>$this->params["@assets"]
);
}
else if ($this->params["@assets"]===false)
{
//Nothing
return array();
}
// Else auto place the assets
$assets_path = str_replace("\\","/",dirname($_SERVER["SCRIPT_FILENAME"]))."/koolreport_assets";
if(!is_dir($assets_path))
{
mkdir($assets_path,0755);
}
return array(
"assets"=>array(
"path"=>$assets_path,
"url"=>"koolreport_assets"
)
);
}
}