friendica/src/Module
2021-08-09 15:38:22 +00:00
..
ActivityPub
Admin Fix legacy storage config 2021-07-31 20:56:32 +02:00
Api Respect the postopts values for scheduled posts 2021-08-06 18:49:17 +00:00
Contact Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Conversation Removed some more unused "use" 2021-08-08 20:03:28 +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 Get rid of App->user completely 2021-08-08 19:30:21 +00:00
Notifications
OAuth
Profile Merge remote-tracking branch 'upstream/develop' into app-user2 2021-08-09 15:32:32 +00:00
Search
Security Get rid of App->user completely 2021-08-08 19:30:21 +00:00
Settings Use owner not profile 2021-08-09 15:38:22 +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 Get rid of App->user completely 2021-08-08 19:30:21 +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 Removed some more unused "use" 2021-08-08 20:03:28 +00:00
Contact.php Merge remote-tracking branch 'upstream/develop' into app-user2 2021-08-09 15:32:32 +00:00
Credits.php
Delegation.php Changed function name 2021-08-09 15:29:07 +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 Changed function name 2021-08-09 15:29:07 +00:00
Help.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Home.php Changed function name 2021-08-09 15:29:07 +00:00
Install.php
Invite.php Changed function name 2021-08-09 15:29:07 +00:00
Magic.php Get rid of App->user completely 2021-08-08 19:30:21 +00:00
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php Merge remote-tracking branch 'upstream/develop' into app-user2 2021-08-09 15:32:32 +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 Fix profile probing via Pleroma 2021-08-09 06:56:41 +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.