friendica/src/Module
Michael abe6724629 Added parameter to rawContent 2019-11-05 19:16:26 +00:00
..
Admin Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Contact Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Debug Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Diaspora Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Filer Added parameter to rawContent 2019-11-05 19:16:26 +00:00
HTTPException Make Router::getModuleClass throw exceptions 2019-10-11 19:59:05 -04:00
Item Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Notifications Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Profile Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Search Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Settings Added parameter to rawContent 2019-11-05 19:16:26 +00: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 Added parameter to rawContent 2019-11-05 19:16:26 +00:00
AccountManagementControlDocument.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
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 reduce code 2019-03-22 22:28:13 -04:00
Attach.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
BaseAdminModule.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
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 Moving mod/credits to src/Module/Credits 2019-03-22 22:55:46 -04:00
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 Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Following.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Friendica.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Group.php Move mod/nogroup to src/Module/Group 2019-05-03 08:50:17 +02:00
Hashtag.php Remove include/ requires that are now done directly from Composer 2018-12-24 09:56:25 -05:00
Help.php Fix undefined $a variable in Module\Help 2019-05-13 01:51:59 -04:00
Home.php Remove useless theme session variable deletions in modules 2019-10-06 12:08:15 -04:00
Inbox.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Install.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
Invite.php fix quotes 2019-05-04 21:25:16 +02:00
Like.php Added parameter to rawContent 2019-11-05 19:16:26 +00: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 Rename ServiceUnavailableException & alter maintenance 2019-05-05 10:07:33 +02:00
Manifest.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
NodeInfo.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Objects.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Oembed.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
OpenSearch.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Outbox.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Owa.php Issue 6149: Making OWA (hopefully) compatible with Hubzilla 2019-01-08 11:17:05 +00:00
Photo.php API: We now transmit the text description there as well 2019-08-04 03:45:23 +00:00
Pinned.php New module to pin posts 2019-11-05 19:16:11 +00:00
Profile.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Proxy.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2019-10-15 09:20:32 -04:00
PublicRSAKey.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
README.md fixing text 2019-05-01 20:17:15 +02:00
RandomProfile.php some improvements 2019-05-19 03:12:22 +02:00
ReallySimpleDiscovery.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Register.php ypot 2019-11-03 17:37:53 +01:00
RobotsTxt.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Smilies.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Starred.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Statistics.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Theme.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
ThemeDetails.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
ToggleMobile.php Move mod/toggle_mobile to src/Module/ToggleMobile 2019-05-18 21:13:19 +02:00
Tos.php mv URL path uexport -> userexport 2019-11-02 12:44:46 +01:00
Welcome.php Move mod/newmember to src/Module/Welcome 2019-05-20 20:12:20 +02:00
Xrd.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00

README.md

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.