1
0
Fork 0
friendica_2020-09-1_sharedH.../src/Module
2022-10-19 09:02:53 -04:00
..
ActivityPub
Admin
Api Add missing use statements in modules classes 2022-10-19 09:02:53 -04:00
Blocklist/Domain
Contact
Conversation Add missing use statements in modules classes 2022-10-19 09:02:53 -04:00
Debug
DFRN
Diaspora
Events
Filer
HTTPException
Item
Notifications
OAuth
Profile
Search
Security
Settings
Special
Update
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Attach.php
BaseAdmin.php Add missing use statements in modules classes 2022-10-19 09:02:53 -04:00
BaseApi.php
BaseNotifications.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
BaseProfile.php
BaseSearch.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
BaseSettings.php
Bookmarklet.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Contact.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Credits.php
Delegation.php Add missing use statements in modules classes 2022-10-19 09:02:53 -04:00
Directory.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Feed.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
FollowConfirm.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Friendica.php
FriendSuggest.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Group.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Hashtag.php
HCard.php Add missing use statements in modules classes 2022-10-19 09:02:53 -04:00
Help.php
Home.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Install.php
Invite.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Magic.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Photo.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
Proxy.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
RemoteFollow.php
Response.php
RobotsTxt.php
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.