friendica/src/Module
2020-02-02 22:43:39 +01:00
..
Admin Set Sitename / site email as sender for system emails 2020-02-02 22:43:39 +01:00
Api Remove next link when there aren't any introductions in Module\Api\Mastodon\FollowRequests 2020-02-01 21:38:25 -05:00
Contact Improvements 2020-02-01 08:45:38 +01:00
Debug
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
Profile Fix Archives Widget on Status Page 2020-02-01 14:06:35 +01:00
Search
Security Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Settings
Special Add trace for admin in exceptionpages 2020-01-20 07:47:53 -05:00
Update Remove superfluous includes in profile modules 2020-01-23 10:00:48 -05:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php Remove obsolete profile_id parameter in Model\Profile::load 2020-01-27 22:01:12 -05:00
Apps.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Attach.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
BaseAdmin.php Move/rename base module classes 2020-01-29 23:23:07 -05:00
BaseApi.php Move api/profile/show to src/Module 2020-01-29 23:31:37 -05:00
BaseNotifications.php Fix ignore notification 2020-01-28 22:47:15 +01:00
BaseProfile.php
BaseSearch.php Move/rename base module classes 2020-01-29 23:23:07 -05:00
BaseSettings.php Move/rename base module classes 2020-01-29 23:23:07 -05:00
Bookmarklet.php
Contact.php Replace stylesheet names 2020-02-02 20:56:31 +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
Feed.php
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
FriendSuggest.php
Group.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Hashtag.php
Help.php
Home.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
HoverCard.php
Inbox.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Install.php Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
Invite.php
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
NoScrape.php Fix wrong variable name in Module\NoScrape 2020-01-28 10:33:19 -05: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
Outbox.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Owa.php
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
Proxy.php
PublicRSAKey.php
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
Register.php Move profile-related templates to sub-folder 2020-01-20 07:27:14 -05:00
RobotsTxt.php
Smilies.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Tos.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Welcome.php cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Worker.php Move mod/worker to src\Module\Worker 2020-01-31 22:38:49 +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.