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