]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
We're using URLMapper, not Net_URL_Mapper
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Nov 2014 14:24:05 +0000 (15:24 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Nov 2014 14:24:05 +0000 (15:24 +0100)
28 files changed:
plugins/AccountManager/AccountManagerPlugin.php
plugins/ActivitySpam/ActivitySpamPlugin.php
plugins/BitlyUrl/BitlyUrlPlugin.php
plugins/Blacklist/BlacklistPlugin.php
plugins/Blog/BlogPlugin.php
plugins/Bookmark/BookmarkPlugin.php
plugins/Directory/DirectoryPlugin.php
plugins/Event/EventPlugin.php
plugins/ExtendedProfile/ExtendedProfilePlugin.php
plugins/FacebookBridge/FacebookBridgePlugin.php
plugins/GroupFavorited/GroupFavoritedPlugin.php
plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php
plugins/LinkPreview/LinkPreviewPlugin.php
plugins/ModPlus/ModPlusPlugin.php
plugins/OStatus/OStatusPlugin.php
plugins/OpenID/OpenIDPlugin.php
plugins/Poll/PollPlugin.php
plugins/QnA/QnAPlugin.php
plugins/Realtime/RealtimePlugin.php
plugins/Sample/SamplePlugin.php
plugins/SearchSub/SearchSubPlugin.php
plugins/Sitemap/SitemapPlugin.php
plugins/SlicedFavorites/SlicedFavoritesPlugin.php
plugins/SubMirror/SubMirrorPlugin.php
plugins/TagSub/TagSubPlugin.php
plugins/TwitterBridge/TwitterBridgePlugin.php
plugins/UserFlag/UserFlagPlugin.php
plugins/YammerImport/YammerImportPlugin.php

index 3dea569dfff312555c34c54e4d614bdb44fb44c5..c4edce74e85ba5dbc07ee6c441d7a03067c43e00 100644 (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',
index 70d927900dbda4d40ddfbde9af158e2526a81b44..a3974b3a7879a46d2103388e3236336537d6040b 100644 (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'));
index 2286d1da3d5cc3ab8d2edb6550358266297cc3b6..d4d56c1be2bf5970a9a5d3e79e1e78610ff4f062 100644 (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'));
index 4e1b030893b23e117118bafc6391ca58bf7a80cc..fc26cd77c631e63a21351005408a1555e133a2cd 100644 (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;
index f6b702376b9ab8c4337dacaf1abda6c2a5ac9ae0..8d5532b8b17c508c1cce18f1960c20aaf07e7a9c 100644 (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'));
index 738f4bc38b5eb12283cb5b1b03e2b2826ef9b168..9ea83c4caf1f2263f43ff3952b5e550093b585fc 100644 (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();
index caf137c29ec6ad0d171248d5a457d5caa9b1f45e..7ac0f9326588684d1dc61b9d383f7db513f7251c 100644 (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(
index 305d80fa3caf4126cb9915cad8d67470d23bb203..8d661bbd8525d62e49a2217dfaacb4c92225e561 100644 (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'));
index aa456c2f9b700890103592f3a9a1dde8ec9c84ae..a5cd823bb76ff14c5e6c37f0ed0c1892a6c409a9 100644 (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',
index b6c1f16f50c66271983ba9d20a198829b4649fb7..fff5a7621b426b7a49063df2c4ff93de7b8db3ad 100644 (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'));
index 90a1fe5ca04ddd94a054ce0ee1f9bf29b2197c2f..bfb7374d1d6050e5b09ab8d448ea246d679932df 100644 (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'),
index 2fd9e3ef429b71ea211a3d8e978d21ec9133062e..73d7201e6f726c179a5c99041e17945c454373d7 100644 (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'),
index 0a1d6d0da8b0986f4d6702be650e4f5f69727368..effb105e2ba0fcb128ddcd5bc76e3890e7ccfc38 100644 (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'));
index 945a649f304c11a814a5508ada031662844983c5..1ca024e9aca29c77d829d90c8a9bdf5cd3761e0d 100644 (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'),
index 4e2c626244209288049522d16616ecd1e7c8bf38..e4f9ccc7a184c802cee3ba2f77fe3111316aa520 100644 (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',
index 5adb56662619694c625bd9449fb94cb81c2146d9..fab35fe2f4eafb09faa95ffc54d374330b45a7d7 100644 (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'));
index 636457aed48a414df203326b50233888d6d58408..92886dcc28defac7a39bb83d5a9b0a842fe69dcb 100644 (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'));
index e0f5fed12bc5017bf397411f06e74b2b9ebf2d00..bdd54afd2ea7ca995c394be2a1995017fab0ba37 100644 (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}';
 
index b0b79fd1c622fc61a7bd6bc203a0d2082440a67a..25fa921ffec9709047f8f555d84b13a040be9879 100644 (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'),
index 0a0e50b3606c2d6330c0fe9f4dbf6a68b4f97038..8758013a4147fc85dd7f98906df5a88405190c9a 100644 (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'));
index ba25bf1b2b52dab9cafdce1208b7b9fe46e391ed..dc7ff7b19a2fff843bb2db3e85ec3d696cd0d2af 100644 (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'),
index ca165893167fd7989d9181dfab977ee25c7c74b6..3d83629bb2dc1acfa59b6f2d1e61bcaf6d6d752d 100644 (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'));
index b3cf058a05d2eb5f36708d27adfc72d8f93b58a6..92d1f55c3f5d365bcb50d2d36601a57dfa6ba0fd 100644 (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'),
index b0f95125f30f7defa46dedbe59273edbec1ec792..a21cb4355131d5c658fac811b27dcd566563d409 100644 (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'));
index 1c493de0cd5e04e9540c381a1246b0869911258c..ef58553d2eb3f28a548d251efcfdc977ab98c490 100644 (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'),
index 8d14744090ab0c5a734e5264b40fba4a31c43c79..643591cf775e1fb8d62ad6c75964e43e78c656b8 100644 (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'));
 
index 490a08f4a8e64fc3362bfb76da179be924ddd857..a5fc470e079e19af0d9294837945130f8b0656cf 100644 (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'));
index 9d6c5ad41e850847e2a9154e3f0121c578bc4176..f11ebfbfac4e6da6693bbf8616b0f1f767d516ef 100644 (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'));