From 4faa08d70891da48a0f7647f7eb8730f7f9dc82e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 12 Jun 2013 14:50:15 +0200 Subject: add annotations for api controllers --- external/itemapi.php | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'external/itemapi.php') diff --git a/external/itemapi.php b/external/itemapi.php index adca0a3d8..fae0b3593 100644 --- a/external/itemapi.php +++ b/external/itemapi.php @@ -45,6 +45,11 @@ class ItemAPI extends Controller { } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function getAll() { $result = array( 'items' => array() @@ -80,6 +85,11 @@ class ItemAPI extends Controller { } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function getUpdated() { $result = array( 'items' => array() @@ -133,26 +143,51 @@ class ItemAPI extends Controller { } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function read() { return $this->setRead(true); } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function unread() { return $this->setRead(false); } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function star() { return $this->setStarred(true); } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function unstar() { return $this->setStarred(false); } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function readAll() { $userId = $this->api->getUserId(); $newestItemId = (int) $this->params('newestItemId'); @@ -178,11 +213,21 @@ class ItemAPI extends Controller { } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function readMultiple() { return $this->setMultipleRead(true); } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function unreadMultiple() { return $this->setMultipleRead(false); } @@ -205,13 +250,24 @@ class ItemAPI extends Controller { } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function starMultiple() { return $this->setMultipleStarred(true); } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ public function unstarMultiple() { return $this->setMultipleStarred(false); } + } -- cgit v1.2.3