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

Method create

lib/Service/DatasetService.php:179–183  ·  view source on GitHub ↗

* create new dataset * * @param $name * @param $dimension1 * @param $dimension2 * @param $value * @return int * @throws Exception */

($name, $dimension1, $dimension2, $value)

Source from the content-addressed store, hash-verified

177 * @throws Exception
178 */
179 public function create($name, $dimension1, $dimension2, $value) {
180 $datasetId = $this->DatasetMapper->create($name, $dimension1, $dimension2, $value);
181 $this->ActivityManager->triggerEvent($datasetId, ActivityManager::OBJECT_DATASET, ActivityManager::SUBJECT_DATASET_ADD);
182 return $datasetId;
183 }
184
185 /**
186 * get dataset details

Callers

nothing calls this directly

Calls 1

triggerEventMethod · 0.80

Tested by

no test coverage detected