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 bc2694bf7f Redo some changes 3 years ago
..
Admin Added parameters 3 years ago
Contact Added parameter to rawContent 3 years ago
Debug Added parameters 3 years ago
Diaspora Added parameters 3 years ago
Filer Added parameters 3 years ago
HTTPException Added parameters 3 years ago
Item Added parameters 3 years ago
Notifications Added parameters 3 years ago
Profile Added parameters 3 years ago
Search Added parameters 3 years ago
Settings Added parameters 3 years ago
Special Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 3 years ago
TwoFactor Added parameters 3 years ago
WellKnown Added parameter to rawContent 3 years ago
AccountManagementControlDocument.php Added parameter to rawContent 3 years ago
Acctlink.php Added parameters 3 years ago
AllFriends.php Added parameters 3 years ago
Apps.php Added parameters 3 years ago
Attach.php Added parameter to rawContent 3 years ago
BaseAdminModule.php Added parameters 3 years ago
BaseSearchModule.php Use Dice instantiation to access App\Arguments 3 years ago
BaseSettingsModule.php Added parameters 3 years ago
Bookmarklet.php Added parameters 3 years ago
Contact.php Added parameters 3 years ago
Credits.php Added parameters 3 years ago
Delegation.php Added parameters 3 years ago
Directory.php Added parameters 3 years ago
Feed.php Added parameters 3 years ago
FollowConfirm.php Added parameters 3 years ago
Followers.php Added parameter to rawContent 3 years ago
Following.php Added parameter to rawContent 3 years ago
Friendica.php Added parameters 3 years ago
Group.php Added parameters 3 years ago
Hashtag.php Added parameters 3 years ago
Help.php Added parameters 3 years ago
Home.php Added parameters 3 years ago
Inbox.php Added parameter to rawContent 3 years ago
Install.php Added parameters 3 years ago
Invite.php Added parameters 3 years ago
Like.php Added parameter to rawContent 3 years ago
Login.php Added parameters 3 years ago
Logout.php Added parameters 3 years ago
Magic.php Added parameters 3 years ago
Maintenance.php Added parameters 3 years ago
Manifest.php Added parameter to rawContent 3 years ago
NodeInfo.php Added parameters 3 years ago
Objects.php Added parameter to rawContent 3 years ago
Oembed.php Added parameters 3 years ago
OpenSearch.php Added parameter to rawContent 3 years ago
Outbox.php Added parameter to rawContent 3 years ago
Owa.php Added parameters 3 years ago
Photo.php Added parameters 3 years ago
Profile.php Added parameters 3 years ago
Proxy.php Added parameters 3 years ago
PublicRSAKey.php Added parameter to rawContent 3 years ago
README.md fixing text 3 years ago
RandomProfile.php Added parameters 3 years ago
ReallySimpleDiscovery.php Added parameter to rawContent 3 years ago
Register.php Added parameters 3 years ago
RobotsTxt.php Added parameter to rawContent 3 years ago
Smilies.php Added parameters 3 years ago
Starred.php Added parameters 3 years ago
Statistics.php Added parameters 3 years ago
Theme.php Added parameter to rawContent 3 years ago
ThemeDetails.php Added parameter to rawContent 3 years ago
ToggleMobile.php Added parameters 3 years ago
Tos.php Added parameters 3 years ago
Welcome.php Added parameters 3 years ago
Xrd.php Added parameter to rawContent 3 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.