1
0
Fork 0
friendica_2020-09-1_sharedH.../src/Module
2023-03-31 18:01:10 +00:00
..
ActivityPub
Admin Fix php-lint issue 2023-03-28 19:42:16 +02:00
Api Fix some warnings 2023-03-31 18:01:10 +00:00
Blocklist/Domain
Calendar
Contact Don't try to follow remote item from non-URI or scheme-less URI 2023-03-27 21:31:54 -04:00
Conversation spelling: private 2023-03-26 20:04:18 -04:00
Debug
DFRN
Diaspora spelling: protocol 2023-03-26 16:14:16 -04:00
Filer
HTTPException spelling: javascript 2023-03-26 16:13:07 -04:00
Item
Media spelling: javascript 2023-03-26 16:13:07 -04:00
Moderation
Notifications
OAuth
OStatus
Post
Profile Skip nonexistent contacts in Pofile/Contacts 2023-03-27 21:31:54 -04:00
Search
Security spelling: repository 2023-03-26 16:14:16 -04:00
Settings spelling: uploaded 2023-03-26 16:14:16 -04:00
Special
Update
User
WellKnown spelling: relay 2023-03-26 20:04:18 -04:00
About.php
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php spelling: permission 2023-03-26 16:14:16 -04:00
BaseAdmin.php
BaseApi.php
BaseModeration.php
BaseNotifications.php spelling: with 2023-03-26 16:14:16 -04:00
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Contact.php
Credits.php
Delegation.php
Directory.php
Feed.php
FollowConfirm.php
Friendica.php
FriendSuggest.php
Group.php
Hashtag.php
HCard.php
Help.php
Home.php
Install.php
Invite.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php
Oembed.php
OpenSearch.php
Owa.php spelling: public 2023-03-26 20:04:18 -04:00
ParseUrl.php
PermissionTooltip.php
Photo.php
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
Response.php
RobotsTxt.php spelling: disallowed 2023-03-26 20:03:51 -04:00
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php

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.