Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Michael abe6724629 Added parameter to rawContent 2 years ago
..
Admin Added parameter to rawContent 2 years ago
Contact Added parameter to rawContent 2 years ago
Debug Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Diaspora Added parameter to rawContent 2 years ago
Filer Added parameter to rawContent 2 years ago
HTTPException Make Router::getModuleClass throw exceptions 2 years ago
Item Added parameter to rawContent 2 years ago
Notifications Added parameter to rawContent 2 years ago
Profile Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Search Added parameter to rawContent 2 years ago
Settings Added parameter to rawContent 2 years ago
Special Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
TwoFactor Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
WellKnown Added parameter to rawContent 2 years ago
AccountManagementControlDocument.php Added parameter to rawContent 2 years ago
Acctlink.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
AllFriends.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Apps.php reduce code 2 years ago
Attach.php Added parameter to rawContent 2 years ago
BaseAdminModule.php Added parameter to rawContent 2 years ago
BaseSearchModule.php Use Dice instantiation to access App\Arguments 2 years ago
BaseSettingsModule.php mv URL path uexport -> userexport 2 years ago
Bookmarklet.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Contact.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Credits.php Moving mod/credits to src/Module/Credits 2 years ago
Delegation.php Move mod/manage to src/Module/Delegation 2 years ago
Directory.php Remove useless theme session variable deletions in modules 2 years ago
Feed.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
FollowConfirm.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Followers.php Added parameter to rawContent 2 years ago
Following.php Added parameter to rawContent 2 years ago
Friendica.php Added parameter to rawContent 2 years ago
Group.php Move mod/nogroup to src/Module/Group 2 years ago
Hashtag.php Remove include/ requires that are now done directly from Composer 3 years ago
Help.php Fix undefined $a variable in Module\Help 2 years ago
Home.php Remove useless theme session variable deletions in modules 2 years ago
Inbox.php Added parameter to rawContent 2 years ago
Install.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Invite.php fix quotes 2 years ago
Like.php Added parameter to rawContent 2 years ago
Login.php Uswe default value 2 years ago
Logout.php Delete the cache entry allowing direct login again 2 years ago
Magic.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Maintenance.php Rename ServiceUnavailableException & alter maintenance 2 years ago
Manifest.php Added parameter to rawContent 2 years ago
NodeInfo.php Added parameter to rawContent 2 years ago
Objects.php Added parameter to rawContent 2 years ago
Oembed.php Add routes for current BaseModules 2 years ago
OpenSearch.php Added parameter to rawContent 2 years ago
Outbox.php Added parameter to rawContent 2 years ago
Owa.php Issue 6149: Making OWA (hopefully) compatible with Hubzilla 3 years ago
Photo.php API: We now transmit the text description there as well 2 years ago
Pinned.php New module to pin posts 2 years ago
Profile.php Added parameter to rawContent 2 years ago
Proxy.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
PublicRSAKey.php Added parameter to rawContent 2 years ago
README.md fixing text 2 years ago
RandomProfile.php some improvements 2 years ago
ReallySimpleDiscovery.php Added parameter to rawContent 2 years ago
Register.php ypot 2 years ago
RobotsTxt.php Added parameter to rawContent 2 years ago
Smilies.php Added parameter to rawContent 2 years ago
Starred.php Added parameter to rawContent 2 years ago
Statistics.php Added parameter to rawContent 2 years ago
Theme.php Added parameter to rawContent 2 years ago
ThemeDetails.php Added parameter to rawContent 2 years ago
ToggleMobile.php Move mod/toggle_mobile to src/Module/ToggleMobile 2 years ago
Tos.php mv URL path uexport -> userexport 2 years ago
Welcome.php Move mod/newmember to src/Module/Welcome 2 years ago
Xrd.php Added parameter to rawContent 2 years ago

README.md

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.