* @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 RSSCloudPlugin extends Plugin
{
/**
*
* @return void
*/
-
function onInitializePlugin()
{
$this->domain = common_config('rsscloud', 'domain');
*
* @return boolean hook return
*/
-
function onRouterInitialized($m)
{
$m->connect('/main/rsscloud/request_notify',
return true;
}
- /**
- * Automatically load the actions and libraries used by
- * the RSSCloud plugin
- *
- * @param Class $cls the class
- *
- * @return boolean hook return
- *
- */
-
- function onAutoload($cls)
- {
- switch ($cls)
- {
- case 'RSSCloudSubscription':
- include_once INSTALLDIR . '/plugins/RSSCloud/RSSCloudSubscription.php';
- return false;
- case 'RSSCloudNotifier':
- include_once INSTALLDIR . '/plugins/RSSCloud/RSSCloudNotifier.php';
- return false;
- case 'RSSCloudQueueHandler':
- include_once INSTALLDIR . '/plugins/RSSCloud/RSSCloudQueueHandler.php';
- return false;
- case 'RSSCloudRequestNotifyAction':
- case 'LoggingAggregatorAction':
- include_once INSTALLDIR . '/plugins/RSSCloud/' .
- mb_substr($cls, 0, -6) . '.php';
- return false;
- default:
- return true;
- }
- }
-
/**
* Add a <cloud> element to the RSS feed (after the rss <channel>
* element is started).
*
* @return void
*/
-
function onStartApiRss($action)
{
if (get_class($action) == 'ApiTimelineUserAction') {
'author' => 'Zach Copley',
'homepage' => 'http://status.net/wiki/Plugin:RSSCloud',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('The RSSCloud plugin enables your StatusNet instance to publish ' .
'real-time updates for profile RSS feeds using the ' .
'<a href="http://rsscloud.org/">RSSCloud protocol</a>.'));
return true;
}
-
}