friendica-github/src/Module
2020-01-19 16:31:35 +01:00
..
Admin cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Api/Mastodon Update the Introductions domain to use repository, model and collection 2020-01-06 21:39:05 -05:00
Base cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Contact parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Debug add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
Diaspora Creating interfaces for Config/PConfig & fix tests 2019-12-29 20:18:19 +01:00
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 cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Search add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
Security cleanup namespace usages for L10n 2020-01-19 16:31:33 +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 Fix fatal errors caused by PR 8019 2019-12-30 01:17:16 +00:00
AccountManagementControlDocument.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Acctlink.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
AllFriends.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Apps.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +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 @brief is removed completely 2020-01-19 06:05:23 +00:00
FollowConfirm.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Followers.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Following.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Friendica.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Group.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Hashtag.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
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 Replace obsolete references to App baseURL and getApp by DI 2019-12-29 21:50:15 -05:00
Inbox.php Introduce new DI container 2019-12-29 20:16:55 +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 Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Magic.php Fix fatal errors caused by PR 8019 2019-12-30 01:17:16 +00:00
Maintenance.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Manifest.php Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
NodeInfo.php User lowercase for platform data 2020-01-12 21:07:40 +00:00
Objects.php Add necessary call to BaseUrl->get() in Module\Objects 2019-12-31 12:25:41 -05:00
Oembed.php Introduce new DI container 2019-12-29 20:16:55 +01:00
OpenSearch.php Fix fatal errors caused by PR 8019 2019-12-30 01:17:16 +00:00
Outbox.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Owa.php @brief is removed completely 2020-01-19 06:05:23 +00:00
Photo.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Pinned.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Profile.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Proxy.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
PublicRSAKey.php Introduce new DI container 2019-12-29 20:16:55 +01:00
RandomProfile.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
README.md fixing text 2019-05-01 20:17:15 +02:00
ReallySimpleDiscovery.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Register.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
RobotsTxt.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Smilies.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Starred.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Statistics.php Refactor dynamic App::getLogger() to static DI::logger() 2019-12-29 20:17:41 +01:00
Theme.php Introduce new DI container 2019-12-29 20:16:55 +01:00
ThemeDetails.php parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
ToggleMobile.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Tos.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Welcome.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Xrd.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01: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.