]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/geocode.php
Opps, PEAR sucks. Need to call find() before fetch() ... :-(
[quix0rs-gnu-social.git] / actions / geocode.php
index 7fd696baf9ef32c804a73f7187a7179700ac6a92..a0cd2fa159ff127e3b80e29377bc25af00da3235 100644 (file)
@@ -37,16 +37,22 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
  * @category Action
  * @package  StatusNet
  * @author   Craig Andrews <candrews@integralblue.com>
+ * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
  * @license  http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
  * @link     http://status.net/
  */
 class GeocodeAction extends Action
 {
-    function prepare($args)
+    var $lat = null;
+    var $lon = null;
+    var $location = null;
+
+    function prepare(array $args=array())
     {
         parent::prepare($args);
         $token = $this->trimmed('token');
         if (!$token || $token != common_session_token()) {
+            // TRANS: Client error displayed when the session token does not match or is not given.
             $this->clientError(_('There was a problem with your session token. '.
                                  'Try again, please.'));
         }
@@ -63,8 +69,8 @@ class GeocodeAction extends Action
      *
      * @return nothing
      *
-     **/
-    function handle($args)
+     */
+    function handle(array $args=array())
     {
         header('Content-Type: application/json; charset=utf-8');
         $location_object = array();
@@ -84,10 +90,8 @@ class GeocodeAction extends Action
      *
      * @return boolean true
      */
-
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }
 }
-?>