friendica/src/Module
2021-08-08 10:14:56 +00:00
..
ActivityPub
Admin Fix legacy storage config 2021-07-31 20:56:32 +02:00
Api Use a centralized function to delete delayed entries 2021-08-02 20:56:34 +00:00
Contact Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Conversation Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Debug Completely removed argc/argv 2021-07-25 15:23:37 +00:00
DFRN
Diaspora Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Filer Completely removed argc/argv 2021-07-25 15:23:37 +00:00
HTTPException
Item Added option to define a schedule date when posting items 2021-08-01 13:01:31 +00:00
Notifications
OAuth
Profile Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Search
Security
Settings Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Special
Update
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
BaseAdmin.php
BaseApi.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
BaseNotifications.php
BaseProfile.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
BaseSearch.php
BaseSettings.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Bookmarklet.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Contact.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Credits.php
Delegation.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Directory.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Feed.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
FollowConfirm.php
Friendica.php Add Exception for empty User::getOwnerDataById(0 return case in Protocol\ActivityPub\Transmitter::getProfile() 2021-07-27 16:46:08 -04:00
FriendSuggest.php
Group.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Hashtag.php
HCard.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Help.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Home.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Install.php
Invite.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Magic.php
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Oembed.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php Improved error message for external resources 2021-08-06 04:02:42 +00:00
Proxy.php Don't send "accept" when we accept anything 2021-08-06 04:02:22 +00:00
PublicRSAKey.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
RemoteFollow.php
RobotsTxt.php
Smilies.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Make the system owner ready for Diaspora 2021-08-05 08:30:44 +00: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.