From 9ae3e4ebb6e9824a33e34b2be8c7d019680dd65e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 May 2017 01:09:57 +0200 Subject: [PATCH] Next wave: - imported Requestable where needed - created a lot more namespaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../class_HubConsoleAptProxyCommand.php | 6 ++ .../console/class_HubConsoleChatCommand.php | 6 ++ .../class_HubConsoleCrawlerCommand.php | 6 ++ .../class_HubConsoleCruncherCommand.php | 6 ++ .../console/class_HubConsoleMainCommand.php | 6 ++ .../console/class_HubConsoleMinerCommand.php | 6 ++ .../html/class_HubHtmlIndexCommand.php | 6 ++ .../class_HubConsoleAptProxyController.php | 1 + .../class_HubConsoleChatController.php | 1 + .../class_HubConsoleCrawlerController.php | 1 + .../class_HubConsoleCruncherController.php | 1 + .../class_HubConsoleDefaultNewsController.php | 1 + .../class_HubConsoleFuseController.php | 1 + .../class_HubConsoleMinerController.php | 1 + application/hub/classes/cruncher/class_ | 6 ++ .../class_NodeInformationDatabaseWrapper.php | 6 ++ .../class_PeerStateLookupDatabaseWrapper.php | 2 +- .../node/class_NodeObjectFactory.php | 6 ++ .../activation/node/class_NodeActivation | 6 ++ ...class_NodeActivationAnnouncementFilter.php | 6 ++ .../class_AptProxyInitializationFilter.php | 6 ++ .../class_AptProxyPhpRequirementsFilter.php | 6 ++ .../class_AptProxyWelcomeTeaserFilter.php | 6 ++ .../apt-proxy/class_AptProxyBootstrap | 6 ++ ...ProxyBootstrapExtraBootstrappingFilter.php | 6 ++ ...tProxyBootstrapGenericActivationFilter.php | 6 ++ .../filter/bootstrap/chat/class_ChatBootstrap | 6 ++ ..._ChatBootstrapExtraBootstrappingFilter.php | 6 ++ ...s_ChatBootstrapGenericActivationFilter.php | 6 ++ .../bootstrap/crawler/class_CrawlerBootstrap | 6 ++ ...awlerBootstrapExtraBootstrappingFilter.php | 6 ++ ...rawlerBootstrapGenericActivationFilter.php | 6 ++ .../cruncher/class_CruncherBootstrap | 6 ++ ...rBootstrapBufferQueueInitializerFilter.php | 6 ++ ...ncherBootstrapExtraBootstrappingFilter.php | 6 ++ ...uncherBootstrapGenericActivationFilter.php | 6 ++ .../bootstrap/miner/class_MinerBootstrap | 6 ++ ...rBootstrapBufferQueueInitializerFilter.php | 6 ++ ...MinerBootstrapExtraBootstrappingFilter.php | 6 ++ ..._MinerBootstrapGenericActivationFilter.php | 6 ++ .../filter/bootstrap/node/class_NodeBootstrap | 6 ++ ..._NodeBootstrapExtraBootstrappingFilter.php | 6 ++ ...lass_NodeBootstrapGenerateNodeIdFilter.php | 6 ++ ..._NodeBootstrapGeneratePrivateKeyFilter.php | 6 ++ ...s_NodeBootstrapGenerateSessionIdFilter.php | 6 ++ .../class_NodeBootstrapListenerPoolFilter.php | 6 ++ .../hub/classes/filter/chat/class_Chat | 69 +++++++++++++++++++ .../chat/class_ChatInitializationFilter.php | 6 ++ .../chat/class_ChatPhpRequirementsFilter.php | 6 ++ .../chat/class_ChatWelcomeTeaserFilter.php | 6 ++ application/hub/classes/filter/class_ | 6 ++ .../class_CrawlerInitializationFilter.php | 6 ++ .../class_CrawlerPhpRequirementsFilter.php | 6 ++ .../class_CrawlerWelcomeTeaserFilter.php | 6 ++ .../classes/filter/cruncher/class_Cruncher | 6 ++ .../class_CruncherInitializationFilter.php | 6 ++ .../class_CruncherPhpRequirementsFilter.php | 6 ++ .../class_CruncherWelcomeTeaserFilter.php | 6 ++ .../hub/classes/filter/miner/class_Miner | 6 ++ .../miner/class_MinerInitializationFilter.php | 6 ++ .../class_MinerPhpRequirementsFilter.php | 6 ++ .../miner/class_MinerWelcomeTeaserFilter.php | 6 ++ .../hub/classes/filter/node/class_Node | 6 ++ .../node/class_NodeInitializationFilter.php | 6 ++ .../node/class_NodePhpRequirementsFilter.php | 6 ++ .../node/class_NodeWelcomeTeaserFilter.php | 6 ++ .../class_AptProxyShutdownFilter.php | 6 ++ .../chat/class_ChatShutdownFilter.php | 6 ++ .../crawler/class_CrawlerShutdownFilter.php | 6 ++ .../cruncher/class_CruncherShutdownFilter.php | 6 ++ .../miner/class_MinerShutdownFilter.php | 6 ++ .../filter/shutdown/node/class_NodeShutdown | 6 ++ .../class_NodeShutdownFlushNodeListFilter.php | 6 ++ .../node/class_NodeShutdownNodeFilter.php | 6 ++ .../class_NodeShutdownTaskHandlerFilter.php | 6 ++ ...ass_PackageAnnouncementAnswerTagFilter.php | 6 ++ ...ass_PackageDhtBootstrapAnswerTagFilter.php | 6 ++ ..._PackageRequestNodeListAnswerTagFilter.php | 6 ++ .../class_PackageAnnouncementTagFilter.php | 6 ++ .../class_PackageDhtBootstrapTagFilter.php | 6 ++ .../class_PackageRequestNodeListTagFilter.php | 6 ++ .../class_PackageSelfConnectTagFilter.php | 6 ++ ...s_AptProxyTaskHandlerInitializerFilter.php | 6 ++ ...class_ChatTaskHandlerInitializerFilter.php | 6 ++ ...ss_CrawlerTaskHandlerInitializerFilter.php | 6 ++ ...s_CruncherTaskHandlerInitializerFilter.php | 6 ++ ...lass_MinerTaskHandlerInitializerFilter.php | 6 ++ ...class_NodeTaskHandlerInitializerFilter.php | 6 ++ application/hub/classes/miner/class_ | 6 ++ .../classes/nodes/boot/class_HubBootNode.php | 6 ++ application/hub/classes/nodes/class_ | 6 ++ .../hub/classes/nodes/class_BaseHubNode.php | 2 + .../classes/nodes/list/class_HubListNode.php | 6 ++ .../nodes/master/class_HubMasterNode.php | 6 ++ .../nodes/regular/class_HubRegularNode.php | 6 ++ .../frontend/class_NodeInformationWrapper.php | 6 ++ .../helper/nodes/class_NodeHelper.php | 6 ++ 97 files changed, 601 insertions(+), 1 deletion(-) create mode 100644 application/hub/classes/filter/chat/class_Chat diff --git a/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php b/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php index 69d47c487..d1dab89e9 100644 --- a/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php @@ -1,4 +1,10 @@ + * @version 0.0.0 + * @copyright Copyright (c) 2011 - 2014 Cruncher Developer Team + * @license GNU GPL 3.0 or any newer version + * @link http://www.ship-simu.org + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +class Cruncher???Filter extends BaseCruncherFilter implements Filterable { + /** + * Protected constructor + * + * @return void + */ + protected function __construct () { + // Call parent constructor + parent::__construct(__CLASS__); + } + + /** + * Creates an instance of this filter class + * + * @return $filterInstance An instance of this filter class + */ + public final static function createCruncher???Filter () { + // Get a new instance + $filterInstance = new Cruncher???Filter(); + + // Return the instance + return $filterInstance; + } + + /** + * Executes the filter with given request and response objects + * + * @param $requestInstance An instance of a class with an Requestable interface + * @param $responseInstance An instance of a class with an Responseable interface + * @return void + * @todo 0% done + */ + public function execute (Requestable $requestInstance, Responseable $responseInstance) { + // Implement this! + $this->partialStub('Please implement this method.'); + } +} + +// [EOF] +?> diff --git a/application/hub/classes/filter/chat/class_ChatInitializationFilter.php b/application/hub/classes/filter/chat/class_ChatInitializationFilter.php index e47efbbc8..b09c272dc 100644 --- a/application/hub/classes/filter/chat/class_ChatInitializationFilter.php +++ b/application/hub/classes/filter/chat/class_ChatInitializationFilter.php @@ -1,4 +1,10 @@