friendica/src/Module
2019-11-05 19:16:26 +00:00
..
Admin Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Contact Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Debug
Diaspora Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Filer Added parameter to rawContent 2019-11-05 19:16:26 +00:00
HTTPException
Item Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Notifications Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Profile
Search Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Settings Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Special
TwoFactor
WellKnown Added parameter to rawContent 2019-11-05 19:16:26 +00:00
AccountManagementControlDocument.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Acctlink.php
AllFriends.php
Apps.php
Attach.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
BaseAdminModule.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
BaseSearchModule.php
BaseSettingsModule.php mv URL path uexport -> userexport 2019-11-02 12:44:46 +01:00
Bookmarklet.php
Contact.php
Credits.php
Delegation.php
Directory.php
Feed.php
FollowConfirm.php
Followers.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Following.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Friendica.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Group.php
Hashtag.php
Help.php
Home.php
Inbox.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Install.php
Invite.php
Like.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Login.php
Logout.php
Magic.php
Maintenance.php
Manifest.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
NodeInfo.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Objects.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Oembed.php
OpenSearch.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Outbox.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Owa.php
Photo.php
Pinned.php New module to pin posts 2019-11-05 19:16:11 +00:00
Profile.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Proxy.php
PublicRSAKey.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
RandomProfile.php
README.md
ReallySimpleDiscovery.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Register.php ypot 2019-11-03 17:37:53 +01:00
RobotsTxt.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Smilies.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Starred.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Statistics.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Theme.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
ThemeDetails.php Added parameter to rawContent 2019-11-05 19:16:26 +00:00
ToggleMobile.php
Tos.php mv URL path uexport -> userexport 2019-11-02 12:44:46 +01:00
Welcome.php
Xrd.php Added parameter to rawContent 2019-11-05 19:16:26 +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.