friendica/src/Module
2021-07-25 19:39:10 +00:00
..
ActivityPub Move ActivityPub endpoints to an AP class 2021-07-17 20:28:46 +00:00
Admin
Api Merge pull request #10530 from annando/api-mail 2021-07-21 09:52:26 -04:00
Contact Using getter/setter functions 2021-07-24 20:34:07 +00:00
Conversation
Debug Completely removed argc/argv 2021-07-25 15:23:37 +00:00
DFRN Added missing app class (avoid fatal error) 2021-07-19 16:15:06 +00:00
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 Using getter/setter functions 2021-07-24 20:34:07 +00:00
Notifications Legacy DFRN transport layer is removed 2021-07-15 13:28:32 +00:00
OAuth
Profile Many more app-variables removed 2021-07-24 10:09:39 +00:00
Search
Security
Settings
Special
Update Using getter/setter functions 2021-07-24 20:34:07 +00:00
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
BaseNotifications.php
BaseProfile.php Getter/Setter for theme info 2021-07-25 19:39:10 +00:00
BaseSearch.php
BaseSettings.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Bookmarklet.php
Contact.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Credits.php
Delegation.php Apply suggestions from code review 2021-07-25 07:04:48 +02: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 Completely removed argc/argv 2021-07-25 15:23:37 +00:00
FriendSuggest.php
Group.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Hashtag.php
HCard.php Many more app-variables removed 2021-07-24 10:09:39 +00:00
Help.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Home.php
Install.php
Invite.php
Magic.php Apply suggestions from code review 2021-07-25 07:04:48 +02:00
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php
Oembed.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php
Proxy.php
PublicRSAKey.php Completely removed argc/argv 2021-07-25 15:23:37 +00:00
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
RemoteFollow.php Many more app-variables removed 2021-07-24 10:09:39 +00: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 Completely removed argc/argv 2021-07-25 15:23:37 +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.