6 * All modules in Friendica should extend BaseModule, although not all modules
7 * need to extend all the methods described here
9 * The filename of the module in src/Module needs to match the class name
10 * exactly to make the module available.
12 * @author Hypolite Petovan <hypolite@mrpetovan.com>
14 abstract class BaseModule extends BaseObject
17 * @brief Initialization method common to both content() and post()
19 * Extend this method if you need to do any shared processing before both
22 public static function init()
27 * @brief Module GET method to display raw content from technical endpoints
29 * Extend this method if the module is supposed to return communication data,
30 * e.g. from protocol implementations.
32 public static function rawContent()
37 * @brief Module GET method to display any content
39 * Extend this method if the module is supposed to return any display
40 * through a GET request. It can be an HTML page through templating or a
41 * XML feed or a JSON output.
45 public static function content()
53 * @brief Module POST method to process submitted data
55 * Extend this method if the module is supposed to process POST requests.
56 * Doesn't display any content
58 public static function post()
64 * @brief Called after post()
68 public static function afterpost()