X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnoticesearchrss.php;h=7172977ee7a761acb47dcad396a263f57fa237ed;hb=5e816d7be208fc24419288234559c78da7391c8b;hp=20fe0ff2abddfe337ef78b00d7028e6dbecb98a5;hpb=02877224b20f87af304553f739b69544d7ac4cfa;p=quix0rs-gnu-social.git diff --git a/actions/noticesearchrss.php b/actions/noticesearchrss.php index 20fe0ff2ab..7172977ee7 100644 --- a/actions/noticesearchrss.php +++ b/actions/noticesearchrss.php @@ -1,5 +1,16 @@ + * @author Robin Millette + * @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. * @@ -17,12 +28,24 @@ * along with this program. If not, see . */ -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'; +/** + * RSS feed for notice search action class. + * + * Formatting of RSS handled by Rss10Action + * + * @category Action + * @package Laconica + * @author Evan Prodromou + * @author Robin Millette + * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 + * @link http://laconi.ca/ + */ class NoticesearchrssAction extends Rss10Action { @@ -31,7 +54,7 @@ class NoticesearchrssAction extends Rss10Action return true; } - function get_notices($limit=0) + function getNotices($limit=0) { $q = $this->trimmed('q'); @@ -57,7 +80,7 @@ class NoticesearchrssAction extends Rss10Action return $notices; } - function get_channel() + function getChannel() { global $config; $q = $this->trimmed('q'); @@ -68,8 +91,13 @@ class NoticesearchrssAction extends Rss10Action return $c; } - function get_image() + function getImage() { return null; } + + function isReadOnly() + { + return true; + } }