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

Method create

lib/Service/DatasetService.php:176–180  ·  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

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

Callers

nothing calls this directly

Calls 1

triggerEventMethod · 0.80

Tested by

no test coverage detected