friendica/src/Module
Michael 64d181c1cc Code style 2021-09-24 04:35:27 +00:00
..
ActivityPub
Admin Move path determination logic into the `ConfigFactory` 2021-09-12 13:44:29 +02:00
Api Prevent expandTags to be performed on existing links in Module\Api\Mastodon\Statuses 2021-09-12 00:05:22 -04:00
Contact
Conversation Code style 2021-09-24 04:35:27 +00:00
DFRN
Debug Rename DI::httpRequest() into DI::httpClient() 2021-08-25 21:54:54 +02:00
Diaspora Use the correct function is adviced ... 2021-09-03 04:20:32 +00:00
Filer
HTTPException
Item Simplify max_data parameter for Temporal::getDateTimeField 2021-09-15 15:56:44 -04:00
Notifications
OAuth
Profile The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
Search The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
Security
Settings Issue 10640 - Inverse user display settings 2021-09-01 18:29:45 +00:00
Special
Update The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseNotifications.php
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
Contact.php The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
Credits.php
Delegation.php Issue 10720: Use different path scheme for user avatars 2021-09-17 18:36:20 +00:00
Directory.php
Feed.php
FollowConfirm.php
FriendSuggest.php
Friendica.php
Group.php
HCard.php Remove Profile::load from Module\HCard 2021-08-24 06:24:06 -04:00
Hashtag.php
Help.php
Home.php
Install.php
Invite.php
Magic.php Rename DI::httpRequest() into DI::httpClient() 2021-08-25 21:54:54 +02:00
Maintenance.php
Manifest.php
NoScrape.php Issue 10720: Use different path scheme for user avatars 2021-09-17 18:36:20 +00:00
NodeInfo110.php
NodeInfo120.php Issue 10640: Use consistent settings to enable protocol support 2021-08-30 19:46:10 +00:00
NodeInfo210.php Issue 10640: Use consistent settings to enable protocol support 2021-08-30 19:46:10 +00:00
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php Introduce InvalidClassStorageException and adapt the code for it 2021-08-16 23:27:42 +02:00
Proxy.php Make the proxy functionality optional 2021-09-09 12:40:19 +00:00
PublicRSAKey.php
README.md
RandomProfile.php
ReallySimpleDiscovery.php
Register.php Issue 10720: Use different path scheme for user avatars 2021-09-17 18:36:20 +00:00
RemoteFollow.php Abort early if owner isn't found in Module\RemoteFollow 2021-08-17 09:38:35 -04:00
RobotsTxt.php
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Issue 10720: Use different path scheme for user avatars 2021-09-17 18:36:20 +00:00

README.md

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.