6 * All modules in Friendica should extend BaseModule, although not all modules
7 * need to extend all the methods described here
9 * @author Hypolite Petovan mrpetovan@gmail.com
11 abstract class BaseModule extends BaseObject
14 * @brief Initialization method common to both content() and post()
16 * Extend this method if you need to do any shared processing before both
19 public static function init()
25 * @brief Module GET method to display any content
27 * Extend this method if the module is supposed to return any display
28 * through a GET request. It can be an HTML page through templating or a
29 * XML feed or a JSON output.
33 public static function content()
41 * @brief Module POST method to process submitted data
43 * Extend this method if the module is supposed to process POST requests.
44 * Doesn't display any content
46 public static function post()
52 * @brief Called after post()
56 public static function afterpost()