You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2009/01/12 01:55:38 UTC
svn commit: r733559 - in /incubator/shindig/trunk/php/src/social:
service/DataRequestHandler.php service/RestRequestItem.php
servlet/ApiServlet.php
Author: chabotc
Date: Sun Jan 11 16:55:37 2009
New Revision: 733559
URL: http://svn.apache.org/viewvc?rev=733559&view=rev
Log:
Minor code formatting cleanups
Modified:
incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php
incubator/shindig/trunk/php/src/social/service/RestRequestItem.php
incubator/shindig/trunk/php/src/social/servlet/ApiServlet.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=733559&r1=733558&r2=733559&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php (original)
+++ incubator/shindig/trunk/php/src/social/service/DataRequestHandler.php Sun Jan 11 16:55:37 2009
@@ -73,10 +73,10 @@
return $decoded;
}
- /*
- * To support people/@supportedFields and activity/@supportedFields
- * @param parameters url parameters to get request type(people/activity)
- */
+ /**
+ * To support people/@supportedFields and activity/@supportedFields
+ * @param parameters url parameters to get request type(people/activity)
+ */
public function getSupportedFields($parameters) {
$context = new GadgetContext('GADGET');
$container = $context->getContainer();
@@ -92,10 +92,10 @@
return new ResponseItem(null, null, $ret);
}
- /*
- * To get OpenSocial version fro getting supportedFields
- * @param config configuration values from container's js files
- */
+ /**
+ * To get OpenSocial version for getting supportedFields
+ * @param config configuration values from container's js files
+ */
private function getOpenSocialVersion($config) {
$str = "opensocial-";
$version = array();
Modified: incubator/shindig/trunk/php/src/social/service/RestRequestItem.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/service/RestRequestItem.php?rev=733559&r1=733558&r2=733559&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/service/RestRequestItem.php (original)
+++ incubator/shindig/trunk/php/src/social/service/RestRequestItem.php Sun Jan 11 16:55:37 2009
@@ -22,8 +22,6 @@
* Represents the request items that come from the restful request.
*/
class RestRequestItem extends RequestItem {
-
- protected static $X_HTTP_METHOD_OVERRIDE = "X-HTTP-Method-Override";
private $url;
private $params;
private $inputConverter;
Modified: incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php?rev=733559&r1=733558&r2=733559&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php (original)
+++ incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php Sun Jan 11 16:55:37 2009
@@ -79,7 +79,6 @@
$appUrl = $request->get_parameter('oauth_consumer_key');
$userId = $request->get_parameter('xoauth_requestor_id'); // from Consumer Request extension (2-legged OAuth)
$signature = $request->get_parameter('oauth_signature');
-
if ($appUrl && $signature) {
//if ($appUrl && $signature && $userId) {
// look up the user and perms for this oauth request
@@ -103,7 +102,6 @@
// accessable to anoymous users! Anonymous == owner = viewer = appId = modId = 0
// create token with 0 values, no gadget url, no domain and 0 duration
-
//FIXME change this to a new AnonymousToken when reworking auth token
$gadgetSigner = Config::get('security_token');
return new $gadgetSigner(null, 0, 0, 0, 0, '', '', 0);