芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/lib/Service/ReportServiceInterface.php
. */ namespace Xibo\Service; use Slim\Http\ServerRequest as Request; use Xibo\Factory\SavedReportFactory; use Xibo\Helper\SanitizerService; use Xibo\Report\ReportInterface; use Xibo\Storage\StorageServiceInterface; use Xibo\Storage\TimeSeriesStoreInterface; use Xibo\Support\Exception\GeneralException; /** * Interface ReportServiceInterface * @package Xibo\Service */ interface ReportServiceInterface { /** * ReportServiceInterface constructor. * @param \Psr\Container\ContainerInterface $app * @param \Xibo\Helper\ApplicationState $state * @param StorageServiceInterface $store * @param TimeSeriesStoreInterface $timeSeriesStore * @param LogServiceInterface $log * @param ConfigServiceInterface $config * @param SanitizerService $sanitizer * @param SavedReportFactory $savedReportFactory */ public function __construct($app, $state, $store, $timeSeriesStore, $log, $config, $sanitizer, $savedReportFactory); // List all reports that are available public function listReports(); /** * Get report by report name * @param string $reportName * @throws GeneralException */ public function getReportByName($reportName); /** * Get report class by report name * @param string $reportName * @throws GeneralException */ public function getReportClass($reportName); /** * Create the report object by report classname * @param string $className * @throws GeneralException * @return ReportInterface */ public function createReportObject($className); /** * Populate form title and hidden fields * @param string $reportName * @param Request $request * @throws GeneralException * @return array */ public function getReportScheduleFormData($reportName, Request $request); /** * Set Report Schedule form data * @param string $reportName * @param Request $request * @throws GeneralException * @return array */ public function setReportScheduleFormData($reportName, Request $request); /** * Generate saved report name * @param string $reportName * @param string $filterCriteria * @throws GeneralException * @return string */ public function generateSavedReportName($reportName, $filterCriteria); /** * Get saved report results * @param int $savedreportId * @param string $reportName * @throws GeneralException * @return array */ public function getSavedReportResults($savedreportId, $reportName); /** * Convert saved report results from old schema 1 to schema version 2 * @param int $savedreportId * @param string $reportName * @throws GeneralException * @return array */ public function convertSavedReportResults($savedreportId, $reportName); /** * Run the report * @param string $reportName * @param string $filterCriteria * @param int $userId * @throws GeneralException * @return array */ public function runReport($reportName, $filterCriteria, $userId); /** * Get report email template twig file name * @param string $reportName * @throws GeneralException * @return string */ public function getReportEmailTemplate($reportName); /** * Get chart script * @param int $savedreportId * @param string $reportName * @throws GeneralException * @return array */ public function getReportChartScript($savedreportId, $reportName); }