friendica/src/Module
2023-12-14 06:18:17 +00:00
..
ActivityPub Make BaseApi->checkAllowedScope into an object method 2023-10-11 09:43:57 -04:00
Admin Avoid passing null value to number_format() in Module\Admin\Federation 2023-12-09 07:32:24 -05:00
Api Check media_attributes keys before using them in Mastodon\Statuses 2023-12-03 09:13:34 -05:00
Blocklist/Domain Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Calendar Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Contact Sorting changed to "created" 2023-12-14 06:18:17 +00:00
Conversation Only use posts with wanted languages for subscribed tags 2023-12-11 22:07:01 +00:00
Debug Unified BBCode conversion, improved proxy functionality 2023-07-15 20:12:08 +00:00
DFRN Move System::xmlExit to DFRN\Notify->xmlExit 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 spelling: javascript 2023-03-26 16:13:07 -04:00
Item Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Media Align proxy sizes to photo preview sizes 2023-10-14 16:05:01 -04:00
Moderation Fix exceptions in the channel check 2023-11-25 16:17:26 +00:00
Notifications Fix: The calculation of unseen circles can now be deactivated again 2023-10-05 17:06:21 +00:00
OAuth Use strtok to find QP's in Uri for OAuth redirect processing 2023-11-06 11:25:13 -05: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 Fix uddate issues and improve speed when displaying contact posts 2023-12-14 04:58:43 +00:00
Search Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Security The query condition for active users are unified 2023-09-08 15:01:51 +00:00
Settings Only use posts with wanted languages for subscribed tags 2023-12-11 22:07:01 +00:00
Special Individual callstacks are removed from the logger 2023-10-18 19:55:15 +00:00
Update Function is renamed 2023-11-25 15:14:06 +00:00
User Refactor Delegation modules 2023-10-14 14:15:40 -04:00
WellKnown Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
About.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
AccountManagementControlDocument.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
Acctlink.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Apps.php Convert Content\Nav to dynamic object 2023-01-11 09:01:24 -05:00
Attach.php spelling: permission 2023-03-26 16:14:16 -04:00
BaseAdmin.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
BaseApi.php Rename BaseApi->logErrorAndJsonExit to logAndJsonError to better match the functionality 2023-10-11 09:44:03 -04:00
BaseModeration.php Basic functionality for seeing reports 2023-09-10 08:00:44 +00:00
BaseNotifications.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
BaseProfile.php Replace remaining mentions of "Status" by "Conversations" or "Posts" 2023-01-11 09:01:29 -05:00
BaseSearch.php Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
BaseSettings.php Add author to the search content / fix sidebar link to channels 2023-09-22 05:16:46 +00:00
Bookmarklet.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Circle.php Move System::jsonError to BaseModule->jsonError 2023-09-24 07:08:15 -04:00
Contact.php Individual callstacks are removed from the logger 2023-10-18 19:55:15 +00:00
Credits.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Directory.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Feed.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
FollowConfirm.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Friendica.php Move System::jsonError to BaseModule->jsonError 2023-09-24 07:08:15 -04:00
FriendSuggest.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Hashtag.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
HCard.php Ensure that the baseurl return value is a string 2023-05-11 08:13:19 +00:00
Help.php Apply suggestions from code review 2023-02-19 11:12:48 +01:00
Home.php Apply suggestions from code review 2023-02-19 11:12:48 +01:00
Install.php Fix: Force baseUrl being a string 2023-04-15 14:17:30 +00:00
Invite.php fixes registration link in invitations 2023-07-05 10:12:10 +02:00
Magic.php Merge remote-tracking branch 'upstream/develop' into lemmy 2023-06-18 17:38:39 +00:00
Maintenance.php Default maintenance reason to empty string in Module\Maintenance 2023-01-18 21:01:07 -05:00
Manifest.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
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 Move System::jsonError to BaseModule->jsonError 2023-09-24 07:08:15 -04:00
Oembed.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
OpenSearch.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
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 Post permissions are now copied from the thread parent 2023-10-29 08:49:24 +00:00
Photo.php Remove $_SERVER superglobal dependency from Profile::addVisitorCookieForHTTPSigner 2023-10-03 19:58:52 -04:00
Proxy.php Use "Exception" 2023-02-26 22:43:45 +00:00
PublicRSAKey.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
RandomProfile.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
README.md fixing text 2019-05-01 20:17:15 +02:00
ReallySimpleDiscovery.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
Register.php added missing apostrophe 2023-10-27 11:54:11 +02:00
Response.php Move System::httpExit to BaseModule->httpExit 2023-09-24 07:08:15 -04:00
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 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
ThemeDetails.php Move System::jsonExit to BaseModule->jsonExit 2023-09-24 07:08:15 -04:00
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 Replace "group" with "circle" in the rest of the code 2023-05-27 22:01:45 -04:00
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.