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()
28 * @brief Module GET method to display any content
30 * Extend this method if the module is supposed to return any display
31 * through a GET request. It can be an HTML page through templating or a
32 * XML feed or a JSON output.
36 public static function content()
44 * @brief Module POST method to process submitted data
46 * Extend this method if the module is supposed to process POST requests.
47 * Doesn't display any content
49 public static function post()
55 * @brief Called after post()
59 public static function afterpost()