From ecebada1e4a3c09b529e9dd30793286ad621a000 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 7 Nov 2020 17:26:45 +0100 Subject: [PATCH] Continued: - $directoryInstanced added from monolithic BaseFrameworkSystem class - updated core framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../class_CrawlerUploadedListUrlSource.php | 43 +++++++++++++++---- core | 2 +- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/application/hub/classes/source/urls/class_CrawlerUploadedListUrlSource.php b/application/hub/classes/source/urls/class_CrawlerUploadedListUrlSource.php index 764288f4d..2b56d7ab2 100644 --- a/application/hub/classes/source/urls/class_CrawlerUploadedListUrlSource.php +++ b/application/hub/classes/source/urls/class_CrawlerUploadedListUrlSource.php @@ -9,6 +9,7 @@ use Org\Shipsimu\Hub\Crawler\Source\Url\UrlSource; // Import framework stuff use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap; use Org\Mxchange\CoreFramework\Factory\ObjectFactory; +use Org\Mxchange\CoreFramework\Filesystem\FrameworkDirectory; use Org\Mxchange\CoreFramework\Generic\NullPointerException; use Org\Mxchange\CoreFramework\Registry\Registerable; @@ -82,6 +83,11 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R */ private $columnSeparator = ''; + /** + * A FrameworkDirectory instance + */ + private $directoryInstance = NULL; + /** * Protected constructor * @@ -122,6 +128,34 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: Finished contructing object.'); } + /** + * Getter for stackSourceInstance variable + * + * @return $stackSourceInstance An instance of an additional stack + */ + public final function getStackSourceInstance () { + return $this->stackSourceInstance; + } + + /** + * Setter for FrameworkDirectory instance + * + * @param $directoryInstance A FrameworkDirectory instance + * @return void + */ + protected final function setDirectoryInstance (FrameworkDirectory $directoryInstance) { + $this->directoryInstance = $directoryInstance; + } + + /** + * Getter for FrameworkDirectory instance + * + * @return $directoryInstance A FrameworkDirectory instance + */ + protected final function getDirectoryInstance () { + return $this->directoryInstance; + } + /** * Checks whether a CSV file is found in configured path * @@ -355,15 +389,6 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: EXIT!'); } - /** - * Getter for stackSourceInstance variable - * - * @return $stackSourceInstance An instance of an additional stack - */ - public final function getStackSourceInstance () { - return $this->stackSourceInstance; - } - /** * Fills the URL stack with new entries from source * diff --git a/core b/core index 513812814..3b182d163 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 513812814a5a17022d414727e5a4c6d0823fe5f6 +Subproject commit 3b182d1633e936618e118773da67fa41b24a6109 -- 2.39.5