|
3 years ago | |
---|---|---|
.. | ||
Admin | 3 years ago | |
Api/Mastodon | 3 years ago | |
Base | 3 years ago | |
Contact | 3 years ago | |
Debug | 3 years ago | |
Diaspora | 3 years ago | |
Filer | 3 years ago | |
HTTPException | 3 years ago | |
Item | 3 years ago | |
Notifications | 3 years ago | |
Profile | 3 years ago | |
Search | 3 years ago | |
Security | 3 years ago | |
Settings | 3 years ago | |
Special | 3 years ago | |
WellKnown | 3 years ago | |
AccountManagementControlDocument.php | 3 years ago | |
Acctlink.php | 3 years ago | |
AllFriends.php | 3 years ago | |
Apps.php | 3 years ago | |
Attach.php | 3 years ago | |
BaseAdminModule.php | 3 years ago | |
BaseSearchModule.php | 3 years ago | |
BaseSettingsModule.php | 3 years ago | |
Bookmarklet.php | 3 years ago | |
Contact.php | 3 years ago | |
Credits.php | 3 years ago | |
Delegation.php | 3 years ago | |
Directory.php | 3 years ago | |
Feed.php | 3 years ago | |
FollowConfirm.php | 3 years ago | |
Followers.php | 3 years ago | |
Following.php | 3 years ago | |
Friendica.php | 3 years ago | |
Group.php | 3 years ago | |
Hashtag.php | 3 years ago | |
Help.php | 3 years ago | |
Home.php | 3 years ago | |
HoverCard.php | 3 years ago | |
Inbox.php | 3 years ago | |
Install.php | 3 years ago | |
Invite.php | 3 years ago | |
Like.php | 3 years ago | |
Magic.php | 3 years ago | |
Maintenance.php | 3 years ago | |
Manifest.php | 3 years ago | |
NodeInfo.php | 3 years ago | |
Objects.php | 3 years ago | |
Oembed.php | 3 years ago | |
OpenSearch.php | 3 years ago | |
Outbox.php | 3 years ago | |
Owa.php | 3 years ago | |
Photo.php | 3 years ago | |
Pinned.php | 3 years ago | |
Profile.php | 3 years ago | |
Proxy.php | 3 years ago | |
PublicRSAKey.php | 3 years ago | |
README.md | 4 years ago | |
RandomProfile.php | 3 years ago | |
ReallySimpleDiscovery.php | 3 years ago | |
Register.php | 3 years ago | |
RobotsTxt.php | 3 years ago | |
Smilies.php | 3 years ago | |
Starred.php | 3 years ago | |
Statistics.php | 3 years ago | |
Theme.php | 3 years ago | |
ThemeDetails.php | 3 years ago | |
ToggleMobile.php | 3 years ago | |
Tos.php | 3 years ago | |
Welcome.php | 3 years ago | |
Xrd.php | 3 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.