friendica/src/Module
Michael Vogel cb294cf411
Avoid problems with an empty domain in the blocklist (#13919)
* Avoid problems with an empty domain in the blocklist

* Test code removed
2024-02-19 07:22:19 +01:00
..
ActivityPub
Admin Use centralized functions for tag string handling 2024-01-28 06:32:55 +00:00
Api Clarify condition on offset in Mastodon\Search->searchStatuses 2024-02-18 18:48:37 -05:00
Blocklist/Domain
Calendar
Contact Avoid duplicated post button on the contact conversation page (#13867) 2024-02-01 19:47:43 +01:00
Conversation New channel "quiet sharers" for posts from lesser frequent posters (#13913) 2024-02-18 15:54:21 +01:00
Debug
DFRN
Diaspora
Filer
HTTPException
Item
Media Image handling reworked, new image formats added (#13900) 2024-02-17 07:45:41 +01:00
Moderation Avoid problems with an empty domain in the blocklist (#13919) 2024-02-19 07:22:19 +01:00
Notifications
OAuth
OStatus [Composer] Bump guzzlehttp/guzzle to version 7 to suppress deprecation notices 2024-01-12 08:42:46 -05:00
Post
Profile Image handling reworked, new image formats added (#13900) 2024-02-17 07:45:41 +01:00
Search
Security
Settings Image handling reworked, new image formats added (#13900) 2024-02-17 07:45:41 +01:00
Special
Update Issue 13844: User defined channels based on the network 2024-02-04 07:14:57 +00:00
User Image handling reworked, new image formats added (#13900) 2024-02-17 07:45:41 +01:00
WellKnown Use centralized functions for tag string handling 2024-01-28 06:32:55 +00:00
About.php
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseModeration.php
BaseNotifications.php
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Circle.php
Contact.php
Credits.php
Directory.php
Feed.php
FollowConfirm.php
Friendica.php
FriendSuggest.php
Hashtag.php
HCard.php
Help.php
Home.php
Install.php
Invite.php
Magic.php [Composer] Bump guzzlehttp/guzzle to version 7 to suppress deprecation notices 2024-01-12 08:42:46 -05: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 Fix the handling of unhandled image types and of animations (#13904) 2024-02-17 15:46:48 +01:00
Proxy.php Fix the handling of unhandled image types and of animations (#13904) 2024-02-17 15:46:48 +01:00
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Update src/Module/Register.php 2024-01-30 15:28:49 +01:00
Response.php
RobotsTxt.php
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php Deprecate use of [*] BBCode tag for list items in favor of [li] 2024-02-09 20:33: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.