]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2020 16:26:45 +0000 (17:26 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2020 16:26:45 +0000 (17:26 +0100)
- $directoryInstanced added from monolithic BaseFrameworkSystem class
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/source/urls/class_CrawlerUploadedListUrlSource.php
core

index 764288f4d2a931d7f9265984f63f1593fb97f71e..2b56d7ab2a53d6b5b9d66bb4b2fa2a51eb1465ab 100644 (file)
@@ -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 513812814a5a17022d414727e5a4c6d0823fe5f6..3b182d1633e936618e118773da67fa41b24a6109 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 513812814a5a17022d414727e5a4c6d0823fe5f6
+Subproject commit 3b182d1633e936618e118773da67fa41b24a6109