friendica-github/src/Module
2024-12-16 11:06:45 +01:00
..
ActivityPub REUSE src directory 2024-08-24 15:27:00 +02:00
Admin Fix errors in Module namespace 2024-12-06 21:12:29 +00:00
Api Fix errors in all modules 2024-11-18 22:20:28 +00:00
Blocklist/Domain REUSE src directory 2024-08-24 15:27:00 +02:00
Calendar Fix errors in all modules 2024-11-18 22:20:28 +00:00
Contact Refactor Conversations class 2024-11-18 22:04:05 +00:00
Conversation Refactor Conversation Timeline 2024-11-18 22:00:02 +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 Remove dreamhost_error_hack 2024-11-18 08:53:09 +00:00
Item Update src/Module/Item/Display.php 2024-11-21 09:57:07 +01:00
Media Replace calls for App::setCurrentTheme() with AppHelper 2024-11-10 16:09:30 +00:00
Moderation Merge branch 'develop' into phpstan-level-1 2024-11-18 21:45:42 +00:00
Notifications Merge branch 'develop' into refactoring-of-app-class 2024-11-16 19:29:56 +00:00
OAuth Merge branch 'develop' into phpstan-level-1 2024-11-18 21:45:42 +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 Update src/Module/Post/Tag/Remove.php 2024-11-21 10:09:27 +01:00
Privacy REUSE src directory 2024-08-24 15:27:00 +02:00
Profile Merge pull request #14559 from Art4/phpstan-level-1 2024-11-30 21:40:29 -05:00
Search OStatus support removed 2024-09-11 03:44:40 +00:00
Security Update src/Module/Security/OpenID.php 2024-12-06 23:23:33 +01:00
Settings remove unnecessary finally blocks 2024-11-22 11:02:27 +00:00
Special fix non-capturing catch for PHP 7.4 support 2024-12-07 07:11:28 +00: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 Fix errors in Module namespace 2024-12-06 21:12:29 +00:00
BaseModeration.php Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
BaseNotifications.php Fix errors in all modules 2024-11-18 22:20:28 +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 Fix errors in all modules 2024-11-18 22:20:28 +00: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 Remove unused calls of DI::app() 2024-11-21 10:12:27 +00: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 Remove unused calls of DI::app() 2024-11-21 10:12:27 +00:00
Magic.php Merge branch 'develop' into phpstan-level-1 2024-11-18 21:45:42 +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 Remove unused calls of DI::app() 2024-11-21 10:12:27 +00:00
OpenSearch.php Merge branch 'phpstan-level-1-in-addons' into phpstan-level-2 2024-12-09 22:31:13 +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 Add return type never, fix more errors 2024-11-17 22:55:42 +00: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 Reduce the number of HTTP requests in the media handling 2024-12-13 19:18:32 +00: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 Fix more errors 2024-11-17 22:26:43 +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.