From c6d1d880b6ee6289f5cdedc7b3eefdc1ae92cda2 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 7 Dec 2014 23:20:01 +0100 Subject: [PATCH 1/1] Continued: - Fixed name for getter - Added commented-out debug lines - Updated to latest 'core' Signed-off-by: Roland Haeder --- .../main/source/urls/class_CrawlerUploadedListUrlSource.php | 6 +++++- core | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/application/hub/main/source/urls/class_CrawlerUploadedListUrlSource.php b/application/hub/main/source/urls/class_CrawlerUploadedListUrlSource.php index dd2a84ead..ec77631f0 100644 --- a/application/hub/main/source/urls/class_CrawlerUploadedListUrlSource.php +++ b/application/hub/main/source/urls/class_CrawlerUploadedListUrlSource.php @@ -94,6 +94,8 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R * @return $isFound Whether a CSV file is found */ private function isCsvFileFound () { + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRAWLER-SOURCE [' . __METHOD__ . ':' . __LINE__ . ']: CALLED!'); + // Is the instance valid? if (!$this->getDirectoryInstance()->getDirectoryIteratorInstance()->valid()) { // Then rewind it @@ -101,6 +103,7 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R } // END - if // Read next entry + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRAWLER-SOURCE [' . __METHOD__ . ':' . __LINE__ . ']: this->csvFileImported=' . print_r($this->csvFileImported, TRUE)); $directoryEntry = $this->getDirectoryInstance()->readDirectoryExcept(array_merge(array('.htaccess', '.', '..'), $this->csvFileImported)); // The read entry has not to be empty and extension must be '.csv' @@ -113,6 +116,7 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R $this->lastCsvFileInstance = ObjectFactory::createObjectByConfiguredName('csv_file_class', array($this->csvFilePath . '/' . $directoryEntry)); // Found an entry + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRAWLER-SOURCE [' . __METHOD__ . ':' . __LINE__ . ']: EXIT!'); return TRUE; } @@ -148,7 +152,7 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R * * @return $stackSourceInstance An instance of an additional stack */ - public final function stackSourceInstance () { + public final function getStackSourceInstance () { return $this->stackSourceInstance; } diff --git a/core b/core index c8ea0af3f..3333662bc 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit c8ea0af3f3bfe092c38f0864d689a82172af19c0 +Subproject commit 3333662bc8456250b12127c35a9365b403c1f40a -- 2.39.2