friendica/src/Module
2019-05-02 11:37:09 -04:00
..
Special Add themed error pages 2019-05-02 11:26:56 -04:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Babel.php
Contact.php Add routes for current BaseModules 2019-05-01 20:16:21 +02:00
Credits.php
Feed.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Feedtest.php
Filer.php Add routes for current BaseModules 2019-05-01 21:29:04 +02: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
Group.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Hashtag.php
Inbox.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Install.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Itemsource.php Add routes for current BaseModules 2019-05-01 20:16:21 +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 Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Outbox.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Owa.php
PageNotFound.php Add themed error pages 2019-05-02 11:26:56 -04:00
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 fixing text 2019-05-01 20:17:15 +02:00
Register.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
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 Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04: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.