friendica/src/Module
2021-11-09 21:50:56 +00:00
..
ActivityPub The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
Admin Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Api Fix code standards 2021-11-09 21:50:56 +00:00
Contact
Conversation
Debug
DFRN
Diaspora
Events
Filer
HTTPException
Item
Notifications
OAuth
Profile
Search "escapeTags" is finally removed 2021-11-07 09:18:25 +00:00
Security Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Settings Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Special The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
Update
WellKnown The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
BaseApi.php API call rate_limit_status moved 2021-11-09 21:41:37 +00:00
BaseNotifications.php
BaseProfile.php
BaseSearch.php "escapeTags" is finally removed 2021-11-07 09:18:25 +00:00
BaseSettings.php
Bookmarklet.php
Contact.php Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Credits.php
Delegation.php
Directory.php Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Feed.php
FollowConfirm.php
Friendica.php
FriendSuggest.php
Group.php Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Hashtag.php
HCard.php
Help.php Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Home.php
Install.php Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Invite.php "escapeTags" is finally removed 2021-11-07 09:18:25 +00:00
Magic.php
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 Some removed escapeTags calls 2021-11-05 19:59:18 +00:00
RemoteFollow.php
RobotsTxt.php
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Some removed escapeTags calls 2021-11-05 19:59:18 +00: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.