MCPcopy Create free account
hub / github.com/Rello/analytics / readOwnDatasetReport

Method readOwnDatasetReport

lib/Service/ReportService.php:174–182  ·  view source on GitHub ↗

Return only an owned report with an owned internal dataset. */

(int $reportId)

Source from the content-addressed store, hash-verified

172
173 /** Return only an owned report with an owned internal dataset. */
174 public function readOwnDatasetReport(int $reportId): array {
175 $report = $this->ReportMapper->readOwn($reportId);
176 if (empty($report) || (int)$report['type'] !== DatasourceController::DATASET_TYPE_INTERNAL_DB
177 || (int)$report['dataset'] <= 0
178 || empty($this->DatasetService->readOwn((int)$report['dataset']))) {
179 return [];
180 }
181 return $report;
182 }
183
184 /**
185 * check if own report

Calls 1

readOwnMethod · 0.45