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

Method update

lib/Service/DatasetService.php:198–211  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

isOwnMethod · 0.95
providerMethod · 0.95
providerRemoveMethod · 0.95

Tested by

no test coverage detected