1
0
Fork 0
friendica_2020-09-1_sharedH.../src/Module
2021-10-11 04:33:10 +00:00
..
ActivityPub Migrate PermissionSet to Depository paradigm 2021-10-07 19:53:38 +02:00
Admin Split Storage usage and Storage configuration 2021-10-05 20:07:12 +02:00
Api Migrate PermissionSet to Depository paradigm 2021-10-07 19:53:38 +02:00
Contact The media class moved 2021-10-02 19:31:27 +00:00
Conversation Remove most calls to date_default_timezone_* calls 2021-10-03 13:42:31 -04:00
Debug
DFRN
Diaspora
Events [frio] Fix event time display 2021-10-03 13:42:32 -04:00
Filer
HTTPException
Item Simplify max_data parameter for Temporal::getDateTimeField 2021-09-15 15:56:44 -04:00
Notifications Check if the string representation of Notify->link is empty in Module\Notifications\Notification 2021-10-03 11:34:23 -04:00
OAuth
Profile Migrate PermissionSet to Depository paradigm 2021-10-07 19:53:38 +02:00
Search Replace the legacy function 2021-10-11 04:33:10 +00:00
Security
Settings Merge pull request #10836 from nupplaphil/feat/depository_permissionset 2021-10-08 09:39:39 -04:00
Special
Update The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
WellKnown Code Style: Replace "AS" with "as" 2021-10-03 10:34:41 +00:00
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseNotifications.php Move notify to the new paradigm 2021-10-02 18:15:42 -04:00
BaseProfile.php "Video" is replaced by a "Media" tab in contact and profile 2021-10-02 15:09:43 +00:00
BaseSearch.php
BaseSettings.php
Bookmarklet.php The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
Contact.php Replace the legacy function 2021-10-11 04:33:10 +00:00
Credits.php
Delegation.php Merge pull request #10722 from MrPetovan/task/refactor-notifications 2021-10-03 14:13:28 +02:00
Directory.php
Feed.php
FollowConfirm.php
Friendica.php
FriendSuggest.php
Group.php
Hashtag.php
HCard.php
Help.php
Home.php
Install.php
Invite.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php Refactor User::getAvatarUrlForId into getAvatarUrl 2021-10-02 19:06:25 -04:00
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php Migrate PermissionSet to Depository paradigm 2021-10-07 19:53:38 +02:00
Photo.php Update src/Module/Photo.php 2021-10-04 21:17:22 +02:00
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Refactor User::getAvatarUrlForId into getAvatarUrl 2021-10-02 19:06:25 -04:00
RemoteFollow.php
RobotsTxt.php
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Refactor User::getAvatarUrlForId into getAvatarUrl 2021-10-02 19:06:25 -04: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.