friendica/src/Module
Philipp c00da77c67
Add feedback
2021-09-18 12:55:17 +02: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 "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
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 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 Get rid of App->user completely 2021-08-08 19:30:21 +00:00
BaseNotifications.php
BaseProfile.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
BaseSearch.php
BaseSettings.php
Bookmarklet.php Removed some more unused "use" 2021-08-08 20:03:28 +00:00
Contact.php Add feedback 2021-09-18 12:55:17 +02:00
Credits.php
Delegation.php "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +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 "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
Install.php
Invite.php "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
Magic.php Rename DI::httpRequest() into DI::httpClient() 2021-08-25 21:54:54 +02:00
Maintenance.php
Manifest.php
NoScrape.php "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +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
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 Fix profile probing via Pleroma 2021-08-09 06:56:41 +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.