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

Method readOwn

lib/Service/DatasetService.php:122–130  ·  view source on GitHub ↗

* get own dataset details; used in external access like dataset controller * * @param int $datasetId * @return array|bool * @throws Exception */

(int $datasetId)

Source from the content-addressed store, hash-verified

120 * @throws Exception
121 */
122 public function readOwn(int $datasetId) {
123 $ownDataset = $this->DatasetMapper->readOwn($datasetId);
124 if (!empty($ownDataset)) {
125 $ownDataset['permissions'] = \OCP\Constants::PERMISSION_UPDATE;
126 $ownDataset['dataset'] = $ownDataset['id'];
127 $ownDataset = $this->decorateDataset($ownDataset);
128 }
129 return $ownDataset;
130 }
131
132 /**
133 * get dataset details

Callers 15

resolveMethod · 0.45
createMethod · 0.45
deleteMethod · 0.45
reorderMethod · 0.45
isOwnMethod · 0.45
statusMethod · 0.45
updateMethod · 0.45
readMethod · 0.45
isOwnMethod · 0.45
isValidParentMethod · 0.45
createDatasetMethod · 0.45
createMethod · 0.45

Calls 1

decorateDatasetMethod · 0.95

Tested by

no test coverage detected