1
0
Fork 0
friendica_2020-09-1_sharedH.../src/Module
2019-06-02 03:28:22 +02:00
..
Admin Remove queue from Admin/Summary 2019-06-02 03:28:22 +02:00
Debug Improve Diaspora raw text support in /babel module 2019-05-19 18:52:01 -04:00
Diaspora
Filer catching nulls for FileTag 2019-05-30 13:54:35 +02:00
Notifications
Profile Remove obsolete TODO comment in Module\Profile\Contacts 2019-05-20 15:10:34 -04:00
Search Split Directory Search as a base for further changes 2019-05-19 05:06:02 +02:00
Settings/TwoFactor
Special
TwoFactor
WellKnown
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php
Apps.php
Attach.php
BaseAdminModule.php Add themed themed error page or login page for /admin[/*] 2019-05-31 00:23:30 -04:00
BaseSearchModule.php Ensures Search methods return an empty ResultList instead of null 2019-05-24 08:13:36 -04:00
BaseSettingsModule.php
Bookmarklet.php
Contact.php Merge pull request #7156 from MrPetovan/task/add-relationship-filter 2019-05-25 20:17:05 +02:00
Credits.php
Directory.php
Feed.php
FollowConfirm.php
Followers.php
Following.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Friendica.php
Group.php
Hashtag.php
Help.php
Home.php
Inbox.php
Install.php
Invite.php
Like.php
Login.php
Logout.php
Magic.php
Maintenance.php
Manifest.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
NodeInfo.php
Objects.php
Oembed.php
OpenSearch.php
Outbox.php
Owa.php
PageNotFound.php
Photo.php
Profile.php Ensures Widget::postedByYear uid parameter is integer in Module\Profile 2019-05-26 08:18:59 -04:00
Proxy.php
PublicRSAKey.php
RandomProfile.php some improvements 2019-05-19 03:12:22 +02:00
README.md
ReallySimpleDiscovery.php
Register.php
RobotsTxt.php
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
Welcome.php Move mod/newmember to src/Module/Welcome 2019-05-20 20:12:20 +02: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.