1
0
Fork 0
friendica_2020-09-1_sharedH.../src/Module
2021-08-24 05:53:46 -04:00
..
ActivityPub
Admin Add DI to ParsedLogIterator, replace constructors with fluent api 2021-08-19 14:56:51 +02:00
Api Improved error check, added "put" 2021-08-15 07:28:26 +00:00
Contact "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Conversation "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Debug Allow contact creation in Module\Debug\Feed 2021-08-17 08:20:58 -04:00
DFRN
Diaspora Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Filer Completely removed argc/argv 2021-07-25 15:23:37 +00:00
HTTPException
Item Updated messages.po 2021-08-12 06:33:08 +00:00
Notifications
OAuth
Profile Set profile fields for system user in Model\User::getOwnerDataById 2021-08-24 05:53:46 -04:00
Search Mark, file and starring does now work for all items 2021-08-12 05:28:47 +00:00
Security "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Settings Introduce InvalidClassStorageException and adapt the code for it 2021-08-16 23:27:42 +02:00
Special
Update
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
BaseAdmin.php
BaseApi.php Get rid of App->user completely 2021-08-08 19:30:21 +00:00
BaseNotifications.php
BaseProfile.php Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
BaseSearch.php
BaseSettings.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Bookmarklet.php Removed some more unused "use" 2021-08-08 20:03:28 +00:00
Contact.php Merge remote-tracking branch 'upstream/develop' into app-user2 2021-08-09 15:32:32 +00:00
Credits.php
Delegation.php "getUserId" is now "getLoggedInUserId" 2021-08-09 20:33:46 +00:00
Directory.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Feed.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
FollowConfirm.php
Friendica.php Add Exception for empty User::getOwnerDataById(0 return case in Protocol\ActivityPub\Transmitter::getProfile() 2021-07-27 16:46:08 -04:00
FriendSuggest.php
Group.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Hashtag.php
HCard.php "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
Help.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Home.php "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
Install.php
Invite.php "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
Magic.php Get rid of App->user completely 2021-08-08 19:30:21 +00:00
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
Oembed.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php Introduce InvalidClassStorageException and adapt the code for it 2021-08-16 23:27:42 +02:00
Proxy.php Don't send "accept" when we accept anything 2021-08-06 04:02:22 +00:00
PublicRSAKey.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
RemoteFollow.php Abort early if owner isn't found in Module\RemoteFollow 2021-08-17 09:38:35 -04:00
RobotsTxt.php
Smilies.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Fix profile probing via Pleroma 2021-08-09 06:56:41 +00: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.