friendica/src/Module
2021-12-07 16:04:48 +01:00
..
ActivityPub
Admin Fix typo 2021-12-03 01:14:29 +01:00
Api Add response for JSON only 2021-12-06 00:12:18 +01:00
Contact Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Conversation
Debug Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
DFRN Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Diaspora Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Events
Filer
HTTPException Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Item Unused use removed 2021-12-02 06:37:06 +00:00
Notifications Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
OAuth Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated parameter 2021-12-04 17:53:08 -05:00
Profile Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Search
Security Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Settings Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Special
Update
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php Issue 11063: Fix check for current user 2021-12-04 04:30:46 +00:00
BaseNotifications.php
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Contact.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Credits.php
Delegation.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Directory.php
Feed.php
FollowConfirm.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Friendica.php
FriendSuggest.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Group.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Hashtag.php
HCard.php
Help.php
Home.php
Install.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Invite.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Magic.php
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
RemoteFollow.php Make $_REQUEST processing independent of sub-calls 2021-11-30 01:07:58 -05:00
Response.php
RobotsTxt.php
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
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.