friendica/src/Module
Hypolite Petovan ff27f45cb9 Move mod/hovercard to src/Module/Contact/Hovercard
- Rework hovercard.js to remove JS template interpolation
- Remove template/json output from Module/Contact/Hovercard
2019-11-02 12:48:03 -04:00
..
Admin rename developer to debug :-) 2019-11-01 15:59:00 +01:00
Contact Move mod/hovercard to src/Module/Contact/Hovercard 2019-11-02 12:48:03 -04:00
Debug Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Diaspora Fixing https://github.com/friendica/friendica/pull/7759#discussion_r337102107 2019-10-24 21:43:20 +02:00
Filer Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
HTTPException Make Router::getModuleClass throw exceptions 2019-10-11 19:59:05 -04:00
Item Fix ACLFormatterTest 2019-11-01 14:13:29 +01:00
Notifications Adapt class structure 2019-10-26 04:03:27 +02:00
Profile Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Search Merge pull request #7743 from MrPetovan/task/7190-remove-defaults-modules 2019-10-15 18:17:45 +02:00
Settings Merge pull request #7726 from tobiasd/20191010-uexport 2019-11-02 07:46:57 -04:00
Special Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
TwoFactor Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
AllFriends.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Apps.php
Attach.php
BaseAdminModule.php
BaseSearchModule.php Use Dice instantiation to access App\Arguments 2019-10-07 16:16:42 -04:00
BaseSettingsModule.php mv URL path uexport -> userexport 2019-11-02 12:44:46 +01:00
Bookmarklet.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Contact.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Credits.php
Delegation.php Move mod/manage to src/Module/Delegation 2019-10-11 19:59:06 -04:00
Directory.php Remove useless theme session variable deletions in modules 2019-10-06 12:08:15 -04:00
Feed.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
FollowConfirm.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Followers.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Following.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Friendica.php
Group.php
Hashtag.php
Help.php
Home.php Remove useless theme session variable deletions in modules 2019-10-06 12:08:15 -04:00
Inbox.php We now use a central function for fetching the postdata 2019-07-30 22:26:01 +00:00
Install.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Invite.php
Like.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Login.php Uswe default value 2019-10-29 13:26:54 +00:00
Logout.php Delete the cache entry allowing direct login again 2019-09-29 06:26:02 +00:00
Magic.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Maintenance.php
Manifest.php
NodeInfo.php
Objects.php
Oembed.php
OpenSearch.php
Outbox.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Owa.php
Photo.php API: We now transmit the text description there as well 2019-08-04 03:45:23 +00:00
Profile.php Move is_a_date_arg to DateTimeFormat::isYearMonth 2019-10-23 02:39:28 +02:00
Proxy.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
RobotsTxt.php
Smilies.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Starred.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Statistics.php
Theme.php
ThemeDetails.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
ToggleMobile.php
Tos.php mv URL path uexport -> userexport 2019-11-02 12:44:46 +01:00
Welcome.php
Xrd.php Move Namespace of ActivityNamespace 2019-10-25 00:41:48 +02: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.