$assemblerInstance->setStackInstance($stackInstance);
// Return the prepared instance
+ //* DEBUG-DIE: */ die(sprintf('[%s:%d]: assemblerInstance=%s', __METHOD__, __LINE__, print_r($assemblerInstance, TRUE)));
return $assemblerInstance;
}
* forget to expand this array as well when you want to add another
* column to the CSV file.
*/
- $csvArray = array(
+ $csvArray = [
self::CRAWL_JOB_ARRAY_START_URL => $csvData[0],
self::CRAWL_JOB_ARRAY_DEPTH => $csvData[1],
self::CRAWL_JOB_ARRAY_EXTERNAL_DEPTH => $csvData[2]
- );
+ ];
// Then add more data to it
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: csvArray()=' . count($csvArray) . ' - BEFORE!');
* @throws NullPointerException If lastCsvFileInstance is not set
*/
private function addCsvFile () {
- // Trace message
- /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: CALLED!');
-
// Is the instance set?
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: CALLED!');
if (is_null($this->lastCsvFileInstance)) {
// This should not happen
throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
return;
}
- // Debug message
- /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: this->lastCsvFileInstance=' . $this->lastCsvFileInstance);
-
// Stack this file
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: this->lastCsvFileInstance=' . $this->lastCsvFileInstance);
$this->getStackSourceInstance()->pushNamed(self::STACK_NAME_CSV_FILE, $this->lastCsvFileInstance);
// ... and mark it as "imported"