Commit Graph

18 Commits

Author SHA1 Message Date
Philipp Holzer 561aba18e3
Introduce `Response` for Modules to create a testable way for module responses 2021-11-27 12:40:38 +01:00
Philipp Holzer 8bdd90066f
Make `BaseModule` a real entity
- Add all dependencies, necessary to run the content (baseUrl, Arguments)
- Encapsulate all POST/GET/DELETE/PATCH/PUT methods as protected methods inside the BaseModule
- Return Module content ONLY per `BaseModule::run()` (including the Hook logic there as well)
2021-11-27 12:40:36 +01:00
Philipp Holzer 645e4edc63
Revert "Revert "Replace Module::init() with Constructors""
This reverts commit 89d6c89b67.
2021-11-19 20:18:48 +01:00
Hypolite Petovan 89d6c89b67
Revert "Replace Module::init() with Constructors" 2021-11-19 07:23:23 -05:00
Philipp Holzer 04a0cd9301
Add feedback 2021-11-18 21:25:09 +01:00
Philipp Holzer ce578a7745
Replace Module::init() with Constructors 2021-11-17 22:14:33 +01:00
Philipp Holzer 5879535822
Switch `static::$parameters` to `$this->parameters` 2021-11-14 23:49:07 +01:00
Philipp Holzer 489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Philipp Holzer 714f0febc4
Replace `$parameters` argument per method with `static::$parameters` 2021-11-14 23:49:05 +01:00
Balázs Úr 054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
nupplaPhil 23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
Hypolite Petovan 46c4bfe580 Restore base profile URL behavior
- Add new profile-specific route
2020-01-26 14:21:20 -05:00
Hypolite Petovan f2d917114f Move Model\Profile::getTabs to new Module\BaseProfile class 2020-01-26 14:21:18 -05:00
Hypolite Petovan 602a57577d Remove duplicate call to Profile::getTabs in Module\Profile\Index
- Address https://github.com/friendica/friendica/issues/8167
2020-01-25 16:27:43 -05:00
Hypolite Petovan 1fc1989f93 Remove superfluous includes in profile modules 2020-01-23 10:00:48 -05:00
Hypolite Petovan d475cb5028 Replace advanced profile display with custom profile fields
- Merge all profile/advanced.tpl theme templates into profile/index.tpl
- Remove obsolete Model\Profile::getAdvanced method
2020-01-22 19:42:34 -05:00
Hypolite Petovan 62fec2f190 Remove duplicate profile_uid key in App->profile array 2020-01-22 19:42:33 -05:00
Hypolite Petovan d1be68b754 Move Module\Profile to Module\Profile\Index
- Move /profiles to Module\Settings\Profile\Index
2020-01-22 19:42:32 -05:00