|
10 months ago | |
---|---|---|
.. | ||
ActivityPub | 12 months ago | |
Admin | 10 months ago | |
Api | 11 months ago | |
Contact | 11 months ago | |
Conversation | 11 months ago | |
DFRN | 11 months ago | |
Debug | 10 months ago | |
Diaspora | 10 months ago | |
Filer | 11 months ago | |
HTTPException | 1 year ago | |
Item | 11 months ago | |
Notifications | 12 months ago | |
OAuth | 1 year ago | |
Profile | 10 months ago | |
Search | 11 months ago | |
Security | 11 months ago | |
Settings | 10 months ago | |
Special | 1 year ago | |
Update | 11 months ago | |
WellKnown | 1 year ago | |
AccountManagementControlDocument.php | 1 year ago | |
Acctlink.php | 1 year ago | |
Apps.php | 1 year ago | |
Attach.php | 11 months ago | |
BaseAdmin.php | 11 months ago | |
BaseApi.php | 11 months ago | |
BaseNotifications.php | 1 year ago | |
BaseProfile.php | 11 months ago | |
BaseSearch.php | 1 year ago | |
BaseSettings.php | 11 months ago | |
Bookmarklet.php | 11 months ago | |
Contact.php | 10 months ago | |
Credits.php | 1 year ago | |
Delegation.php | 11 months ago | |
Directory.php | 11 months ago | |
Feed.php | 11 months ago | |
FollowConfirm.php | 2 years ago | |
FriendSuggest.php | 1 year ago | |
Friendica.php | 11 months ago | |
Group.php | 11 months ago | |
HCard.php | 10 months ago | |
Hashtag.php | 1 year ago | |
Help.php | 11 months ago | |
Home.php | 11 months ago | |
Install.php | 1 year ago | |
Invite.php | 11 months ago | |
Magic.php | 10 months ago | |
Maintenance.php | 1 year ago | |
Manifest.php | 1 year ago | |
NoScrape.php | 11 months ago | |
NodeInfo110.php | 1 year ago | |
NodeInfo120.php | 10 months ago | |
NodeInfo210.php | 10 months ago | |
Oembed.php | 11 months ago | |
OpenSearch.php | 1 year ago | |
Owa.php | 1 year ago | |
ParseUrl.php | 1 year ago | |
PermissionTooltip.php | 1 year ago | |
Photo.php | 11 months ago | |
Proxy.php | 10 months ago | |
PublicRSAKey.php | 11 months ago | |
README.md | 3 years ago | |
RandomProfile.php | 1 year ago | |
ReallySimpleDiscovery.php | 1 year ago | |
Register.php | 1 year ago | |
RemoteFollow.php | 11 months ago | |
RobotsTxt.php | 1 year ago | |
Smilies.php | 11 months ago | |
Statistics.php | 1 year ago | |
Theme.php | 1 year ago | |
ThemeDetails.php | 1 year ago | |
ToggleMobile.php | 1 year ago | |
Tos.php | 1 year ago | |
Welcome.php | 1 year ago | |
Xrd.php | 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.