X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FRSSCloud%2FRSSCloudPlugin.php;h=15a25c8d22a893d99a2a50f11803ddaa9277b7ba;hb=200721a2f45dbfa5463ba32165c7f60e517f0622;hp=144e0ca57d134d519e1608fba217d099553c3310;hpb=f79aec36feaa4760201a7e88d5b31513a3c458ba;p=quix0rs-gnu-social.git diff --git a/plugins/RSSCloud/RSSCloudPlugin.php b/plugins/RSSCloud/RSSCloudPlugin.php index 144e0ca57d..15a25c8d22 100644 --- a/plugins/RSSCloud/RSSCloudPlugin.php +++ b/plugins/RSSCloud/RSSCloudPlugin.php @@ -102,7 +102,7 @@ class RSSCloudPlugin extends Plugin * * @return boolean hook return */ - function onRouterInitialized($m) + function onRouterInitialized(URLMapper $m) { $m->connect('/main/rsscloud/request_notify', array('action' => 'RSSCloudRequestNotify')); @@ -115,38 +115,6 @@ class RSSCloudPlugin extends Plugin 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 element to the RSS feed (after the rss * element is started). @@ -185,7 +153,7 @@ class RSSCloudPlugin extends Plugin * @return boolean hook return */ - function onStartEnqueueNotice($notice, &$transports) + function onStartEnqueueNotice(Notice $notice, array &$transports) { if ($notice->isLocal()) { array_push($transports, 'rsscloud'); @@ -207,7 +175,7 @@ class RSSCloudPlugin extends Plugin array( 'fields' => array( 'subscribed' => array('type' => 'int', 'not null' => true), - 'url' => array('type' => 'varchar', 'length' => '255', 'not null' => true), + 'url' => array('type' => 'varchar', 'length' => '191', 'not null' => true), 'failures' => array('type' => 'int', 'not null' => true, 'default' => 0), 'created' => array('type' => 'datetime', 'not null' => true), 'modified' => array('type' => 'timestamp', 'not null' => true), @@ -224,13 +192,13 @@ class RSSCloudPlugin extends Plugin * * @return boolean hook return */ - function onEndInitializeQueueManager($manager) + function onEndInitializeQueueManager(QueueManager $manager) { $manager->connect('rsscloud', 'RSSCloudQueueHandler'); return true; } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'RSSCloud', 'version' => RSSCLOUDPLUGIN_VERSION,