friendica/src/Module
2021-10-03 13:42:32 -04:00
..
ActivityPub
Admin Logs view: remove unneeded tpl var 2021-10-01 17:00:06 +02:00
Api Remove event.adjust field 2021-10-03 13:42:32 -04: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
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 Remove most calls to date_default_timezone_* calls 2021-10-03 13:42:31 -04:00
Search The conversation functionality moved to a class 2021-09-23 21:18:36 +00:00
Security
Settings
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 Remove the obsolete parameter $two_way from terminateFriendship methods 2021-10-02 16:14:22 -04: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
Photo.php Add missing Module\Photo route for post-media id with no customsize 2021-10-03 07:58:52 -04: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.