From: Roland Häder Date: Sat, 7 Nov 2020 16:26:45 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ecebada1e4a3c09b529e9dd30793286ad621a000;p=hub.git Continued: - $directoryInstanced added from monolithic BaseFrameworkSystem class - updated core framework Signed-off-by: Roland Häder --- 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