friendica/src/Module
Hypolite Petovan 4ee9e21a4f Make Router::getModuleClass throw exceptions
- Add new MethodNotAllowedModule
- Add new Module->determineClass catch blocks
- Update Module and Router tests
2019-10-11 19:59:05 -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
HTTPException Make Router::getModuleClass throw exceptions 2019-10-11 19:59:05 -04:00
Item Update master translation strings file 2019-08-06 07:09:05 -04:00
Notifications rearrange content/init 2019-05-18 20:34:11 +02:00
Profile New function "isAuthenticated" 2019-09-28 18:09:11 +00:00
Search Improve logging in Module\Search\Index 2019-10-07 16:18:19 -04:00
Settings Add documentation comments to Module\Settings\Delegation 2019-10-10 04:17:37 -04:00
Special Add style to exception page 2019-05-04 21:54:05 -04:00
TwoFactor Use template-displayed errors in TwoFactor\Verify 2019-07-23 20:02:26 -04:00
WellKnown code standards :-) 2019-05-01 19:48:49 +02:00
AccountManagementControlDocument.php Rename to AccountManagementControlDocument 2019-05-01 17:05:46 +02:00
Acctlink.php Split goaway to System::externalRedirectTo() and App->internalRedirect() 2018-10-22 22:13:35 +02:00
AllFriends.php added url for magic link again 2019-05-02 23:39:20 +02:00
Apps.php reduce code 2019-03-22 22:28:13 -04:00
Attach.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
BaseAdminModule.php Add themed themed error page or login page for /admin[/*] 2019-05-31 00:23:30 -04:00
BaseSearchModule.php Use Dice instantiation to access App\Arguments 2019-10-07 16:16:42 -04:00
BaseSettingsModule.php Move mod/delegate to src/Module/Settings/Delegation 2019-10-09 22:17:09 -04:00
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 Moving mod/credits to src/Module/Credits 2019-03-22 22:55:46 -04:00
Directory.php Remove useless theme session variable deletions in modules 2019-10-06 12:08:15 -04:00
Feed.php Move mod/allfriends to src/Module/AllFriends 2019-05-02 22:03:27 +02:00
FollowConfirm.php Some cleaning up 2019-05-06 18:46:30 +00:00
Followers.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Following.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Friendica.php added feedback 2019-05-05 10:00:28 +02: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 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 fix quotes 2019-05-04 21:25:16 +02:00
Like.php New function "isAuthenticated" 2019-09-28 18:09:11 +00:00
Login.php Remove uneeded variable. 2019-10-10 20:48:13 -08: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 Rename ServiceUnavailableException & alter maintenance 2019-05-05 10:07:33 +02:00
Manifest.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
NodeInfo.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Objects.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Oembed.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
OpenSearch.php Move mod/opensearch to src/Module/OpenSearch 2019-05-18 17:43:58 +02:00
Outbox.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04: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
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 Move mod/modexp to src/Module/PublicRSAKey 2019-05-05 19:02:19 +02:00
RandomProfile.php some improvements 2019-05-19 03:12:22 +02:00
README.md fixing text 2019-05-01 20:17:15 +02:00
ReallySimpleDiscovery.php Create XML output for RSD with XML::fromArray() 2019-05-05 18:15:39 +02:00
Register.php Replace deprecated calls to App->getBaseURL in Module\Register 2019-10-10 13:13:23 -04:00
RobotsTxt.php add new disallowed path for robots.txt 2019-05-08 13:08:34 +02:00
Smilies.php Move Smilies::getList() into if 2019-05-06 18:46:37 +02:00
Starred.php Move mod/starred to src/Module/Starred 2019-05-19 03:07:44 +02:00
Statistics.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Theme.php Move mod/view to src/Module/View 2019-05-18 21:23:12 +02:00
ThemeDetails.php Move mod/pretheme to src/Module/ThemeDetails 2019-05-05 19:24:10 +02:00
ToggleMobile.php Move mod/toggle_mobile to src/Module/ToggleMobile 2019-05-18 21:13:19 +02:00
Tos.php Fix PHPDoc comments project-wide 2019-01-21 10:35:51 -05:00
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.