friendica/src/Module
Hypolite Petovan c58dc357d4
Merge pull request #8132 from annando/child-user
Fix: You can now register an account when you haven't done it before
2020-01-18 14:00:48 -05:00
..
Admin User lowercase for platform data 2020-01-12 21:07:40 +00:00
Api/Mastodon Update the Introductions domain to use repository, model and collection 2020-01-06 21:39:05 -05:00
Base
Contact
Debug Rework Feed::import parameters 2020-01-03 09:26:28 -05:00
Diaspora
Filer Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
HTTPException
Item Remove unused use statements in Module\Item\Compose 2020-01-05 17:09:14 -05:00
Notifications
Profile
Search CleanUp Cache namespace 2020-01-18 15:41:19 +01:00
Security Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
Settings Merge pull request #8132 from annando/child-user 2020-01-18 14:00:48 -05:00
Special
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php
Attach.php
BaseAdminModule.php
BaseSearchModule.php Remove get_server() in favor of Search::getGlobalDirectory() 2020-01-05 00:04:55 +01:00
BaseSettingsModule.php
Bookmarklet.php
Contact.php
Credits.php
Delegation.php
Directory.php
Feed.php
FollowConfirm.php Update the Introductions domain to use repository, model and collection 2020-01-06 21:39:05 -05:00
Followers.php
Following.php
Friendica.php Publish lowercase 2020-01-12 21:13:16 +00:00
Group.php Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
Hashtag.php
Help.php
Home.php
HoverCard.php
Inbox.php
Install.php
Invite.php Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
Like.php
Magic.php
Maintenance.php
Manifest.php
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
OpenSearch.php
Outbox.php
Owa.php
Photo.php
Pinned.php
Profile.php Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
RobotsTxt.php
Smilies.php
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php Correctly capitalize DI::baseUrl in Module\Tos 2019-12-31 12:19:12 -05:00
Welcome.php
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.