]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/noticesearchrss.php
Fixed routing for direct messages and favorites in the API
[quix0rs-gnu-social.git] / actions / noticesearchrss.php
index c41d3487335d66476b3634c0df0044bcb89c49b9..7172977ee7a761acb47dcad396a263f57fa237ed 100644 (file)
@@ -1,5 +1,16 @@
 <?php
-/*
+/**
+ * RSS feed for notice search action class.
+ *
+ * PHP version 5
+ *
+ * @category Action
+ * @package  Laconica
+ * @author   Evan Prodromou <evan@controlyourself.ca>
+ * @author   Robin Millette <millette@controlyourself.ca>
+ * @license  http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
+ * @link     http://laconi.ca/
+ *
  * Laconica - a distributed open-source microblogging tool
  * Copyright (C) 2008, Controlez-Vous, Inc.
  *
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-if (!defined('LACONICA')) { exit(1); }
-
-require_once(INSTALLDIR.'/lib/rssaction.php');
+if (!defined('LACONICA')) {
+    exit(1);
+}
 
-// Formatting of RSS handled by Rss10Action
+require_once INSTALLDIR.'/lib/rssaction.php';
 
-class NoticesearchrssAction extends Rss10Action {
+/**
+ * RSS feed for notice search action class.
+ *
+ * Formatting of RSS handled by Rss10Action
+ *
+ * @category Action
+ * @package  Laconica
+ * @author   Evan Prodromou <evan@controlyourself.ca>
+ * @author   Robin Millette <millette@controlyourself.ca>
+ * @license  http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
+ * @link     http://laconi.ca/
+ */
+class NoticesearchrssAction extends Rss10Action
+{
 
     function init()
     {
         return true;
     }
 
-    function get_notices($limit=0)
+    function getNotices($limit=0)
     {
 
         $q = $this->trimmed('q');
@@ -56,7 +80,7 @@ class NoticesearchrssAction extends Rss10Action {
         return $notices;
     }
 
-    function get_channel()
+    function getChannel()
     {
         global $config;
         $q = $this->trimmed('q');
@@ -67,8 +91,13 @@ class NoticesearchrssAction extends Rss10Action {
         return $c;
     }
 
-    function get_image()
+    function getImage()
     {
         return null;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }