friendica/src/Module
2020-01-27 23:06:30 -05:00
..
Admin
Api/Mastodon
Base
Contact
Debug
Diaspora
Filer
HTTPException
Item
Notifications Rename classes 2020-01-26 20:30:24 +01:00
Profile Re-enable pinned items in profile wall 2020-01-26 14:21:20 -05:00
Search
Security
Settings
Special
Update Remove superfluous includes in profile modules 2020-01-23 10:00:48 -05:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php Remove obsolete profile_id parameter in Model\Profile::load 2020-01-27 22:01:12 -05:00
Apps.php
Attach.php
BaseAdminModule.php
BaseNotifications.php ReWork Notification Model/Module/Object/Repository/Factory 2020-01-25 19:58:22 +01:00
BaseProfile.php Restore base profile URL behavior 2020-01-26 14:21:20 -05:00
BaseSearchModule.php
BaseSettingsModule.php
Bookmarklet.php
Contact.php Remove obsolete profile_id parameter in Model\Profile::load 2020-01-27 22:01:12 -05:00
Credits.php
Delegation.php
Directory.php Remove uses of the rest of deprecated profile fields 2020-01-27 23:06:30 -05:00
Feed.php
FollowConfirm.php
Followers.php Introduce new DI container 2019-12-29 20:16:55 +01:00
Following.php
Friendica.php
Group.php
Hashtag.php
Help.php Remove duplicated TOC loop in Module\Help 2020-01-23 09:13:31 -05:00
Home.php
HoverCard.php Remove obsolete profile_id parameter in Model\Profile::load 2020-01-27 22:01:12 -05:00
Inbox.php
Install.php
Invite.php
Like.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo.php
NoScrape.php Remove uses of the rest of deprecated profile fields 2020-01-27 23:06:30 -05:00
Objects.php
Oembed.php Introduce new DI container 2019-12-29 20:16:55 +01:00
OpenSearch.php
Outbox.php
Owa.php
Photo.php
Pinned.php
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
RobotsTxt.php
Smilies.php
Starred.php Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
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.