summaryrefslogtreecommitdiff
path: root/modules/user/controllers/user.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-16 19:26:44 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-16 19:26:44 +0000
commit0975e702a99dad701f66c606de6597048338f247 (patch)
treec99bf68acaae9608e89f08afc1b06d1295c2705f /modules/user/controllers/user.php
parent1a2cb5ff043d19736f45d2e845eb44bd32305afe (diff)
Add _method=put to the edit form
Properly implement User_Controller::_put()
Diffstat (limited to 'modules/user/controllers/user.php')
-rw-r--r--modules/user/controllers/user.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/user/controllers/user.php b/modules/user/controllers/user.php
index c25c9c35..35498a04 100644
--- a/modules/user/controllers/user.php
+++ b/modules/user/controllers/user.php
@@ -39,13 +39,7 @@ class User_Controller extends REST_Controller {
/**
* @see Rest_Controller::_put($resource)
*/
- public function _put($resource) {
- }
-
- /**
- * @see Rest_Controller::_post($resource)
- */
- public function _post($user) {
+ public function _put($user) {
$form = user::get_edit_form($user);
if ($form->validate()) {
foreach ($form->as_array() as $key => $value) {
@@ -58,13 +52,19 @@ class User_Controller extends REST_Controller {
return;
}
print $form;
- throw new Exception("@todo User_Controller::_put NOT IMPLEMENTED");
+ }
+
+ /**
+ * @see Rest_Controller::_post($resource)
+ */
+ public function _post($user) {
+ throw new Exception("@todo User_Controller::_post NOT IMPLEMENTED");
}
/**
* @see Rest_Controller::_delete($resource)
*/
- public function _delete($resource) {
+ public function _delete($user) {
throw new Exception("@todo User_Controller::_delete NOT IMPLEMENTED");
}
} \ No newline at end of file