friendica/src/Module
2019-12-28 08:07:30 +01:00
..
Admin
Api/Mastodon Improve Api\Mastodon\Account with data from apcontact 2019-12-11 08:25:45 -05:00
Base Update Base\Api::login to return the authentication status 2019-12-11 08:24:16 -05:00
Contact
Debug Add BBCode to Markdown to HTML raw result in Module\Babel 2019-12-27 20:44:24 -05:00
Diaspora
Filer
HTTPException
Item Add check for $_REQUEST key existence in Module\Item\Compose 2019-12-19 07:48:08 -05:00
Notifications
Profile Additionally display the protocol together with the network 2019-12-27 17:24:29 +00:00
Search Add profile URL search 2019-12-26 20:17:12 -05:00
Settings
Special
TwoFactor Merge branch 'master' 2019.12 into develop 2019-12-23 20:03:47 +01:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php
Attach.php
BaseAdminModule.php
BaseSearchModule.php Rename BaseSearchModule::performSearch to performContactSearch to remove purpose confusion 2019-12-24 17:15:41 -05:00
BaseSettingsModule.php
Bookmarklet.php
Contact.php Additionally display the protocol together with the network 2019-12-27 17:24:29 +00:00
Credits.php
Delegation.php Move Cookie to own class (with tests) 2019-12-08 22:45:34 +01:00
Directory.php
Feed.php
FollowConfirm.php Update web modules handling introduction to use new model class 2019-12-11 08:24:17 -05:00
Followers.php
Following.php
Friendica.php
Group.php Remove group management restrictions on pending and blocked in Module\Group 2019-12-24 16:44:43 -05:00
Hashtag.php
Help.php Update Module\Help to use anchor words for titles 2019-12-09 22:50:37 -05:00
Home.php
Inbox.php
Install.php
Invite.php
Like.php
Login.php Move Cookie to own class (with tests) 2019-12-08 22:45:34 +01:00
Logout.php Refactor Session Handling (make it more simple & handler are now handler again) 2019-12-11 20:30:31 +01:00
Magic.php
Maintenance.php
Manifest.php
NodeInfo.php Fix: Newer Friendica servers had been detected as ActivityPub 2019-12-21 13:51:25 +00:00
Objects.php Make quoted announces look better / more announce improvements 2019-12-04 07:02:39 +00:00
Oembed.php
OpenSearch.php
Outbox.php
Owa.php
Photo.php
Pinned.php
Profile.php
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
RobotsTxt.php
Smilies.php
Starred.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.