]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseModule.php
Relocated functions
[friendica.git] / src / BaseModule.php
index 3bc2ac9ff277a324d7a6095978596285296bf1d1..be53289e52c41f045fc27ac1ea11a5454786acc6 100644 (file)
@@ -22,7 +22,7 @@ abstract class BaseModule extends BaseObject
         * Extend this method if you need to do any shared processing before both
         * content() or post()
         */
-       public static function init($parameters)
+       public static function init(array $parameters = [])
        {
        }
 
@@ -32,8 +32,10 @@ abstract class BaseModule extends BaseObject
         * Extend this method if the module is supposed to return communication data,
         * e.g. from protocol implementations.
         */
-       public static function rawContent($parameters)
+       public static function rawContent(array $parameters = [])
        {
+               // echo '';
+               // exit;
        }
 
        /**
@@ -45,7 +47,7 @@ abstract class BaseModule extends BaseObject
         *
         * @return string
         */
-       public static function content($parameters)
+       public static function content(array $parameters = [])
        {
                $o = '';
 
@@ -58,8 +60,10 @@ abstract class BaseModule extends BaseObject
         * Extend this method if the module is supposed to process POST requests.
         * Doesn't display any content
         */
-       public static function post($parameters)
+       public static function post(array $parameters = [])
        {
+               // $a = self::getApp();
+               // $a->internalRedirect('module');
        }
 
        /**
@@ -67,7 +71,7 @@ abstract class BaseModule extends BaseObject
         *
         * Unknown purpose
         */
-       public static function afterpost($parameters)
+       public static function afterpost(array $parameters = [])
        {
        }