friendica/src/Module
Josh Soref 7e82d70449 spelling: public
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 20:04:18 -04:00
..
ActivityPub Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Admin spelling: unknown 2023-03-26 16:14:16 -04:00
Api spelling: database 2023-03-26 18:59:11 -04:00
Blocklist/Domain Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Calendar
Contact spelling: authentication 2023-03-26 18:59:11 -04:00
Conversation spelling: private 2023-03-26 20:04:18 -04:00
Debug Apply suggestions from code review 2023-02-19 11:12:48 +01:00
DFRN Some loglevels are adjusted to more reasonablöe levels 2023-02-16 20:47:37 +00:00
Diaspora spelling: protocol 2023-03-26 16:14:16 -04:00
Filer
HTTPException spelling: javascript 2023-03-26 16:13:07 -04:00
Item
Media spelling: javascript 2023-03-26 16:13:07 -04:00
Moderation Update src/Module/Moderation/Users/Blocked.php 2023-02-19 11:27:02 +01:00
Notifications Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
OAuth
OStatus
Post spelling: author 2023-03-26 16:03:22 -04:00
Profile spelling: subscribed 2023-03-26 16:14:16 -04:00
Search spelling: construct 2023-03-26 16:03:22 -04:00
Security spelling: repository 2023-03-26 16:14:16 -04:00
Settings spelling: uploaded 2023-03-26 16:14:16 -04:00
Special
Update
User
WellKnown Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
About.php
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php spelling: permission 2023-03-26 16:14:16 -04:00
BaseAdmin.php
BaseApi.php Use Mastodon standard edited_at field for tracking edit time 2023-02-28 15:02:02 -05:00
BaseModeration.php
BaseNotifications.php spelling: with 2023-03-26 16:14:16 -04:00
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Contact.php Apply suggestions from code review 2023-02-19 11:12:48 +01:00
Credits.php
Delegation.php spelling: additional 2023-03-26 16:03:22 -04:00
Directory.php
Feed.php
FollowConfirm.php
Friendica.php Cast the base URL as string in /friendica/json 2023-03-12 17:55:57 -04:00
FriendSuggest.php
Group.php
Hashtag.php
HCard.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Help.php Apply suggestions from code review 2023-02-19 11:12:48 +01:00
Home.php Apply suggestions from code review 2023-02-19 11:12:48 +01:00
Install.php Apply suggestions from code review 2023-02-19 11:12:48 +01:00
Invite.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Magic.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Maintenance.php
Manifest.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php Apply suggestions from code review 2023-02-19 11:12:48 +01:00
NoScrape.php
Oembed.php
OpenSearch.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Owa.php spelling: public 2023-03-26 20:04:18 -04:00
ParseUrl.php
PermissionTooltip.php spelling: compatibility 2023-03-26 16:03:22 -04:00
Photo.php
Proxy.php Use "Exception" 2023-02-26 22:43:45 +00:00
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Register.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Response.php
RobotsTxt.php spelling: disallowed 2023-03-26 20:03:51 -04:00
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00

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.