friendica/src/Module
2023-06-25 13:33:01 +00:00
..
ActivityPub
Admin
Api Fix Mastodon API Status->Context endpoint so doesn't return deleted statuses 2023-06-22 21:56:38 -04:00
Blocklist/Domain
Calendar
Contact Display the contact alias if the URL is no HTTP link 2023-06-18 16:49:38 +00:00
Conversation Fix: Unseen marker wasn't set / Don't mark activities as unseen 2023-06-25 13:33:01 +00:00
Debug
DFRN
Diaspora
Filer
HTTPException
Item Added content warning button 2023-06-15 12:55:54 -04:00
Media
Moderation Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
Notifications Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
OAuth
OStatus
Post
Profile Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
Search Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
Security
Settings Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
Special
Update
User
WellKnown
About.php
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseModeration.php
BaseNotifications.php
BaseProfile.php
BaseSearch.php Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
BaseSettings.php
Bookmarklet.php
Circle.php
Contact.php Display the contact alias if the URL is no HTTP link 2023-06-18 16:49:38 +00:00
Credits.php
Delegation.php Remove support for user.parent-uid = 0 2023-05-29 18:32:21 -04:00
Directory.php
Feed.php
FollowConfirm.php
Friendica.php
FriendSuggest.php
Hashtag.php
HCard.php
Help.php
Home.php
Install.php
Invite.php
Magic.php Merge remote-tracking branch 'upstream/develop' into lemmy 2023-06-18 17:38:39 +00:00
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
Response.php
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.