friendica/src/Module
2019-12-29 20:17:50 +01:00
..
Admin Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Api/Mastodon Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
Base Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
Contact
Debug Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Diaspora Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Filer Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
HTTPException
Item Remove deprecated App::removeBaseURL - process methods to DI::baseUrl()->remove() 2019-12-29 20:17:45 +01:00
Notifications Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Profile Introduce new DI container 2019-12-29 20:16:55 +01:00
Search Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Security Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Settings Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Special
WellKnown Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Apps.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Attach.php Introduce new DI container 2019-12-29 20:16:55 +01:00
BaseAdminModule.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
BaseSearchModule.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
BaseSettingsModule.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Bookmarklet.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Contact.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Credits.php
Delegation.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Directory.php Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
Feed.php Introduce new DI container 2019-12-29 20:16:55 +01:00
FollowConfirm.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +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 Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Group.php Refactor deprecated App::isAjax() to DI::mode()->isAjax() 2019-12-29 20:17:44 +01:00
Hashtag.php
Help.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Home.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
HoverCard.php
Inbox.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Install.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Invite.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Like.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Magic.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Maintenance.php Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
Manifest.php Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
NodeInfo.php Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
Objects.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Oembed.php Introduce new DI container 2019-12-29 20:16:55 +01:00
OpenSearch.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Outbox.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Owa.php
Photo.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Pinned.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Profile.php Remove deprecated App::is_mobile/is_tablet - replace with DI::mode()->isMobile()/isTablet() 2019-12-29 20:17:50 +01:00
Proxy.php Introduce new DI container 2019-12-29 20:16:55 +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
ReallySimpleDiscovery.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Register.php Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName() 2019-12-29 20:17:47 +01:00
RobotsTxt.php
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
ToggleMobile.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Tos.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
Welcome.php Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +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.