friendica-github/src/Module
2024-11-10 23:33:28 +00:00
..
ActivityPub REUSE src directory 2024-08-24 15:27:00 +02:00
Admin Replace calls for App::setCurrentTheme() with AppHelper 2024-11-10 16:09:30 +00:00
Api Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
Blocklist/Domain REUSE src directory 2024-08-24 15:27:00 +02:00
Calendar Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
Contact Replace all calls for App::getContactId() with AppHelper 2024-11-08 23:04:52 +00:00
Conversation Replace App with AppHelper in Network classes 2024-11-06 08:14:50 +00:00
Debug remove unused code 2024-11-04 15:04:06 +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 Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
Notifications Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
OAuth Replace calls for App::redirect() with AppHelper 2024-11-10 16:19:02 +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 Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +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 Replace typehint App with AppHelper in all classes 2024-11-10 23:33:28 +00:00
Special REUSE src directory 2024-08-24 15:27:00 +02:00
Update Replace calls of App::setProfileOwner with AppHelper 2024-11-08 16:20:55 +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 REUSE src directory 2024-08-24 15:27:00 +02: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 REUSE src directory 2024-08-24 15:27:00 +02:00
BaseProfile.php REUSE src directory 2024-08-24 15:27:00 +02:00
BaseSearch.php REUSE src directory 2024-08-24 15:27:00 +02:00
BaseSettings.php REUSE src directory 2024-08-24 15:27:00 +02: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 OStatus support removed 2024-09-11 03:44:40 +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 REUSE src directory 2024-08-24 15:27:00 +02:00
FriendSuggest.php REUSE src directory 2024-08-24 15:27:00 +02: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 replace calls for App::getBasePath() with AppHelper 2024-11-10 10:57:13 +00:00
Install.php Replace temp variable with property 2024-11-10 08:53:36 +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 OStatus support removed 2024-09-11 03:44:40 +00:00
NodeInfo120.php OStatus support removed 2024-09-11 03:44:40 +00:00
NodeInfo121.php OStatus support removed 2024-09-11 03:44:40 +00:00
NodeInfo122.php OStatus support removed 2024-09-11 03:44:40 +00:00
NodeInfo210.php OStatus support removed 2024-09-11 03:44:40 +00:00
NoScrape.php OStatus support removed 2024-09-11 03:44:40 +00:00
OpenSearch.php REUSE src directory 2024-08-24 15:27:00 +02:00
Owa.php REUSE src directory 2024-08-24 15:27:00 +02:00
ParseUrl.php REUSE src directory 2024-08-24 15:27:00 +02:00
Photo.php REUSE src directory 2024-08-24 15:27:00 +02:00
RandomProfile.php Replace calls for App::redirect() with AppHelper 2024-11-10 16:19:02 +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 Merge branch 'develop' into reuse 2024-08-24 19:20:00 +02: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 REUSE src directory 2024-08-24 15:27:00 +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 OStatus support removed 2024-09-11 03:44:40 +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.