friendica/src/Module
2021-09-02 19:55:15 -04:00
..
ActivityPub
Admin Rename Storage Backend labels 2021-09-02 23:27:35 +02:00
Api Improved error check, added "put" 2021-08-15 07:28:26 +00:00
Contact "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Conversation "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Debug Rename DI::httpRequest() into DI::httpClient() 2021-08-25 21:54:54 +02:00
DFRN
Diaspora Issue 10651: remote comments appeared as own posts 2021-09-02 05:57:50 +00:00
Filer
HTTPException
Item Updated messages.po 2021-08-12 06:33:08 +00:00
Notifications
OAuth
Profile Set profile fields for system user in Model\User::getOwnerDataById 2021-08-24 05:53:46 -04:00
Search Mark, file and starring does now work for all items 2021-08-12 05:28:47 +00:00
Security "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Settings Issue 10640 - Inverse user display settings 2021-09-01 18:29:45 +00:00
Special
Update
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseNotifications.php
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Contact.php
Credits.php
Delegation.php "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Directory.php
Feed.php
FollowConfirm.php
Friendica.php
FriendSuggest.php
Group.php
Hashtag.php
HCard.php Remove Profile::load from Module\HCard 2021-08-24 06:24:06 -04:00
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
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
NoScrape.php
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 Fixup HTTP headers for httpClient requests 2021-08-25 14:22:43 +02:00
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
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

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.