friendica/src/Module
2022-12-13 23:19:19 +00:00
..
ActivityPub
Admin
Api Use reshare with Diaspora like with ActivityPub 2022-12-13 23:19:19 +00:00
Blocklist/Domain
Calendar
Contact
Conversation
Debug
DFRN Remove parameter-less call of OStatus\Salmon module in DFRN\Notify 2022-12-10 11:45:53 -05:00
Diaspora
Filer
HTTPException
Item Use reshare with Diaspora like with ActivityPub 2022-12-13 23:19:19 +00:00
Media
Moderation Only calculate the last login on a "date" level 2022-12-11 03:26:45 +00:00
Notifications Delete introductions when referenced contact id doesn't exist anymore in Ping module 2022-12-10 11:42:03 -05:00
OAuth
OStatus Remove parameter-less call of OStatus\Salmon module in DFRN\Notify 2022-12-10 11:45:53 -05:00
Post
Profile
Search
Security
Settings The appearanxe of the link preview is now configurable 2022-12-07 07:02:04 +00:00
Special
Update
User
WellKnown
About.php Redirect in a different way 2022-12-12 11:24:20 +00:00
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseModeration.php
BaseNotifications.php
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Contact.php
Credits.php
Delegation.php
Directory.php
Feed.php
FollowConfirm.php
Friendica.php
FriendSuggest.php
Group.php
Hashtag.php
HCard.php
Help.php
Home.php
Install.php
Invite.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php Check for last-activity value before feeding it to strtotime in Module\NoScrape 2022-12-10 11:38:41 -05:00
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php Add more BlurHash to avoid not being able to display some picture 2022-12-11 09:56:30 +00:00
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 Remove superfluous strlen call in Module\Tos 2022-12-10 11:38:42 -05:00
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.