]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceUploadedListTask.php
Updated 'core'.
[hub.git] / application / hub / main / tasks / crawler / url_source / class_CrawlerUrlSourceUploadedListTask.php
index d8092485866c1219898e8448d4bcc373a36833f1..0b6b89176dee6d293ef9519dc865f70913dbfe3c 100644 (file)
@@ -63,8 +63,30 @@ class CrawlerUrlSourceUploadedListTask extends BaseUrlSourceTask implements Task
         * @return      void
         */
        public function executeTask () {
-               // Get the URL source instance and announce us
-               $this->getSourceInstance()->fillUrlStack();
+               // Get source instance
+               $sourceInstance = $this->getUrlSourceInstance();
+
+               // Is it not set?
+               if (is_null($sourceInstance)) {
+                       // Initialize it
+                       $this->initUrlSourceTask();
+
+                       // And re-get it
+                       $sourceInstance = $this->getUrlSourceInstance();
+               } // END - if
+
+               // Get the URL source instance and fill the stack with crawl entries
+               $sourceInstance->fillUrlStack();
+       }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
        }
 }