mirror of
https://github.com/friendica/friendica
synced 2025-04-29 10:24:23 +02:00
Make BaseModule methods dynamic
This commit is contained in:
parent
714f0febc4
commit
489cd0884a
253 changed files with 397 additions and 385 deletions
|
@ -13,7 +13,7 @@ interface ICanHandleRequests
|
|||
* Extend this method if you need to do any shared processing before both
|
||||
* content() or post()
|
||||
*/
|
||||
public static function init();
|
||||
public function init();
|
||||
|
||||
/**
|
||||
* Module GET method to display raw content from technical endpoints
|
||||
|
@ -21,7 +21,7 @@ interface ICanHandleRequests
|
|||
* Extend this method if the module is supposed to return communication data,
|
||||
* e.g. from protocol implementations.
|
||||
*/
|
||||
public static function rawContent();
|
||||
public function rawContent();
|
||||
|
||||
/**
|
||||
* Module GET method to display any content
|
||||
|
@ -29,10 +29,8 @@ interface ICanHandleRequests
|
|||
* Extend this method if the module is supposed to return any display
|
||||
* through a GET request. It can be an HTML page through templating or a
|
||||
* XML feed or a JSON output.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function content();
|
||||
public function content(): string;
|
||||
|
||||
/**
|
||||
* Module DELETE method to process submitted data
|
||||
|
@ -40,7 +38,7 @@ interface ICanHandleRequests
|
|||
* Extend this method if the module is supposed to process DELETE requests.
|
||||
* Doesn't display any content
|
||||
*/
|
||||
public static function delete();
|
||||
public function delete();
|
||||
|
||||
/**
|
||||
* Module PATCH method to process submitted data
|
||||
|
@ -48,7 +46,7 @@ interface ICanHandleRequests
|
|||
* Extend this method if the module is supposed to process PATCH requests.
|
||||
* Doesn't display any content
|
||||
*/
|
||||
public static function patch();
|
||||
public function patch();
|
||||
|
||||
/**
|
||||
* Module POST method to process submitted data
|
||||
|
@ -56,14 +54,14 @@ interface ICanHandleRequests
|
|||
* Extend this method if the module is supposed to process POST requests.
|
||||
* Doesn't display any content
|
||||
*/
|
||||
public static function post();
|
||||
public function post();
|
||||
|
||||
/**
|
||||
* Called after post()
|
||||
*
|
||||
* Unknown purpose
|
||||
*/
|
||||
public static function afterpost();
|
||||
public function afterpost();
|
||||
|
||||
/**
|
||||
* Module PUT method to process submitted data
|
||||
|
@ -71,7 +69,7 @@ interface ICanHandleRequests
|
|||
* Extend this method if the module is supposed to process PUT requests.
|
||||
* Doesn't display any content
|
||||
*/
|
||||
public static function put();
|
||||
public function put();
|
||||
|
||||
public static function getClassName(): string;
|
||||
public function getClassName(): string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue