1
0
Fork 0
friendica_2020-09-1_sharedH.../src/Module
Hypolite Petovan 6d38b44b97
Merge pull request #12799 from HankG/fix-mastodon-friend-requests-ids
Change FollowRequest to return the user ID so is compatible with POST endpoint
2023-02-17 18:09:26 -05:00
..
ActivityPub Fix variable name 2023-02-14 20:43:54 +00:00
Admin Revert node.config.php into Config table 2023-02-10 14:06:22 +01:00
Api Merge pull request #12799 from HankG/fix-mastodon-friend-requests-ids 2023-02-17 18:09:26 -05:00
Blocklist/Domain
Calendar Enable calendar export for public_calendar = true 2023-01-14 10:39:18 -05:00
Contact Fix connection acknowledgement not appearing on contact page 2023-01-21 09:18:17 -05:00
Conversation Mode depending control for the behaviour with blocked contacts 2023-01-12 06:25:55 +00:00
Debug
DFRN Fix: Forum posts from some contacts weren't distributed 2023-01-11 21:55:32 +00:00
Diaspora
Filer
HTTPException
Item Create specific module to display HTML message when a conversation isn't found in Module\Item\Display 2023-02-04 20:28:04 -05:00
Media
Moderation News "blocked" field on the gserver table 2023-01-17 17:25:19 +00:00
Notifications
OAuth First implementation of ActivityPub C2S 2023-01-29 14:41:14 +00:00
OStatus
Post Replace remaining mentions of "Status" by "Conversations" or "Posts" 2023-01-11 09:01:29 -05:00
Profile Remove Feed contacts from profile contact list 2023-01-29 00:07:20 -05:00
Search Mode depending control for the behaviour with blocked contacts 2023-01-12 06:25:55 +00:00
Security Allow colon in password 2023-01-18 20:34:20 -05:00
Settings Removed duplicated "be" 2023-01-23 06:48:42 +00:00
Special Ensure arbitrary HTTPException messages are HTML escaped 2023-02-04 20:36:33 -05:00
Update Mode depending control for the behaviour with blocked contacts 2023-01-12 06:25:55 +00:00
User
WellKnown
About.php
AccountManagementControlDocument.php
Acctlink.php
Apps.php Convert Content\Nav to dynamic object 2023-01-11 09:01:24 -05:00
Attach.php
BaseAdmin.php
BaseApi.php API: added positiv list for quote support 2023-01-25 06:26:17 +00:00
BaseModeration.php
BaseNotifications.php
BaseProfile.php Replace remaining mentions of "Status" by "Conversations" or "Posts" 2023-01-11 09:01:29 -05:00
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Contact.php Replace remaining mentions of "Status" by "Conversations" or "Posts" 2023-01-11 09:01:29 -05:00
Credits.php
Delegation.php
Directory.php
Feed.php Fix: Forum posts from some contacts weren't distributed 2023-01-11 21:55:32 +00:00
FollowConfirm.php
Friendica.php
FriendSuggest.php
Group.php
Hashtag.php
HCard.php
Help.php
Home.php Redirect AP requests to the root to the system actor 2023-02-10 10:29:35 +00:00
Install.php
Invite.php
Magic.php
Maintenance.php Default maintenance reason to empty string in Module\Maintenance 2023-01-18 21:01:07 -05:00
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php C2S: Improve C2S-API, fix inbox endpoint 2023-02-08 20:16:19 +00:00
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
Response.php
RobotsTxt.php
Smilies.php
Statistics.php Nodeinfo data has moved to key values 2023-01-18 05:04:37 +00:00
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php

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.