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

Method status

lib/Service/DatasetService.php:159–167  ·  view source on GitHub ↗

* get dataset status * * @param int $datasetId * @return array|bool * @throws Exception */

(int $datasetId)

Source from the content-addressed store, hash-verified

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

Callers 1

14_add_del_data.jsFile · 0.45

Calls 3

isOwnMethod · 0.95
reportsForDatasetMethod · 0.45
getRecordCountMethod · 0.45

Tested by

no test coverage detected