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.
 
 
 
 
 
 
Hypolite Petovan f59ea2af55 Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
..
Admin Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Debug Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Diaspora Fix a notice when the author is missing 2 years ago
Filer Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Item Update master translation strings file 2 years ago
Notifications rearrange content/init 2 years ago
Profile Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Search Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Settings Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 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 code standards :-) 2 years ago
AccountManagementControlDocument.php Rename to AccountManagementControlDocument 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 Replace System::httpExit() by HTTPException throwing 2 years ago
BaseAdminModule.php Add themed themed error page or login page for /admin[/*] 2 years ago
BaseSearchModule.php Use Dice instantiation to access App\Arguments 2 years ago
BaseSettingsModule.php Move mod/delegate to src/Module/Settings/Delegation 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
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 Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Following.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Friendica.php added feedback 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 We now use a central function for fetching the postdata 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 Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Login.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 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 Remove duplicate $baseurl template variable 2 years ago
NodeInfo.php Replace System::httpExit() by HTTPException throwing 2 years ago
Objects.php Replace System::httpExit() by HTTPException throwing 2 years ago
Oembed.php Add routes for current BaseModules 2 years ago
OpenSearch.php Move mod/opensearch to src/Module/OpenSearch 2 years ago
Outbox.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Owa.php Issue 6149: Making OWA (hopefully) compatible with Hubzilla 3 years ago
PageNotFound.php Add themed error pages 2 years ago
Photo.php API: We now transmit the text description there as well 2 years ago
Profile.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Proxy.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
PublicRSAKey.php Move mod/modexp to src/Module/PublicRSAKey 2 years ago
README.md fixing text 2 years ago
RandomProfile.php some improvements 2 years ago
ReallySimpleDiscovery.php Create XML output for RSD with XML::fromArray() 2 years ago
Register.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
RobotsTxt.php add new disallowed path for robots.txt 2 years ago
Smilies.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Starred.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
Statistics.php Replace System::httpExit() by HTTPException throwing 2 years ago
Theme.php Move mod/view to src/Module/View 2 years ago
ThemeDetails.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 2 years ago
ToggleMobile.php Move mod/toggle_mobile to src/Module/ToggleMobile 2 years ago
Tos.php Fix PHPDoc comments project-wide 3 years ago
Welcome.php Move mod/newmember to src/Module/Welcome 2 years ago
Xrd.php Replace deprecated defaults() calls by ?? and ?: operators in src/Module/ 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.