1
1
Fork 0
friendica_2019-12_sharedHos.../src/Module
2020-02-09 22:08:59 +00:00
..
Admin Remove yesno option from Storage backend 2020-02-05 21:37:32 -05:00
Api Remove next link when there aren't any introductions in Module\Api\Mastodon\FollowRequests 2020-02-01 21:38:25 -05:00
Contact Force avatar update for Contact Advanced page 2020-02-02 22:19:02 +01:00
Debug
Diaspora
Filer
HTTPException
Item
Notifications Remove unused translated yes/no labels in converted checkbox field definitions 2020-02-06 10:25:36 -05:00
Profile Fix Archives Widget on Status Page 2020-02-01 14:06:35 +01:00
Search Move/rename base module classes 2020-01-29 23:23:07 -05:00
Security
Settings Accept empty values for profile birthday 2020-02-09 02:17:48 -05:00
Special
Update
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php
Attach.php
BaseAdmin.php Move/rename base module classes 2020-01-29 23:23:07 -05:00
BaseApi.php Move api/profile/show to src/Module 2020-01-29 23:31:37 -05:00
BaseNotifications.php Fix ignore notification 2020-01-28 22:47:15 +01:00
BaseProfile.php
BaseSearch.php Move/rename base module classes 2020-01-29 23:23:07 -05:00
BaseSettings.php Move/rename base module classes 2020-01-29 23:23:07 -05:00
Bookmarklet.php
Contact.php Replace stylesheet names 2020-02-02 20:56:31 +01:00
Credits.php
Delegation.php Move Notify::TYPE_MAIL 2020-02-05 21:41:02 +01:00
Directory.php
Feed.php
FollowConfirm.php
Followers.php
Following.php
Friendica.php
FriendSuggest.php improvements 2020-02-01 00:27:46 +01:00
Group.php
Hashtag.php
Help.php
Home.php
HoverCard.php
Inbox.php
Install.php
Invite.php Move "App::getSenderEmailAddress()" to "Emailer::getSiteEmailAddress()" 2020-02-02 22:43:40 +01:00
Like.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo.php
NoScrape.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 Notify::TYPE_SYSTEM 2020-02-05 21:41:07 +01:00
RemoteFollow.php Removed unneeded stuff 2020-02-09 22:08:59 +00:00
RobotsTxt.php
Smilies.php
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Worker.php Move mod/worker to src\Module\Worker 2020-01-31 22:38:49 +01:00
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.