Move/rename base module classes

This commit is contained in:
Hypolite Petovan 2020-01-22 23:14:14 -05:00
parent 2c2b649015
commit 5670c19d5c
34 changed files with 65 additions and 65 deletions

View file

@ -6,10 +6,10 @@ use Friendica\Content\Text\Markdown;
use Friendica\Core\Addon; use Friendica\Core\Addon;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Details extends BaseAdminModule class Details extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -5,9 +5,9 @@ namespace Friendica\Module\Admin\Addons;
use Friendica\Core\Addon; use Friendica\Core\Addon;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
class Index extends BaseAdminModule class Index extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -6,10 +6,10 @@ use Friendica\Content\Pager;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Model; use Friendica\Model;
class Contact extends BaseAdminModule class Contact extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -4,10 +4,10 @@ namespace Friendica\Module\Admin\Blocklist;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Server extends BaseAdminModule class Server extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -7,9 +7,9 @@ use Friendica\Core\Update;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\Database\DBStructure; use Friendica\Database\DBStructure;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
class DBSync extends BaseAdminModule class DBSync extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -5,9 +5,9 @@ namespace Friendica\Module\Admin;
use Friendica\Content\Feature; use Friendica\Content\Feature;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
class Features extends BaseAdminModule class Features extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -5,9 +5,9 @@ namespace Friendica\Module\Admin;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
class Federation extends BaseAdminModule class Federation extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -5,10 +5,10 @@ namespace Friendica\Module\Admin\Item;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\Item; use Friendica\Model\Item;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Delete extends BaseAdminModule class Delete extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -5,12 +5,12 @@ namespace Friendica\Module\Admin\Item;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Model; use Friendica\Model;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
/** /**
* @author Hypolite Petovan <mrpetovan@gmail.com> * @author Hypolite Petovan <mrpetovan@gmail.com>
*/ */
class Source extends BaseAdminModule class Source extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])

View file

@ -4,11 +4,11 @@ namespace Friendica\Module\Admin\Logs;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
class Settings extends BaseAdminModule class Settings extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -4,10 +4,10 @@ namespace Friendica\Module\Admin\Logs;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class View extends BaseAdminModule class View extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -2,9 +2,9 @@
namespace Friendica\Module\Admin; namespace Friendica\Module\Admin;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
class PhpInfo extends BaseAdminModule class PhpInfo extends BaseAdmin
{ {
public static function rawContent(array $parameters = []) public static function rawContent(array $parameters = [])
{ {

View file

@ -5,7 +5,7 @@ namespace Friendica\Module\Admin;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Arrays; use Friendica\Util\Arrays;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
@ -17,7 +17,7 @@ use Friendica\Util\DateTimeFormat;
* *
* @return string * @return string
*/ */
class Queue extends BaseAdminModule class Queue extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -9,7 +9,7 @@ use Friendica\Core\Theme;
use Friendica\Core\Worker; use Friendica\Core\Worker;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Module\Register; use Friendica\Module\Register;
use Friendica\Protocol\PortableContact; use Friendica\Protocol\PortableContact;
use Friendica\Util\BasePath; use Friendica\Util\BasePath;
@ -18,7 +18,7 @@ use Friendica\Worker\Delivery;
require_once __DIR__ . '/../../../boot.php'; require_once __DIR__ . '/../../../boot.php';
class Site extends BaseAdminModule class Site extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -11,13 +11,13 @@ use Friendica\Database\DBA;
use Friendica\Database\DBStructure; use Friendica\Database\DBStructure;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\Register; use Friendica\Model\Register;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Network\HTTPException\InternalServerErrorException; use Friendica\Network\HTTPException\InternalServerErrorException;
use Friendica\Util\ConfigFileLoader; use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network; use Friendica\Util\Network;
class Summary extends BaseAdminModule class Summary extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -6,10 +6,10 @@ use Friendica\Content\Text\Markdown;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\Core\Theme; use Friendica\Core\Theme;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Details extends BaseAdminModule class Details extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -4,10 +4,10 @@ namespace Friendica\Module\Admin\Themes;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Embed extends BaseAdminModule class Embed extends BaseAdmin
{ {
public static function init(array $parameters = []) public static function init(array $parameters = [])
{ {

View file

@ -5,10 +5,10 @@ namespace Friendica\Module\Admin\Themes;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\Core\Theme; use Friendica\Core\Theme;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Index extends BaseAdminModule class Index extends BaseAdmin
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -4,9 +4,9 @@ namespace Friendica\Module\Admin;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
class Tos extends BaseAdminModule class Tos extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -8,11 +8,11 @@ use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\Register; use Friendica\Model\Register;
use Friendica\Model\User; use Friendica\Model\User;
use Friendica\Module\BaseAdminModule; use Friendica\Module\BaseAdmin;
use Friendica\Util\Strings; use Friendica\Util\Strings;
use Friendica\Util\Temporal; use Friendica\Util\Temporal;
class Users extends BaseAdminModule class Users extends BaseAdmin
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -21,7 +21,7 @@ require_once 'boot.php';
* *
* @package Friendica\Module * @package Friendica\Module
*/ */
abstract class BaseAdminModule extends BaseModule abstract class BaseAdmin extends BaseModule
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -17,7 +17,7 @@ use Friendica\Util\Proxy as ProxyUtils;
/** /**
* Base class for search modules * Base class for search modules
*/ */
class BaseSearchModule extends BaseModule class BaseSearch extends BaseModule
{ {
/** /**
* Performs a contact search with an optional prefix * Performs a contact search with an optional prefix

View file

@ -7,7 +7,7 @@ use Friendica\Content\Feature;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
class BaseSettingsModule extends BaseModule class BaseSettings extends BaseModule
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -4,14 +4,14 @@ namespace Friendica\Module\Search;
use Friendica\Content\Widget; use Friendica\Content\Widget;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseSearchModule; use Friendica\Module\BaseSearch;
use Friendica\Module\Security\Login; use Friendica\Module\Security\Login;
use Friendica\Util\Strings; use Friendica\Util\Strings;
/** /**
* Directory search module * Directory search module
*/ */
class Directory extends BaseSearchModule class Directory extends BaseSearch
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -15,11 +15,11 @@ use Friendica\DI;
use Friendica\Model\Contact; use Friendica\Model\Contact;
use Friendica\Model\Item; use Friendica\Model\Item;
use Friendica\Model\Term; use Friendica\Model\Term;
use Friendica\Module\BaseSearchModule; use Friendica\Module\BaseSearch;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Index extends BaseSearchModule class Index extends BaseSearch
{ {
public static function content(array $parameters = []) public static function content(array $parameters = [])
{ {

View file

@ -8,14 +8,14 @@ use Friendica\Core\Session;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\User; use Friendica\Model\User;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Util\Strings; use Friendica\Util\Strings;
/** /**
* Account delegation settings module * Account delegation settings module
*/ */
class Delegation extends BaseSettingsModule class Delegation extends BaseSettings
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -16,14 +16,14 @@ use Friendica\Model\GContact;
use Friendica\Model\Profile; use Friendica\Model\Profile;
use Friendica\Model\ProfileField; use Friendica\Model\ProfileField;
use Friendica\Model\User; use Friendica\Model\User;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Module\Security\Login; use Friendica\Module\Security\Login;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings; use Friendica\Util\Strings;
use Friendica\Util\Temporal; use Friendica\Util\Temporal;
class Index extends BaseSettingsModule class Index extends BaseSettings
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -9,10 +9,10 @@ use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\Contact; use Friendica\Model\Contact;
use Friendica\Model\Photo; use Friendica\Model\Photo;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
class Crop extends BaseSettingsModule class Crop extends BaseSettings
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -8,13 +8,13 @@ use Friendica\Core\Session;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\Contact; use Friendica\Model\Contact;
use Friendica\Model\Photo; use Friendica\Model\Photo;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Object\Image; use Friendica\Object\Image;
use Friendica\Util\Images; use Friendica\Util\Images;
use Friendica\Util\Strings; use Friendica\Util\Strings;
class Index extends BaseSettingsModule class Index extends BaseSettings
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -5,7 +5,7 @@ namespace Friendica\Module\Settings\TwoFactor;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\TwoFactor\AppSpecificPassword; use Friendica\Model\TwoFactor\AppSpecificPassword;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Module\Security\Login; use Friendica\Module\Security\Login;
/** /**
@ -13,7 +13,7 @@ use Friendica\Module\Security\Login;
* *
* @package Friendica\Module\TwoFactor * @package Friendica\Module\TwoFactor
*/ */
class AppSpecific extends BaseSettingsModule class AppSpecific extends BaseSettings
{ {
private static $appSpecificPassword = null; private static $appSpecificPassword = null;

View file

@ -8,11 +8,11 @@ use Friendica\DI;
use Friendica\Model\TwoFactor\AppSpecificPassword; use Friendica\Model\TwoFactor\AppSpecificPassword;
use Friendica\Model\TwoFactor\RecoveryCode; use Friendica\Model\TwoFactor\RecoveryCode;
use Friendica\Model\User; use Friendica\Model\User;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Module\Security\Login; use Friendica\Module\Security\Login;
use PragmaRX\Google2FA\Google2FA; use PragmaRX\Google2FA\Google2FA;
class Index extends BaseSettingsModule class Index extends BaseSettings
{ {
public static function post(array $parameters = []) public static function post(array $parameters = [])
{ {

View file

@ -5,7 +5,7 @@ namespace Friendica\Module\Settings\TwoFactor;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\TwoFactor\RecoveryCode; use Friendica\Model\TwoFactor\RecoveryCode;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Module\Security\Login; use Friendica\Module\Security\Login;
/** /**
@ -13,7 +13,7 @@ use Friendica\Module\Security\Login;
* *
* @package Friendica\Module\TwoFactor * @package Friendica\Module\TwoFactor
*/ */
class Recovery extends BaseSettingsModule class Recovery extends BaseSettings
{ {
public static function init(array $parameters = []) public static function init(array $parameters = [])
{ {

View file

@ -9,7 +9,7 @@ use BaconQrCode\Writer;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\Core\Session; use Friendica\Core\Session;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
use Friendica\Module\Security\Login; use Friendica\Module\Security\Login;
use PragmaRX\Google2FA\Google2FA; use PragmaRX\Google2FA\Google2FA;
@ -18,7 +18,7 @@ use PragmaRX\Google2FA\Google2FA;
* *
* @package Friendica\Module\TwoFactor\Settings * @package Friendica\Module\TwoFactor\Settings
*/ */
class Verify extends BaseSettingsModule class Verify extends BaseSettings
{ {
public static function init(array $parameters = []) public static function init(array $parameters = [])
{ {

View file

@ -11,12 +11,12 @@ use Friendica\Core\Renderer;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\Database\DBStructure; use Friendica\Database\DBStructure;
use Friendica\DI; use Friendica\DI;
use Friendica\Module\BaseSettingsModule; use Friendica\Module\BaseSettings;
/** /**
* Module to export user data * Module to export user data
**/ **/
class UserExport extends BaseSettingsModule class UserExport extends BaseSettings
{ {
/** /**
* Handle the request to export data. * Handle the request to export data.