friendica/src/Module
Hypolite Petovan e424b7bacb Move System::httpError to BaseModule->httpError
- This will ensure headers set in BaseModule->run will be carried in httpError scenarios
- Deprecate httpError() method in Core\System
2023-09-24 07:08:15 -04:00
..
ActivityPub
Admin Merge pull request #13246 from nupplaphil/feat/addons 2023-07-23 06:58:46 -04:00
Api Replace remaining references to default banner image by api.mastodon_banner configuration value 2023-08-17 21:58:53 -04:00
Blocklist/Domain
Calendar Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Contact Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Conversation Avoid jumps in the timeline after "received" has been selected 2023-09-20 06:36:47 +00:00
Debug Unified BBCode conversion, improved proxy functionality 2023-07-15 20:12:08 +00:00
DFRN Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Diaspora Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Filer Move System::httpError to BaseModule->httpError 2023-09-24 07:08:15 -04:00
HTTPException
Item Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Media Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Moderation Code standards againg 2023-09-10 08:16:06 +00:00
Notifications Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
OAuth Reformatted code 2023-07-23 20:20:46 +00:00
OStatus Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Post Move System::httpError to BaseModule->httpError 2023-09-24 07:08:15 -04:00
Profile The query condition for active users are unified 2023-09-08 15:01:51 +00:00
Search Improved logging 2023-08-03 20:36:19 +00:00
Security The query condition for active users are unified 2023-09-08 15:01:51 +00:00
Settings Setting to select your network tabs 2023-09-09 17:38:09 +00:00
Special Move System::httpError to BaseModule->httpError 2023-09-24 07:08:15 -04:00
Update Further improvements to the automatic update process 2023-09-17 08:17:31 +00:00
User
WellKnown Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
About.php
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseModeration.php Basic functionality for seeing reports 2023-09-10 08:00:44 +00:00
BaseNotifications.php
BaseProfile.php
BaseSearch.php
BaseSettings.php Setting to select your network tabs 2023-09-09 17:38:09 +00:00
Bookmarklet.php
Circle.php Issue 13289: Ensure to not respect deactivated connector networks 2023-07-22 10:49:42 +00:00
Contact.php
Credits.php
Delegation.php
Directory.php
Feed.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
FollowConfirm.php
Friendica.php Merge pull request #13291 from Quix0r/features/config-blocklist-published 2023-08-12 11:31:42 +02:00
FriendSuggest.php
Hashtag.php
HCard.php
Help.php
Home.php
Install.php
Invite.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo110.php The twitter addon is no import connector anymore 2023-08-09 20:29:45 +00:00
NodeInfo120.php The twitter addon is no import connector anymore 2023-08-09 20:29:45 +00:00
NodeInfo210.php The twitter addon is no import connector anymore 2023-08-09 20:29:45 +00:00
NoScrape.php
Oembed.php
OpenSearch.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Owa.php
ParseUrl.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
PermissionTooltip.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Photo.php Add icon placeholder for images in image grid 2023-09-23 22:20:16 -04:00
Proxy.php
PublicRSAKey.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
RandomProfile.php
README.md
ReallySimpleDiscovery.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Register.php Unified BBCode conversion, improved proxy functionality 2023-07-15 20:12:08 +00:00
Response.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
RobotsTxt.php GPTBot added to the default robots.txt 2023-08-20 12:41:42 +00:00
Smilies.php
Statistics.php The twitter addon is no import connector anymore 2023-08-09 20:29:45 +00:00
Theme.php
ThemeDetails.php
ToggleMobile.php Rework Module\ToggleMobile to check for local links 2023-07-26 19:11:39 +02:00
Tos.php Unified BBCode conversion, improved proxy functionality 2023-07-15 20:12:08 +00:00
Welcome.php
Xrd.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04: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.