-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExportable.php
39 lines (37 loc) · 1.08 KB
/
Exportable.php
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
36
37
38
39
<?php
/**
* This file contain trait for KoolReport to export PDF and other using Cloud Service
*
* @category Core
* @package KoolReport
* @author KoolPHP Inc <support@koolphp.net>
* @copyright 2017-2028 KoolPHP Inc
* @license MIT License https://www.koolreport.com/license#mit-license
* @link https://www.koolphp.net
*/
namespace koolreport\cloudexport;
/**
* Trait for KoolReport to export PDF and other using Cloud Service
*
* @category Core
* @package KoolReport
* @author KoolPHP Inc <support@koolphp.net>
* @copyright 2017-2028 KoolPHP Inc
* @license MIT License https://www.koolreport.com/license#mit-license
* @link https://www.koolphp.net
*/
trait Exportable
{
/**
* Send the report content in html to ServiceHub
*
* @param string $view The view you want to export, if no view is specified,
* we we default view of report
*
* @return ServiceHub The serice hub entrance
*/
public function cloudExport($view=null)
{
return new ServiceHub($this->render($view, true));
}
}