Files
friendica/src/Module
Hypolite Petovan b83526ad0b Tighten profile restriction feature
- Prevent feed access to restricted profiles
- Rework display of restricted profiles with a redirect to the profile/restricted route
- Normalize permission checking with IHandleUserSession->isAuthenticated
- Remove unusable "nocache" parameter in feed module because session isn't initialized
- Reword setting name and description
2022-12-01 08:03:35 -05:00
..
2022-08-19 19:12:29 +02:00
2022-10-21 10:19:13 +02:00
2022-12-01 08:03:35 -05:00
2022-10-15 00:44:06 +02:00
2022-12-01 08:03:35 -05:00
2022-01-02 08:27:47 +01:00
2022-11-08 02:28:42 -05:00
2022-10-15 00:44:06 +02:00
2022-11-08 02:28:42 -05:00
2022-01-02 08:27:47 +01:00
2022-12-01 08:03:35 -05:00
2022-01-02 08:27:47 +01:00
2022-01-02 08:27:47 +01:00
2022-11-19 19:15:47 -05:00
2022-10-18 12:29:50 +00:00
2022-06-23 17:30:14 +02:00
2022-05-18 02:13:54 +00:00
2022-06-23 17:30:16 +02:00
2022-01-02 08:27:47 +01:00
2022-01-02 08:27:47 +01:00
2019-05-01 20:17:15 +02:00
2022-05-18 02:13:54 +00:00
2022-01-02 08:27:47 +01:00
2022-05-18 02:13:54 +00:00
2022-05-18 02:19:45 +00:00
2022-01-02 08:27:47 +01:00
2022-01-02 08:27:47 +01: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.