friendica/src/Module
Hypolite Petovan 1e737ae888 Move mod/search to src/Module/Search/Index
- Update BaseSeachModule not to depend on a single query string parameter
2019-10-07 14:27:46 -04:00
..
Admin Fix parameters for Source 2019-08-18 15:14:03 +02:00
Debug removed unused "f" parameter 2019-09-29 18:59:03 +00:00
Diaspora Fix a notice when the author is missing 2019-06-21 17:57:26 +00:00
Filer catching nulls for FileTag 2019-05-30 13:54:35 +02:00
Item Update master translation strings file 2019-08-06 07:09:05 -04:00
Notifications
Profile New function "isAuthenticated" 2019-09-28 18:09:11 +00:00
Search Move mod/search to src/Module/Search/Index 2019-10-07 14:27:46 -04:00
Settings/TwoFactor Remove debug 2019-07-22 17:41:21 -04:00
Special
TwoFactor Use template-displayed errors in TwoFactor\Verify 2019-07-23 20:02:26 -04:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php
Attach.php
BaseAdminModule.php Add themed themed error page or login page for /admin[/*] 2019-05-31 00:23:30 -04:00
BaseSearchModule.php Move mod/search to src/Module/Search/Index 2019-10-07 14:27:46 -04:00
BaseSettingsModule.php
Bookmarklet.php Fixed wrong app reference 2019-08-27 00:03:05 +02:00
Contact.php Only show incoming pending contact requests with intro 2019-09-09 08:58:56 +00:00
Credits.php
Directory.php Remove useless theme session variable deletions in modules 2019-10-06 12:08:15 -04:00
Feed.php
FollowConfirm.php
Followers.php
Following.php
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 Moved BaseURL to App namespace (because similar type as Arguments/Modules/Modes) 2019-08-15 17:23:00 +02:00
Invite.php
Like.php New function "isAuthenticated" 2019-09-28 18:09:11 +00:00
Login.php Remove useless theme session variable deletions in modules 2019-10-06 12:08:15 -04:00
Logout.php Delete the cache entry allowing direct login again 2019-09-29 06:26:02 +00:00
Magic.php removed unused "f" parameter 2019-09-29 18:59:03 +00:00
Maintenance.php
Manifest.php
NodeInfo.php
Objects.php
Oembed.php
OpenSearch.php
Outbox.php
Owa.php
PageNotFound.php
Photo.php API: We now transmit the text description there as well 2019-08-04 03:45:23 +00:00
Profile.php remote_user is replaced 2019-09-28 09:59:08 +00:00
Proxy.php Just some added logging to the proxy functionality to better analyze problems 2019-10-06 18:48:33 +00:00
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Remove useless theme session variable deletions in modules 2019-10-06 12:08:15 -04:00
RobotsTxt.php
Smilies.php
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php Move mod/newmember to src/Module/Welcome 2019-05-20 20:12:20 +02:00
Xrd.php it is poll, not notify 2019-06-19 18:32:38 +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.