friendica/src/Module
2020-01-19 21:21:13 +01:00
..
Admin Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Api/Mastodon
Base cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Contact Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Debug add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
Diaspora
Filer cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
HTTPException cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Item cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Notifications cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Profile Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Search Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Security Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Settings add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
Special cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Apps.php Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Attach.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
BaseAdminModule.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
BaseSearchModule.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
BaseSettingsModule.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Bookmarklet.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Contact.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Credits.php add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
Delegation.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Directory.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Feed.php
FollowConfirm.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Followers.php
Following.php
Friendica.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Group.php Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Hashtag.php
Help.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Home.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
HoverCard.php
Inbox.php Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Install.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Invite.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Like.php
Magic.php
Maintenance.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Manifest.php
NodeInfo.php
Objects.php
Oembed.php
OpenSearch.php
Outbox.php
Owa.php
Photo.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Pinned.php
Profile.php Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Proxy.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
RobotsTxt.php
Smilies.php
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Welcome.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Xrd.php

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.