We're using URLMapper, not Net_URL_Mapper

This commit is contained in:
Mikael Nordfeldth 2014-11-07 15:24:05 +01:00
parent 29ac42addd
commit faae9d069a
28 changed files with 56 additions and 56 deletions

View File

@ -43,10 +43,10 @@ class AccountManagerPlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
// Discovery actions
$m->connect('main/amcd.json',

View File

@ -175,12 +175,12 @@ class ActivitySpamPlugin extends Plugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/train/spam',
array('action' => 'train', 'category' => 'spam'));

View File

@ -162,10 +162,10 @@ class BitlyUrlPlugin extends UrlShortenerPlugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('panel/bitly',
array('action' => 'bitlyadminpanel'));

View File

@ -274,11 +274,11 @@ class BlacklistPlugin extends Plugin
/**
* Add our actions to the URL router
*
* @param Net_URL_Mapper $m URL mapper for this hit
* @param URLMapper $m URL mapper for this hit
*
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('panel/blacklist', array('action' => 'blacklistadminpanel'));
return true;

View File

@ -77,11 +77,11 @@ class BlogPlugin extends MicroAppPlugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('blog/new',
array('action' => 'newblogentry'));

View File

@ -109,11 +109,11 @@ class BookmarkPlugin extends MicroAppPlugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
if (common_config('singleuser', 'enabled')) {
$nickname = User::singleUserNickname();

View File

@ -71,12 +71,12 @@ class DirectoryPlugin extends Plugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing,
* false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect(

View File

@ -67,11 +67,11 @@ class EventPlugin extends MicroAppPlugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/event/new',
array('action' => 'newevent'));

View File

@ -48,11 +48,11 @@ class ExtendedProfilePlugin extends Plugin
*
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m URL mapper
* @param URLMapper $m URL mapper
*
* @return boolean hook return
*/
function onStartInitializeRouter($m)
public function onStartInitializeRouter(URLMapper $m)
{
$m->connect(
':nickname/detail',

View File

@ -153,11 +153,11 @@ class FacebookBridgePlugin extends Plugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
// Always add the admin panel route
$m->connect('panel/facebook', array('action' => 'facebookadminpanel'));

View File

@ -29,10 +29,10 @@ class GroupFavoritedPlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized(Net_URL_Mapper $m)
function onRouterInitialized(URLMapper $m)
{
$m->connect('group/:nickname/favorited',
array('action' => 'groupfavorited'),

View File

@ -70,11 +70,11 @@ class GroupPrivateMessagePlugin extends Plugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('group/:nickname/inbox',
array('action' => 'groupinbox'),

View File

@ -66,11 +66,11 @@ class LinkPreviewPlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m URL mapper
* @param URLMapper $m URL mapper
*
* @return boolean hook return
*/
function onStartInitializeRouter($m)
public function onStartInitializeRouter(URLMapper $m)
{
$m->connect('main/oembed/proxy',
array('action' => 'oembedproxy'));

View File

@ -64,11 +64,11 @@ class ModPlusPlugin extends Plugin
*
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m URL mapper
* @param URLMapper $m URL mapper
*
* @return boolean hook return
*/
function onStartInitializeRouter($m)
public function onStartInitializeRouter(URLMapper $m)
{
$m->connect('user/remote/:id',
array('action' => 'remoteprofile'),

View File

@ -48,10 +48,10 @@ class OStatusPlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
// Discovery actions
$m->connect('main/ostatustag',

View File

@ -68,11 +68,11 @@ class OpenIDPlugin extends Plugin
*
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m URL mapper
* @param URLMapper $m URL mapper
*
* @return boolean hook return
*/
function onStartInitializeRouter($m)
public function onStartInitializeRouter(URLMapper $m)
{
$m->connect('main/openid', array('action' => 'openidlogin'));
$m->connect('main/openidtrust', array('action' => 'openidtrust'));

View File

@ -86,11 +86,11 @@ class PollPlugin extends MicroAppPlugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/poll/new',
array('action' => 'newpoll'));

View File

@ -75,12 +75,12 @@ class QnAPlugin extends MicroAppPlugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$UUIDregex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}';

View File

@ -71,10 +71,10 @@ class RealtimePlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/channel/:channelkey/keepalive',
array('action' => 'keepalivechannel'),

View File

@ -182,11 +182,11 @@ class SamplePlugin extends Plugin
* action will be named 'FoobarAction', where action = 'foobar'. The class
* must be loaded in the onAutoload() method.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/hello',
array('action' => 'hello'));

View File

@ -63,11 +63,11 @@ class SearchSubPlugin extends Plugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('search/:search/subscribe',
array('action' => 'searchsub'),

View File

@ -68,11 +68,11 @@ class SitemapPlugin extends Plugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('sitemapindex.xml',
array('action' => 'sitemapindex'));

View File

@ -52,10 +52,10 @@ class SlicedFavoritesPlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('favorited/:slice',
array('action' => 'favoritedslice'),

View File

@ -28,10 +28,10 @@ class SubMirrorPlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('settings/mirror',
array('action' => 'mirrorsettings'));

View File

@ -63,11 +63,11 @@ class TagSubPlugin extends Plugin
/**
* Map URLs to actions
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook value; true means continue processing, false means stop.
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('tag/:tag/subscribe',
array('action' => 'tagsub'),

View File

@ -107,11 +107,11 @@ class TwitterBridgePlugin extends Plugin
*
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
*
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('panel/twitter', array('action' => 'twitteradminpanel'));

View File

@ -67,11 +67,11 @@ class UserFlagPlugin extends Plugin
/**
* Add our actions to the URL router
*
* @param Net_URL_Mapper $m URL mapper for this hit
* @param URLMapper $m URL mapper for this hit
*
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/flag/profile', array('action' => 'flagprofile'));
$m->connect('main/flag/clear', array('action' => 'clearflag'));

View File

@ -29,10 +29,10 @@ class YammerImportPlugin extends Plugin
/**
* Hook for RouterInitialized event.
*
* @param Net_URL_Mapper $m path-to-action mapper
* @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
function onRouterInitialized($m)
public function onRouterInitialized(URLMapper $m)
{
$m->connect('panel/yammer',
array('action' => 'yammeradminpanel'));