Commit faae9d06 authored by mmn's avatar mmn

We're using URLMapper, not Net_URL_Mapper

parent 29ac42ad
......@@ -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',
......
......@@ -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'));
......
......@@ -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'));
......
......@@ -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;
......
......@@ -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'));
......
......@@ -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();
......
......@@ -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(
......
......@@ -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'));
......
......@@ -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',
......
......@@ -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'));
......
......@@ -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'),
......
......@@ -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'),
......
......@@ -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'));
......
......@@ -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'),
......
......@@ -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',
......
......@@ -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'));
......
......@@ -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'));
......
......@@ -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}';
......
......@@ -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'),
......
......@@ -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'));
......
......@@ -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'),
......
......@@ -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'));
......
......@@ -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'),
......
......@@ -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'));
......
......@@ -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'),
......
......@@ -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'));
......
......@@ -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'));
......
......@@ -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'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment