friendica/src/Module
Hypolite Petovan 451a06a597 Various code inspection items
- Fix class extension in Module\Admin\Item\Source
- Remove useless condition in Module\Admin\Features
2019-05-02 09:55:50 -04:00
..
Admin Various code inspection items 2019-05-02 09:55:50 -04:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
Babel.php
BaseAdminModule.php Move addon admin list generation to Core\Addon 2019-05-02 09:55:49 -04:00
Contact.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
Credits.php
Feed.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Feedtest.php
Filer.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Followers.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Following.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Group.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Hashtag.php
Inbox.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Install.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
Itemsource.php
Localtime.php
Login.php
Logout.php
Magic.php
Manifest.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
NodeInfo.php
Objects.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Oembed.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Outbox.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Owa.php
Photo.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Profile.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Proxy.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
README.md
Register.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
Statistics.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Tos.php
WebFinger.php
Xrd.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -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.