1
1
Fork 0
friendica_2019-12_sharedHos.../src/Module
2019-05-05 17:59:57 +02:00
..
Admin
Diaspora add status code to System::externalRedirect 2019-05-04 09:16:37 +02:00
Special
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
Babel.php
BaseAdminModule.php
Bookmarklet.php Rename BookMarklet to Bookmarklet 2019-05-05 17:59:57 +02:00
Contact.php
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
Feedtest.php
Filer.php
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
Group.php Move mod/nogroup to src/Module/Group 2019-05-03 08:50:17 +02:00
Hashtag.php
Help.php Move mod/help to src/Module/Help 2019-05-04 21:06:08 +02: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
Itemsource.php
Like.php Move mod/like to src/Module/Like 2019-05-04 21:20:39 +02:00
Localtime.php
Login.php
Logout.php
Magic.php
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
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 System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Proxy.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
README.md
ReallySimpleDiscovery.php include feedback 2019-05-05 10:09:08 +02:00
Register.php
Statistics.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Tos.php
WebFinger.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
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.