summaryrefslogtreecommitdiff
path: root/plugins/RSSCloud/LoggingAggregator.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-12-11 17:50:10 -0800
committerZach Copley <zach@status.net>2010-01-05 23:19:13 -0800
commit48af79dbb4cf1b4f915bf0d3d05e9fe3770664df (patch)
treed6fbebf48b83db0d9cf1bb66605fd02996980dc2 /plugins/RSSCloud/LoggingAggregator.php
parentc571c1323f3ff42baa31dd4f008d2417ac0f0e76 (diff)
Added a bunch of function commment blocks
Diffstat (limited to 'plugins/RSSCloud/LoggingAggregator.php')
-rw-r--r--plugins/RSSCloud/LoggingAggregator.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/RSSCloud/LoggingAggregator.php b/plugins/RSSCloud/LoggingAggregator.php
index 02175f43a..c81a987f7 100644
--- a/plugins/RSSCloud/LoggingAggregator.php
+++ b/plugins/RSSCloud/LoggingAggregator.php
@@ -32,6 +32,19 @@ if (!defined('STATUSNET')) {
exit(1);
}
+/**
+ * Dummy aggregator that acts as a proper notification handler. It
+ * doesn't do anything but respond correctly when notified via
+ * REST. Mostly, this is just and action I used to develop the plugin
+ * and easily test things end-to-end. I'm leaving it in here as it
+ * may be useful for developing the plugin further.
+ *
+ * @category Plugin
+ * @package StatusNet
+ * @author Zach Copley <zach@status.net>
+ * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
+ * @link http://status.net/
+ **/
class LoggingAggregatorAction extends Action
{
@@ -45,6 +58,7 @@ class LoggingAggregatorAction extends Action
*
* @return boolean false if user doesn't exist
*/
+
function prepare($args)
{
parent::prepare($args);
@@ -58,6 +72,14 @@ class LoggingAggregatorAction extends Action
return true;
}
+ /**
+ * Handle the request
+ *
+ * @param array $args $_REQUEST data (unused)
+ *
+ * @return void
+ */
+
function handle($args)
{
parent::handle($args);
@@ -98,6 +120,14 @@ class LoggingAggregatorAction extends Action
$this->url . ' has been updated.');
}
+ /**
+ * Show an XML error when things go badly
+ *
+ * @param string $msg the error message
+ *
+ * @return void
+ */
+
function showError($msg)
{
header('HTTP/1.1 400 Bad Request');