*
* @return boolean hook return
*/
- function onRouterInitialized($m)
+ function onRouterInitialized(URLMapper $m)
{
$m->connect('/main/rsscloud/request_notify',
array('action' => 'RSSCloudRequestNotify'));
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 boolean hook return
*/
- function onStartEnqueueNotice($notice, &$transports)
+ function onStartEnqueueNotice(Notice $notice, array &$transports)
{
if ($notice->isLocal()) {
array_push($transports, 'rsscloud');
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),
*
* @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,