friendica/src/Module
2020-01-22 19:42:36 -05:00
..
Admin Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Api/Mastodon
Base
Contact Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Debug add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
Diaspora
Filer
HTTPException
Item
Notifications
Profile Replace advanced profile display with custom profile fields 2020-01-22 19:42:34 -05:00
Search Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Security Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Settings Add custom fields help text 2020-01-22 19:42:36 -05:00
Special Add trace for admin in exceptionpages 2020-01-20 07:47:53 -05:00
Update Remove duplicate profile_uid key in App->profile array 2020-01-22 19:42:33 -05:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Attach.php
BaseAdminModule.php
BaseSearchModule.php
BaseSettingsModule.php Move Module\Profile to Module\Profile\Index 2020-01-22 19:42:32 -05:00
Bookmarklet.php
Contact.php Remove multi profiles feature 2020-01-22 19:42:33 -05:00
Credits.php add missing namespaces/fix wrong class-names 2020-01-19 16:31:35 +01:00
Delegation.php
Directory.php
Feed.php
FollowConfirm.php
Followers.php
Following.php
Friendica.php
Group.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Hashtag.php
Help.php
Home.php
HoverCard.php
Inbox.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
Install.php Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
Invite.php
Like.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo.php
Objects.php
Oembed.php
OpenSearch.php
Outbox.php
Owa.php
Photo.php
Pinned.php
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Move profile-related templates to sub-folder 2020-01-20 07:27:14 -05:00
RobotsTxt.php
Smilies.php
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
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.