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.
 
 
 
 
 
 
Tobias Diekershoff 92ee309591 quotes 2 years ago
..
Admin Fix parameters for Source 2 years ago
Debug removed unused "f" parameter 2 years ago
Diaspora Fix a notice when the author is missing 2 years ago
Filer catching nulls for FileTag 2 years ago
Item Update master translation strings file 2 years ago
Notifications rearrange content/init 2 years ago
Profile New function "isAuthenticated" 2 years ago
Search Add missing use statement in Search\Directory 2 years ago
Settings/TwoFactor Remove debug 2 years ago
Special Add style to exception page 3 years ago
TwoFactor Use template-displayed errors in TwoFactor\Verify 2 years ago
WellKnown code standards :-) 3 years ago
AccountManagementControlDocument.php Rename to AccountManagementControlDocument 3 years ago
Acctlink.php Split goaway to System::externalRedirectTo() and App->internalRedirect() 3 years ago
AllFriends.php added url for magic link again 3 years ago
Apps.php reduce code 3 years ago
Attach.php Replace System::httpExit() by HTTPException throwing 3 years ago
BaseAdminModule.php Add themed themed error page or login page for /admin[/*] 2 years ago
BaseSearchModule.php Fix searching for contacts 2 years ago
BaseSettingsModule.php Add two-factor authentication settings 2 years ago
Bookmarklet.php Fixed wrong app reference 2 years ago
Contact.php Only show incoming pending contact requests with intro 2 years ago
Credits.php Moving mod/credits to src/Module/Credits 3 years ago
Directory.php New function "isAuthenticated" 2 years ago
Feed.php Move mod/allfriends to src/Module/AllFriends 3 years ago
FollowConfirm.php Some cleaning up 3 years ago
Followers.php Replace System::httpExit() by HTTPException throwing 3 years ago
Following.php Replace System::httpExit() by HTTPException throwing 3 years ago
Friendica.php added feedback 3 years ago
Group.php Move mod/nogroup to src/Module/Group 3 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 Bugfixing Home 3 years ago
Inbox.php We now use a central function for fetching the postdata 2 years ago
Install.php Moved BaseURL to App namespace (because similar type as Arguments/Modules/Modes) 2 years ago
Invite.php fix quotes 3 years ago
Like.php New function "isAuthenticated" 2 years ago
Login.php Hide registration button on login page when registration are closed 2 years ago
Logout.php Delete the cache entry allowing direct login again 2 years ago
Magic.php removed unused "f" parameter 2 years ago
Maintenance.php Rename ServiceUnavailableException & alter maintenance 3 years ago
Manifest.php Remove duplicate $baseurl template variable 3 years ago
NodeInfo.php Replace System::httpExit() by HTTPException throwing 3 years ago
Objects.php Replace System::httpExit() by HTTPException throwing 3 years ago
Oembed.php Add routes for current BaseModules 3 years ago
OpenSearch.php Move mod/opensearch to src/Module/OpenSearch 2 years ago
Outbox.php Replace System::httpExit() by HTTPException throwing 3 years ago
Owa.php Issue 6149: Making OWA (hopefully) compatible with Hubzilla 3 years ago
PageNotFound.php Add themed error pages 3 years ago
Photo.php API: We now transmit the text description there as well 2 years ago
Profile.php remote_user is replaced 2 years ago
Proxy.php Don't send blank pictures on error, fail instead. 2 years ago
PublicRSAKey.php Move mod/modexp to src/Module/PublicRSAKey 3 years ago
README.md fixing text 3 years ago
RandomProfile.php some improvements 2 years ago
ReallySimpleDiscovery.php Create XML output for RSD with XML::fromArray() 3 years ago
Register.php quotes 2 years ago
RobotsTxt.php add new disallowed path for robots.txt 3 years ago
Smilies.php Move Smilies::getList() into if 3 years ago
Starred.php Move mod/starred to src/Module/Starred 2 years ago
Statistics.php Replace System::httpExit() by HTTPException throwing 3 years ago
Theme.php Move mod/view to src/Module/View 2 years ago
ThemeDetails.php Move mod/pretheme to src/Module/ThemeDetails 3 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 it is poll, not notify 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.