Author: chabotc
Date: Sun Jun 14 11:43:34 2009
New Revision: 784544

URL: http://svn.apache.org/viewvc?rev=784544&view=rev
Log:
Properly assign create & update aliases, bug went unnoticed before since all 
the service handlers had just one function for both the create and update 
actions, but the new messages handler did not

Modified:
    incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php

Modified: incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php?rev=784544&r1=784543&r2=784544&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php 
(original)
+++ incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php Sun 
Jun 14 11:43:34 2009
@@ -19,10 +19,10 @@
  */
 
 abstract class DataRequestHandler {
-  
+
   private static $GET_SYNONYMS = array("get");
-  private static $CREATE_SYNONYMS = array("put", "create");
-  private static $UPDATE_SYNONYMS = array("post", "update");
+  private static $CREATE_SYNONYMS = array("post", "create");
+  private static $UPDATE_SYNONYMS = array("put", "update");
   private static $DELETE_SYNONYMS = array("delete");
 
   public function handleItem(RequestItem $requestItem) {
@@ -74,7 +74,7 @@
   }
 
   /**
-   *  To support people/@supportedFields and activity/@supportedFields 
+   *  To support people/@supportedFields and activity/@supportedFields
    *  @param parameters url parameters to get request type(people/activity)
    */
   public function getSupportedFields($parameters) {
@@ -93,7 +93,7 @@
   }
 
   /**
-   *  To get OpenSocial version for getting supportedFields 
+   *  To get OpenSocial version for getting supportedFields
    *  @param config configuration values from container's js files
    */
   private function getOpenSocialVersion($config) {


Reply via email to