summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-25 02:38:53 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-25 02:38:53 +0000
commitf6ebb436e46b181152cc32d6fbb2169350c6ea18 (patch)
tree5d37d33d1790906db83a740ee947c6d08e7d320c
parent481352c382d769d9074223ae9c7b6d969f0f6e58 (diff)
Rest_Controller -> REST_Controller everywhere, for consistency.
-rw-r--r--core/controllers/albums.php10
-rw-r--r--core/controllers/items.php6
-rw-r--r--core/controllers/photos.php6
-rw-r--r--modules/comment/controllers/comments.php14
-rw-r--r--modules/user/controllers/groups.php14
-rw-r--r--modules/user/controllers/users.php14
6 files changed, 32 insertions, 32 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php
index 08b61058..10887592 100644
--- a/core/controllers/albums.php
+++ b/core/controllers/albums.php
@@ -20,7 +20,7 @@
class Albums_Controller extends Items_Controller {
/**
- * @see Rest_Controller::_show($resource)
+ * @see REST_Controller::_show($resource)
*/
public function _show($album) {
access::required("view", $album);
@@ -50,7 +50,7 @@ class Albums_Controller extends Items_Controller {
}
/**
- * @see Rest_Controller::_create($resource)
+ * @see REST_Controller::_create($resource)
*/
public function _create($album) {
access::required("edit", $album);
@@ -114,7 +114,7 @@ class Albums_Controller extends Items_Controller {
}
/**
- * @see Rest_Controller::_update($resource)
+ * @see REST_Controller::_update($resource)
*/
public function _update($album) {
access::required("edit", $album);
@@ -141,7 +141,7 @@ class Albums_Controller extends Items_Controller {
}
/**
- * @see Rest_Controller::_form_add($parameters)
+ * @see REST_Controller::_form_add($parameters)
*/
public function _form_add($album_id) {
$album = ORM::factory("item", $album_id);
@@ -162,7 +162,7 @@ class Albums_Controller extends Items_Controller {
}
/**
- * @see Rest_Controller::_form_add($parameters)
+ * @see REST_Controller::_form_add($parameters)
*/
public function _form_edit($album) {
access::required("edit", $album);
diff --git a/core/controllers/items.php b/core/controllers/items.php
index 1cb24324..ab63889e 100644
--- a/core/controllers/items.php
+++ b/core/controllers/items.php
@@ -21,21 +21,21 @@ class Items_Controller extends REST_Controller {
protected $resource_type = "item";
/**
- * @see Rest_Controller::_index()
+ * @see REST_Controller::_index()
*/
public function _index() {
throw new Exception("@todo Item_Controller::_index NOT IMPLEMENTED");
}
/**
- * @see Rest_Controller::_form_add($parameters)
+ * @see REST_Controller::_form_add($parameters)
*/
public function _form_add($parameters) {
throw new Exception("@todo Items_Controller::_form_add NOT IMPLEMENTED");
}
/**
- * @see Rest_Controller::_form_edit($resource)
+ * @see REST_Controller::_form_edit($resource)
*/
public function _form_edit($item) {
throw new Exception("@todo Items_Controller::_form_edit NOT IMPLEMENTED");
diff --git a/core/controllers/photos.php b/core/controllers/photos.php
index 4690bf58..a8282f36 100644
--- a/core/controllers/photos.php
+++ b/core/controllers/photos.php
@@ -20,7 +20,7 @@
class Photos_Controller extends Items_Controller {
/**
- * @see Rest_Controller::_show($resource)
+ * @see REST_Controller::_show($resource)
*/
public function _show($photo) {
access::required("view", $photo);
@@ -40,7 +40,7 @@ class Photos_Controller extends Items_Controller {
}
/**
- * @see Rest_Controller::_update($resource)
+ * @see REST_Controller::_update($resource)
*/
public function _update($photo) {
access::required("edit", $photo);
@@ -68,7 +68,7 @@ class Photos_Controller extends Items_Controller {
}
/**
- * @see Rest_Controller::_form_edit($resource)
+ * @see REST_Controller::_form_edit($resource)
*/
public function _form_edit($photo) {
access::required("edit", $photo);
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php
index 8ebb23af..e759309f 100644
--- a/modules/comment/controllers/comments.php
+++ b/modules/comment/controllers/comments.php
@@ -22,7 +22,7 @@ class Comments_Controller extends REST_Controller {
/**
* Display comments based on criteria.
- * @see Rest_Controller::_index()
+ * @see REST_Controller::_index()
*/
public function _index() {
$item = ORM::factory("item", $this->input->get('item_id'));
@@ -52,7 +52,7 @@ class Comments_Controller extends REST_Controller {
/**
* Add a new comment to the collection.
- * @see Rest_Controller::_create($resource)
+ * @see REST_Controller::_create($resource)
*/
public function _create($comment) {
rest::http_content_type(rest::JSON);
@@ -82,7 +82,7 @@ class Comments_Controller extends REST_Controller {
/**
* Display an existing comment.
* @todo Set proper Content-Type in a central place (REST_Controller::dispatch?).
- * @see Rest_Controller::_show($resource)
+ * @see REST_Controller::_show($resource)
*/
public function _show($comment) {
if (rest::output_format() == "json") {
@@ -96,7 +96,7 @@ class Comments_Controller extends REST_Controller {
/**
* Change an existing comment.
- * @see Rest_Controller::_update($resource)
+ * @see REST_Controller::_update($resource)
*/
public function _update($comment) {
rest::http_content_type(rest::JSON);
@@ -122,7 +122,7 @@ class Comments_Controller extends REST_Controller {
/**
* Delete existing comment.
- * @see Rest_Controller::_delete($resource)
+ * @see REST_Controller::_delete($resource)
*/
public function _delete($comment) {
rest::http_content_type(rest::JSON);
@@ -133,7 +133,7 @@ class Comments_Controller extends REST_Controller {
/**
* Present a form for adding a new comment to this item or editing an existing comment.
- * @see Rest_Controller::form_add($resource)
+ * @see REST_Controller::form_add($resource)
*/
public function _form_add($item_id) {
print comment::get_add_form($item_id);
@@ -141,7 +141,7 @@ class Comments_Controller extends REST_Controller {
/**
* Present a form for editing an existing comment.
- * @see Rest_Controller::form_edit($resource)
+ * @see REST_Controller::form_edit($resource)
*/
public function _form_edit($comment) {
print comment::get_edit_form($comment);
diff --git a/modules/user/controllers/groups.php b/modules/user/controllers/groups.php
index 96084fe2..7c68c405 100644
--- a/modules/user/controllers/groups.php
+++ b/modules/user/controllers/groups.php
@@ -22,14 +22,14 @@ class Groups_Controller extends REST_Controller {
/**
* Display comments based on criteria.
- * @see Rest_Controller::_index()
+ * @see REST_Controller::_index()
*/
public function _index() {
throw new Exception("@todo Group_Controller::_index NOT IMPLEMENTED");
}
/**
- * @see Rest_Controller::_create($resource)
+ * @see REST_Controller::_create($resource)
*/
public function _create($resource) {
$form = group::get_add_form();
@@ -43,14 +43,14 @@ class Groups_Controller extends REST_Controller {
}
/**
- * @see Rest_Controller::_show($resource)
+ * @see REST_Controller::_show($resource)
*/
public function _show($user) {
throw new Exception("@todo Group_Controller::_show NOT IMPLEMENTED");
}
/**
- * @see Rest_Controller::_update($resource)
+ * @see REST_Controller::_update($resource)
*/
public function _update($group) {
$form = group::get_edit_form($group);
@@ -65,7 +65,7 @@ class Groups_Controller extends REST_Controller {
}
/**
- * @see Rest_Controller::_delete($resource)
+ * @see REST_Controller::_delete($resource)
*/
public function _delete($group) {
if (!(user::active()->admin) || $group->special) {
@@ -84,7 +84,7 @@ class Groups_Controller extends REST_Controller {
/**
* Present a form for editing a user
- * @see Rest_Controller::form($resource)
+ * @see REST_Controller::form($resource)
*/
public function _form_edit($group) {
if ($group->guest || group::active()->id != $group->id) {
@@ -98,7 +98,7 @@ class Groups_Controller extends REST_Controller {
/**
* Present a form for adding a user
- * @see Rest_Controller::form($resource)
+ * @see REST_Controller::form($resource)
*/
public function _form_add($parameters) {
throw new Exception("@todo Group_Controller::_form_add NOT IMPLEMENTED");
diff --git a/modules/user/controllers/users.php b/modules/user/controllers/users.php
index f21e9ae0..3c93262f 100644
--- a/modules/user/controllers/users.php
+++ b/modules/user/controllers/users.php
@@ -22,14 +22,14 @@ class Users_Controller extends REST_Controller {
/**
* Display comments based on criteria.
- * @see Rest_Controller::_index()
+ * @see REST_Controller::_index()
*/
public function _index() {
throw new Exception("@todo User_Controller::_index NOT IMPLEMENTED");
}
/**
- * @see Rest_Controller::_create($resource)
+ * @see REST_Controller::_create($resource)
*/
public function _create($resource) {
if (!(user::active()->admin)) {
@@ -50,14 +50,14 @@ class Users_Controller extends REST_Controller {
}
/**
- * @see Rest_Controller::_show($resource)
+ * @see REST_Controller::_show($resource)
*/
public function _show($user) {
throw new Exception("@todo User_Controller::_show NOT IMPLEMENTED");
}
/**
- * @see Rest_Controller::_update($resource)
+ * @see REST_Controller::_update($resource)
*/
public function _update($user) {
if ($user->guest || (!user::active()->admin && $user->id != user::active()->id)) {
@@ -79,7 +79,7 @@ class Users_Controller extends REST_Controller {
}
/**
- * @see Rest_Controller::_delete($resource)
+ * @see REST_Controller::_delete($resource)
*/
public function _delete($user) {
if (!(user::active()->admin) || $user->id == user::active()->id) {
@@ -98,7 +98,7 @@ class Users_Controller extends REST_Controller {
/**
* Present a form for editing a user
- * @see Rest_Controller::form($resource)
+ * @see REST_Controller::form($resource)
*/
public function _form_edit($user) {
if ($user->guest || user::active()->id != $user->id) {
@@ -112,7 +112,7 @@ class Users_Controller extends REST_Controller {
/**
* Present a form for adding a user
- * @see Rest_Controller::form($resource)
+ * @see REST_Controller::form($resource)
*/
public function _form_add($parameters) {
throw new Exception("@todo User_Controller::_form_add NOT IMPLEMENTED");