friendica_2021.01_tupambae_.../src/Module
Hypolite Petovan 01e71254d9 Replace defaults() calls on $_SESSION by Core\Session calls
- Replace direct calls to $_SESSION by Core\Session calls in Module\Login
2019-05-26 21:26:59 -04:00
..
Admin Add contact block reason form and display in admin page 2019-05-15 19:30:13 -04:00
Debug Improve Diaspora raw text support in /babel module 2019-05-19 18:52:01 -04:00
Diaspora add status code to System::externalRedirect 2019-05-04 09:16:37 +02:00
Filer Move mod/filerm to src/Module/FilerM 2019-05-05 10:02:10 +02:00
GnuSocial remove unused dependencies 2019-05-19 02:53:36 +02:00
Notifications rearrange content/init 2019-05-18 20:34:11 +02:00
Settings/TwoFactor Improve template args visual alignment in two-factor modules 2019-05-13 13:31:08 -04:00
Special Add style to exception page 2019-05-04 21:54:05 -04:00
TwoFactor Improve template args visual alignment in two-factor modules 2019-05-13 13:31:08 -04:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php added url for magic link again 2019-05-02 23:39:20 +02:00
Apps.php
Attach.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
BaseAdminModule.php
BaseSettingsModule.php Add two-factor authentication settings 2019-05-13 01:52:01 -04:00
Bookmarklet.php Rename BookMarklet to Bookmarklet 2019-05-05 17:59:57 +02:00
Contact.php Refactor widgets 2019-05-18 11:33:35 -04:00
Credits.php
Directory.php Fixed Forbidden message. 2019-05-02 23:35:52 +02: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
Help.php Fix undefined $a variable in Module\Help 2019-05-13 01:51:59 -04:00
Home.php Bugfixing Home 2019-05-05 10:47:08 +02:00
Inbox.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Install.php Merge pull request #7068 from MrPetovan/task/7047-theme-error-page 2019-05-02 21:15:29 +02:00
Invite.php fix quotes 2019-05-04 21:25:16 +02:00
Like.php Move mod/like to src/Module/Like 2019-05-04 21:20:39 +02:00
Login.php Replace defaults() calls on $_SESSION by Core\Session calls 2019-05-26 21:26:59 -04:00
Logout.php
Magic.php
Maintenance.php Rename ServiceUnavailableException & alter maintenance 2019-05-05 10:07:33 +02:00
Manifest.php
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
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
PageNotFound.php
Photo.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Profile.php Replace defaults() calls on $_SESSION by Core\Session calls 2019-05-26 21:26:59 -04:00
Proxy.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04: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
ReallySimpleDiscovery.php Create XML output for RSD with XML::fromArray() 2019-05-05 18:15:39 +02:00
Register.php
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
Xrd.php Merge pull request #7068 from MrPetovan/task/7047-theme-error-page 2019-05-02 21:15:29 +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.