-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWidget.php
More file actions
29 lines (25 loc) · 759 Bytes
/
Widget.php
File metadata and controls
29 lines (25 loc) · 759 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
<?php
namespace koolreport\instant;
class Widget
{
static function create($widgetClass,$widgetParams,$assets=true)
{
$params = array_merge(array(
"@widgetClass"=>$widgetClass,
"@widgetParams"=>$widgetParams,
"@assets"=>$assets
),$_GET,$_POST);
$tempReport = new TempReport($params);
$tempReport->render();
}
static function html($widgetClass,$widgetParams,$assets=true)
{
$params = array_merge(array(
"@widgetClass"=>$widgetClass,
"@widgetParams"=>$widgetParams,
"@assets"=>$assets
),$_GET,$_POST);
$tempReport = new TempReport($params);
return $tempReport->render(true);
}
}