* get dataset details * * @param int $datasetId * @param $name * @param null $dimension1 * @param null $dimension2 * @param null $value * @param null $subheader * @param null $aiIndex * @return bool * @throws Exception */
(int $datasetId, $name, $subheader, $dimension1, $dimension2, $value, $aiIndex)
| 196 | * @throws Exception |
| 197 | */ |
| 198 | public function update(int $datasetId, $name, $subheader, $dimension1, $dimension2, $value, $aiIndex) { |
| 199 | if (!$this->isOwn($datasetId)) { |
| 200 | return false; |
| 201 | } |
| 202 | $dbUpdate = $this->DatasetMapper->update($datasetId, $name, $subheader, $dimension1, $dimension2, $value, $aiIndex); |
| 203 | $this->ReportMapper->increaseVersionByDataset($datasetId); |
| 204 | |
| 205 | if ($aiIndex === 1) { |
| 206 | $this->provider($datasetId); |
| 207 | } else { |
| 208 | $this->providerRemove($datasetId); |
| 209 | } |
| 210 | return $dbUpdate; |
| 211 | } |
| 212 | |
| 213 | public function createGroup(int $parent = 0): int { |
| 214 | return $this->DatasetMapper->createGroup($this->l10n->t('New'), $parent); |
nothing calls this directly
no test coverage detected