summaryrefslogtreecommitdiffstats
path: root/external/itemapi.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-06-12 14:50:15 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-06-12 14:50:25 +0200
commit4faa08d70891da48a0f7647f7eb8730f7f9dc82e (patch)
treea7f66c2748e2f731be2f20f2af36181a29bf6ff1 /external/itemapi.php
parenta70a85bc1839fbd2ebb27f051fe7c473107c5204 (diff)
add annotations for api controllers
Diffstat (limited to 'external/itemapi.php')
-rw-r--r--external/itemapi.php56
1 files changed, 56 insertions, 0 deletions
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);
}
+
}