X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseModule.php;h=cb8f8c790de7317e064db3ee88b97c704e02b3bb;hb=8a3db0226b40420863b4d36b1d5afcac6ce08101;hp=19b58ad06683f8413ae6a2385b69d42909a81c24;hpb=2a431b580f2e8f6a596e84175932e793678cde63;p=friendica.git diff --git a/src/BaseModule.php b/src/BaseModule.php index 19b58ad066..cb8f8c790d 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -72,6 +72,26 @@ abstract class BaseModule return $o; } + /** + * Module DELETE method to process submitted data + * + * Extend this method if the module is supposed to process DELETE requests. + * Doesn't display any content + */ + public static function delete(array $parameters = []) + { + } + + /** + * Module PATCH method to process submitted data + * + * Extend this method if the module is supposed to process PATCH requests. + * Doesn't display any content + */ + public static function patch(array $parameters = []) + { + } + /** * Module POST method to process submitted data * @@ -92,6 +112,16 @@ abstract class BaseModule { } + /** + * Module PUT method to process submitted data + * + * Extend this method if the module is supposed to process PUT requests. + * Doesn't display any content + */ + public static function put(array $parameters = []) + { + } + /* * Functions used to protect against Cross-Site Request Forgery * The security token has to base on at least one value that an attacker can't know - here it's the session ID and the private key.