lib/Controller/OtoConfirmationController.php 1 location
|
@@ 79-87 (lines=9) @@
|
| 76 |
|
/** |
| 77 |
|
* @NoAdminRequired |
| 78 |
|
*/ |
| 79 |
|
public function getConfirmationsByUser(){ |
| 80 |
|
//user ID is passed in |
| 81 |
|
$userId = $this->userSession->getUser()->getUID(); |
| 82 |
|
try{ |
| 83 |
|
return new DataResponse($this->mapper->getConfirmationsByUser($userId)); |
| 84 |
|
}catch(Exception $e){ |
| 85 |
|
return new DataResponse([],Http::STATUS_NOT_FOUND); |
| 86 |
|
} |
| 87 |
|
} |
| 88 |
|
//deletes a layer and all of it's confirmations |
| 89 |
|
/** |
| 90 |
|
* @NoAdminRequired |
lib/Controller/OtoLayerController.php 1 location
|
@@ 96-103 (lines=8) @@
|
| 93 |
|
/** |
| 94 |
|
* @NoAdminRequired |
| 95 |
|
*/ |
| 96 |
|
public function findUserLayers(){ |
| 97 |
|
$userId = $this->userSession->getUser()->getUID(); |
| 98 |
|
try{ |
| 99 |
|
return new DataResponse($this->mapper->findUserLayers($userId)); |
| 100 |
|
}catch(Exception $e){ |
| 101 |
|
return new DataResponse([], Http::STATUS_NOT_FOUND); |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
} |