friendica/src/Module
2020-06-24 18:49:55 -04:00
..
Admin Update src/Module/Admin/Site.php 2020-06-16 14:37:36 +02:00
Api Add support for max_id parameter in new Twitter contact API endpoints 2020-06-09 08:36:53 -04:00
Contact
Conversation
Debug Add PageInfo result panels to Debug\Babel 2020-06-17 13:24:44 -04:00
Diaspora
Filer
HTTPException
Item
Notifications
Profile File and category aren't using "term" anymore 2020-05-03 15:13:40 +00:00
Search Issue 8514: Make paging for searcg items work again 2020-05-17 13:51:56 +00:00
Security
Settings
Special
Update
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php
Attach.php
BaseAdmin.php
BaseApi.php
BaseNotifications.php
BaseProfile.php
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Contact.php Add expected whitespace before Widget::unavailableNetworks() output in Module\Contact 2020-06-24 18:49:55 -04:00
Credits.php
Delegation.php
Directory.php Fix for "Undefined index: profile_url" 2020-04-28 19:36:10 +00:00
Feed.php
FollowConfirm.php
Followers.php Combine getFollowers and getFollowing into getContacts in ActivityPub\Transmitter 2020-05-05 22:32:45 -04:00
Following.php Combine getFollowers and getFollowing into getContacts in ActivityPub\Transmitter 2020-05-05 22:32:45 -04:00
Friendica.php
FriendSuggest.php
Group.php
Hashtag.php
Help.php
Home.php
HoverCard.php
Inbox.php
Install.php
Invite.php
Like.php Improve performance of asynchronous like/update 2020-05-27 08:41:10 -04:00
Magic.php
Maintenance.php
Manifest.php
NodeInfo.php
NoScrape.php Exit with an error if profile info isn't available in Module\NoScrape 2020-06-05 14:28:11 -04:00
Objects.php Issue 8700: Resolvable activities 2020-05-27 19:05:33 +00:00
Oembed.php
OpenSearch.php
Outbox.php
Owa.php
Photo.php
Pinned.php
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php
RemoteFollow.php Issue 8675: reduce requests of foreign pages 2020-06-01 21:52:31 +00:00
RobotsTxt.php
Smilies.php
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Worker.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.