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.
 
 
 
 
 
 
Philipp 5702944116
Add the possibility to use a different configuration directory
10 months ago
..
ActivityPub Move ActivityPub endpoints to an AP class 12 months ago
Admin Add the possibility to use a different configuration directory 10 months ago
Api Improved error check, added "put" 11 months ago
Contact "getUserId" is now "getLoggedInUserId" 11 months ago
Conversation "getUserId" is now "getLoggedInUserId" 11 months ago
DFRN Added missing app class (avoid fatal error) 11 months ago
Debug Rename DI::httpRequest() into DI::httpClient() 10 months ago
Diaspora Use the correct function is adviced ... 10 months ago
Filer Completely removed argc/argv 11 months ago
HTTPException Update copyright 1 year ago
Item Updated messages.po 11 months ago
Notifications Legacy DFRN transport layer is removed 12 months ago
OAuth Update src/Module/OAuth/Token.php 1 year ago
Profile Set profile fields for system user in Model\User::getOwnerDataById 10 months ago
Search Mark, file and starring does now work for all items 11 months ago
Security "getUserId" is now "getLoggedInUserId" 11 months ago
Settings Issue 10640 - Inverse user display settings 10 months ago
Special Update copyright 1 year ago
Update Using getter/setter functions 11 months ago
WellKnown Diaspora relay functionality is removed 1 year ago
AccountManagementControlDocument.php Update copyright 1 year ago
Acctlink.php Update copyright 1 year ago
Apps.php Update copyright 1 year ago
Attach.php Completely removed argc/argv 11 months ago
BaseAdmin.php Extract Storage admin section to own page 11 months ago
BaseApi.php Get rid of App->user completely 11 months ago
BaseNotifications.php Update copyright 1 year ago
BaseProfile.php Remove direct calls to App->user 11 months ago
BaseSearch.php Update copyright 1 year ago
BaseSettings.php Completely removed argc/argv 11 months ago
Bookmarklet.php Removed some more unused "use" 11 months ago
Contact.php Move unsecured GET endpoint handlers before security token check in Module\Contact 10 months ago
Credits.php Update copyright 1 year ago
Delegation.php "getUserId" is now "getLoggedInUserId" 11 months ago
Directory.php Completely removed argc/argv 11 months ago
Feed.php Completely removed argc/argv 11 months ago
FollowConfirm.php EOL removed 2 years ago
FriendSuggest.php Update copyright 1 year ago
Friendica.php Add Exception for empty User::getOwnerDataById(0 return case in Protocol\ActivityPub\Transmitter::getProfile() 11 months ago
Group.php Completely removed argc/argv 11 months ago
HCard.php Remove Profile::load from Module\HCard 10 months ago
Hashtag.php Update copyright 1 year ago
Help.php Completely removed argc/argv 11 months ago
Home.php "getUserNickname" is now "getLoggedInUserNickname" 11 months ago
Install.php Update copyright 1 year ago
Invite.php "getUserNickname" is now "getLoggedInUserNickname" 11 months ago
Magic.php Rename DI::httpRequest() into DI::httpClient() 10 months ago
Maintenance.php Update copyright 1 year ago
Manifest.php Update copyright 1 year ago
NoScrape.php "getUserNickname" is now "getLoggedInUserNickname" 11 months ago
NodeInfo110.php Update copyright 1 year ago
NodeInfo120.php Issue 10640: Use consistent settings to enable protocol support 10 months ago
NodeInfo210.php Issue 10640: Use consistent settings to enable protocol support 10 months ago
Oembed.php Completely removed argc/argv 11 months ago
OpenSearch.php Update copyright 1 year ago
Owa.php Update copyright 1 year ago
ParseUrl.php Update copyright 1 year ago
PermissionTooltip.php New post class in the rest of the classes 1 year ago
Photo.php Introduce InvalidClassStorageException and adapt the code for it 11 months ago
Proxy.php Make the proxy functionality optional 10 months ago
PublicRSAKey.php Completely removed argc/argv 11 months ago
README.md fixing text 3 years ago
RandomProfile.php Update copyright 1 year ago
ReallySimpleDiscovery.php Update copyright 1 year ago
Register.php Avoid Notice: Undefined index: field1 in /src/Module/Register.php on line 253 1 year ago
RemoteFollow.php Abort early if owner isn't found in Module\RemoteFollow 11 months ago
RobotsTxt.php Update copyright 1 year ago
Smilies.php Completely removed argc/argv 11 months ago
Statistics.php Update copyright 1 year ago
Theme.php Update copyright 1 year ago
ThemeDetails.php Update copyright 1 year ago
ToggleMobile.php Update copyright 1 year ago
Tos.php Update copyright 1 year ago
Welcome.php Update copyright 1 year ago
Xrd.php Fix profile probing via Pleroma 11 months 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.