friendica-github/src/Module
2024-11-17 20:00:34 +00:00
..
ActivityPub REUSE src directory 2024-08-24 15:27:00 +02:00
Admin Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
Api Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
Blocklist/Domain REUSE src directory 2024-08-24 15:27:00 +02:00
Calendar Fix phpstan errors 2024-11-16 19:36:08 +00:00
Contact Merge branch 'develop' into refactoring-of-app-class 2024-11-16 19:29:56 +00:00
Conversation Replace App with AppHelper in Network classes 2024-11-06 08:14:50 +00:00
Debug Remove dependency for twitter addon 2024-11-16 10:37:48 +00:00
DFRN OStatus support removed 2024-09-11 03:44:40 +00:00
Diaspora REUSE src directory 2024-08-24 15:27:00 +02:00
Filer REUSE src directory 2024-08-24 15:27:00 +02:00
HTTPException REUSE src directory 2024-08-24 15:27:00 +02:00
Item Replace all calls for App::getContactId() with AppHelper 2024-11-08 23:04:52 +00:00
Media Replace calls for App::setCurrentTheme() with AppHelper 2024-11-10 16:09:30 +00:00
Moderation Merge branch 'develop' into refactoring-of-app-class 2024-11-16 19:29:56 +00:00
Notifications Merge branch 'develop' into refactoring-of-app-class 2024-11-16 19:29:56 +00:00
OAuth Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
OStatus OStatus support removed 2024-09-11 03:44:40 +00:00
Ping Replace App with AppHelper in Network classes 2024-11-06 08:14:50 +00:00
Post Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
Privacy REUSE src directory 2024-08-24 15:27:00 +02:00
Profile fix property scope 2024-11-17 19:50:01 +00:00
Search OStatus support removed 2024-09-11 03:44:40 +00:00
Security Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
Settings Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
Special REUSE src directory 2024-08-24 15:27:00 +02:00
Update Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
User Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
WellKnown OStatus support removed 2024-09-11 03:44:40 +00:00
About.php REUSE src directory 2024-08-24 15:27:00 +02:00
AccountManagementControlDocument.php REUSE src directory 2024-08-24 15:27:00 +02:00
Acctlink.php REUSE src directory 2024-08-24 15:27:00 +02:00
Apps.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
Attach.php REUSE src directory 2024-08-24 15:27:00 +02:00
BaseAdmin.php REUSE src directory 2024-08-24 15:27:00 +02:00
BaseApi.php Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
BaseModeration.php Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
BaseNotifications.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
BaseProfile.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
BaseSearch.php REUSE src directory 2024-08-24 15:27:00 +02:00
BaseSettings.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
Bookmarklet.php REUSE src directory 2024-08-24 15:27:00 +02:00
Circle.php REUSE src directory 2024-08-24 15:27:00 +02:00
Contact.php Preparation für multiple icon styles / improved code 2024-11-10 19:50:01 +00:00
Credits.php REUSE src directory 2024-08-24 15:27:00 +02:00
Directory.php REUSE src directory 2024-08-24 15:27:00 +02:00
Feed.php REUSE src directory 2024-08-24 15:27:00 +02:00
FollowConfirm.php REUSE src directory 2024-08-24 15:27:00 +02:00
Friendica.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
FriendSuggest.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
Hashtag.php REUSE src directory 2024-08-24 15:27:00 +02:00
HCard.php OStatus support removed 2024-09-11 03:44:40 +00:00
Help.php REUSE src directory 2024-08-24 15:27:00 +02:00
Home.php Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
Install.php Merge branch 'develop' into refactoring-of-app-class 2024-11-16 19:29:56 +00:00
Invite.php REUSE src directory 2024-08-24 15:27:00 +02:00
Magic.php Replace all calls for App::getContactId() with AppHelper 2024-11-08 23:04:52 +00:00
Maintenance.php REUSE src directory 2024-08-24 15:27:00 +02:00
Manifest.php REUSE src directory 2024-08-24 15:27:00 +02:00
NodeInfo110.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo120.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo121.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo122.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NodeInfo210.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
NoScrape.php OStatus support removed 2024-09-11 03:44:40 +00:00
OpenSearch.php Issue 14524: Fix Open Search 2024-11-15 06:55:21 +00:00
Owa.php REUSE src directory 2024-08-24 15:27:00 +02:00
ParseUrl.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
Photo.php REUSE src directory 2024-08-24 15:27:00 +02:00
RandomProfile.php Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
README.md fixing text 2019-05-01 20:17:15 +02:00
ReallySimpleDiscovery.php REUSE src directory 2024-08-24 15:27:00 +02:00
Register.php refactor usage of Friendica\App namespace 2024-11-11 00:30:58 +00:00
Response.php REUSE src directory 2024-08-24 15:27:00 +02:00
RobotsTxt.php REUSE src directory 2024-08-24 15:27:00 +02:00
Smilies.php REUSE src directory 2024-08-24 15:27:00 +02:00
Statistics.php REUSE src directory 2024-08-24 15:27:00 +02:00
Stats.php Add admin info to stats Endpoint 2024-10-21 07:24:24 +02:00
Theme.php REUSE src directory 2024-08-24 15:27:00 +02:00
ThemeDetails.php REUSE src directory 2024-08-24 15:27:00 +02:00
ToggleMobile.php REUSE src directory 2024-08-24 15:27:00 +02:00
Tos.php REUSE src directory 2024-08-24 15:27:00 +02:00
Welcome.php REUSE src directory 2024-08-24 15:27:00 +02:00
Xrd.php Issue 14471: Fix wegfinger request 2024-10-17 22:04:31 +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.