friendica/src/Module
2019-05-02 22:17:09 +02:00
..
Admin Add @TODO comments per @nupplaphil review in various Admin modules 2019-05-02 10:20:02 -04:00
Special Add themed error pages 2019-05-02 11:26:56 -04:00
WellKnown code standards :-) 2019-05-01 19:48:49 +02:00
AccountManagementControlDocument.php Rename to AccountManagementControlDocument 2019-05-01 17:05:46 +02:00
Acctlink.php Split goaway to System::externalRedirectTo() and App->internalRedirect() 2018-10-22 22:13:35 +02:00
Apps.php reduce code 2019-03-22 22:28:13 -04:00
Attach.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Babel.php Moving mod/babel to src/Module/babel 2019-04-21 15:17:04 +02:00
BaseAdminModule.php Fix EOL and EOF in Admin modules 2019-05-02 09:55:50 -04:00
BookMarklet.php Move mod/bookmarklet to src/Module/BookMarklet 2019-05-02 22:17:09 +02:00
Contact.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
Credits.php Moving mod/credits to src/Module/Credits 2019-03-22 22:55:46 -04:00
Feed.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Feedtest.php removed debugging 2019-03-22 22:55:49 -04:00
Filer.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Followers.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Following.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Group.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Hashtag.php Remove include/ requires that are now done directly from Composer 2018-12-24 09:56:25 -05:00
Inbox.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Install.php Merge pull request #7068 from MrPetovan/task/7047-theme-error-page 2019-05-02 21:15:29 +02:00
Itemsource.php Add routes for current BaseModules 2019-05-01 20:16:21 +02:00
Localtime.php Move mod/localtime to src/Module/Localtime 2019-04-22 12:31:18 +02:00
Login.php Replace REGISTER_* constants by Module\Register::* ones 2019-01-22 22:24:15 -05:00
Logout.php Replace deprecated Addon::callHooks with Hook::callAll 2019-01-21 09:50:56 -05:00
Magic.php Issue 6149: Making OWA (hopefully) compatible with Hubzilla 2019-01-08 11:17:05 +00:00
Manifest.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
NodeInfo.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Objects.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Oembed.php Add routes for current BaseModules 2019-05-01 21:29:04 +02:00
Outbox.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Owa.php Issue 6149: Making OWA (hopefully) compatible with Hubzilla 2019-01-08 11:17:05 +00:00
PageNotFound.php Add themed error pages 2019-05-02 11:26:56 -04:00
Photo.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Profile.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Proxy.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
README.md fixing text 2019-05-01 20:17:15 +02:00
Register.php Remove duplicate $baseurl template variable 2019-05-02 09:55:48 -04:00
Statistics.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Tos.php Fix PHPDoc comments project-wide 2019-01-21 10:35:51 -05:00
WebFinger.php Replace System::httpExit() by HTTPException throwing 2019-05-02 11:37:09 -04:00
Xrd.php Merge pull request #7068 from MrPetovan/task/7047-theme-error-page 2019-05-02 21:15:29 +02:00

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.