芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/bd.mgaplay.com.br/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 StorageServiceInterface $store * @param TimeSeriesStoreInterface $timeSeriesStore * @param LogServiceInterface $log * @param ConfigServiceInterface $config * @param SanitizerService $sanitizer * @param SavedReportFactory $savedReportFactory */ public function __construct( $app, $store, $timeSeriesStore, $log, $config, $sanitizer, $savedReportFactory ); /** * List all reports that are available * @return array */ 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 \Xibo\Entity\User $user * @throws GeneralException * @return array */ public function runReport($reportName, $filterCriteria, $user); /** * Get report email template twig file name * @param string $reportName * @throws GeneralException * @return string */ public function getReportEmailTemplate($reportName); /** * Get report email template twig file name * @param string $reportName * @throws GeneralException * @return string */ public function getSavedReportTemplate($reportName); /** * Get chart script * @param int $savedreportId * @param string $reportName * @throws GeneralException * @return string */ public function getReportChartScript($savedreportId, $reportName); }