friendica/src/Module
2023-10-11 09:44:03 -04:00
..
ActivityPub Make BaseApi->checkAllowedScope into an object method 2023-10-11 09:43:57 -04:00
Admin Fix: The calculation of unseen circles can now be deactivated again 2023-10-05 17:06:21 +00:00
Api Rename BaseApi->logErrorAndJsonExit to logAndJsonError to better match the functionality 2023-10-11 09:44:03 -04:00
Blocklist/Domain
Calendar Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Contact improve button-icon for groups in hovercard 2023-10-03 09:00:11 +02:00
Conversation User Repository\UserDefinedChannel->selectByUid instead of Factory\UserDefinedChannel->getForUser 2023-10-07 05:48:23 -04:00
Debug
DFRN Move System::xmlExit to DFRN\Notify->xmlExit 2023-09-24 07:08:15 -04:00
Diaspora
Filer
HTTPException
Item Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Media
Moderation
Notifications Fix: The calculation of unseen circles can now be deactivated again 2023-10-05 17:06:21 +00:00
OAuth Rename BaseApi->logErrorAndJsonExit to logAndJsonError to better match the functionality 2023-10-11 09:44:03 -04:00
OStatus
Post
Profile Move System::jsonError to BaseModule->jsonError 2023-09-24 07:08:15 -04:00
Search Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Security
Settings User Repository\UserDefinedChannel->selectByUid instead of Factory\UserDefinedChannel->getForUser 2023-10-07 05:48:23 -04:00
Special
Update Clean channel confusion 2023-10-06 11:38:29 +00:00
User Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
WellKnown Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
About.php
AccountManagementControlDocument.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php Rename BaseApi->logErrorAndJsonExit to logAndJsonError to better match the functionality 2023-10-11 09:44:03 -04:00
BaseModeration.php
BaseNotifications.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Circle.php Move System::jsonError to BaseModule->jsonError 2023-09-24 07:08:15 -04:00
Contact.php
Credits.php
Delegation.php
Directory.php
Feed.php
FollowConfirm.php
Friendica.php Move System::jsonError to BaseModule->jsonError 2023-09-24 07:08:15 -04:00
FriendSuggest.php
Hashtag.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
HCard.php
Help.php
Home.php
Install.php
Invite.php
Magic.php
Maintenance.php
Manifest.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php Move System::jsonError to BaseModule->jsonError 2023-09-24 07:08:15 -04:00
Oembed.php
OpenSearch.php
Owa.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
ParseUrl.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
PermissionTooltip.php
Photo.php Remove $_SERVER superglobal dependency from Profile::addVisitorCookieForHTTPSigner 2023-10-03 19:58:52 -04:00
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
Response.php
RobotsTxt.php Add Google-Extended to default robots.txt 2023-09-29 16:27:31 +02:00
Smilies.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Statistics.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Theme.php
ThemeDetails.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Move System::jsonExit to BaseModule->jsonExit 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.