Files
friendica/src/Module
Hypolite Petovan ee1954f294 Merge pull request #7762 from nupplaphil/task/mod_ignored
move mod/ignored to src/Module/Item/Ignored
2019-10-24 12:04:50 -04:00
..
2019-10-22 22:47:37 +02:00
2019-10-21 17:29:53 +02:00
2019-05-18 20:34:11 +02:00
2019-05-01 19:48:49 +02:00
2019-03-22 22:28:13 -04:00
2019-05-05 10:00:28 +02:00
2019-05-03 08:50:17 +02:00
2019-05-04 21:25:16 +02:00
2019-05-01 21:29:04 +02:00
2019-05-19 03:12:22 +02:00
2019-05-01 20:17:15 +02:00
2019-05-18 21:23:12 +02:00
2019-01-21 10:35:51 -05:00

Friendica\Module

The Module namespace contains the different modules of Friendica. Each module is loaded through the App.

There are mainly two types of modules:

  • frontend modules to interact with users
  • backend modules to interact with machine requests

Frontend modules

This type of modules mainly needs a template, which are generally located at view/templates/.

A frontend module should extend the BaseModule, especially the content() method.

Backend modules

This type of modules mainly responds either with encoded XML or with JSON output. It isn't intended to respond with human readable text.

A frontend module should extend the BaseModule, especially the rawContent() method.

Routing

Every module needs to be accessed within a route. The routes are defined inside Router->collectRoutes().

Use the given routes as a pattern for further routes.

The routing library and further documentation can be found here.