friendica/src/Module
2019-05-20 19:13:37 +02:00
..
Admin Add contact block reason form and display in admin page 2019-05-15 19:30:13 -04:00
Diaspora
Filer
GnuSocial remove unused dependencies 2019-05-19 02:53:36 +02:00
Notifications rearrange content/init 2019-05-18 20:34:11 +02:00
Search Split Directory Search as a base for further changes 2019-05-19 05:06:02 +02:00
Settings/TwoFactor Improve template args visual alignment in two-factor modules 2019-05-13 13:31:08 -04:00
Special
TwoFactor Improve template args visual alignment in two-factor modules 2019-05-13 13:31:08 -04:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php
Attach.php
Babel.php
BaseAdminModule.php
BaseSearchModule.php Add search types 2019-05-20 19:13:37 +02:00
BaseSettingsModule.php Add two-factor authentication settings 2019-05-13 01:52:01 -04:00
Bookmarklet.php
Contact.php Add contact/batch route 2019-05-07 21:15:22 +02:00
Credits.php
Directory.php
Feed.php
Feedtest.php
FollowConfirm.php Some cleaning up 2019-05-06 18:46:30 +00:00
Followers.php
Following.php
Friendica.php
Group.php
Hashtag.php
Help.php Fix undefined $a variable in Module\Help 2019-05-13 01:51:59 -04:00
Home.php
Inbox.php
Install.php
Invite.php
ItemBody.php
Itemsource.php
Like.php
Localtime.php
Login.php Move Authentication::setAuthenticatedSessionForUser to Session::setAuthenticatedForUser 2019-05-13 01:51:59 -04:00
Logout.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo.php
Objects.php
Oembed.php
OpenSearch.php Move mod/opensearch to src/Module/OpenSearch 2019-05-18 17:43:58 +02:00
Outbox.php
Owa.php
PageNotFound.php
Photo.php
Profile.php
Proxy.php
PublicRSAKey.php
RandomProfile.php some improvements 2019-05-19 03:12:22 +02:00
README.md
ReallySimpleDiscovery.php
Register.php
RobotsTxt.php add new disallowed path for robots.txt 2019-05-08 13:08:34 +02:00
Smilies.php
Starred.php Move mod/starred to src/Module/Starred 2019-05-19 03:07:44 +02:00
Statistics.php
Theme.php Move mod/view to src/Module/View 2019-05-18 21:23:12 +02:00
ThemeDetails.php
ToggleMobile.php Move mod/toggle_mobile to src/Module/ToggleMobile 2019-05-18 21:13:19 +02:00
Tos.php
WebFinger.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.