* get dataset status * * @param int $datasetId * @return array|bool * @throws Exception */
(int $datasetId)
| 157 | * @throws Exception |
| 158 | */ |
| 159 | public function status(int $datasetId): array { |
| 160 | if (!$this->isOwn($datasetId)) { |
| 161 | return []; |
| 162 | } |
| 163 | $status = array(); |
| 164 | $status['reports'] = $this->ReportMapper->reportsForDataset($datasetId, $this->userId); |
| 165 | $status['data'] = $this->StorageMapper->getRecordCount($datasetId); |
| 166 | return $status; |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * create new dataset |
no test coverage detected