\App\Jobs\RecommendationImportJobsImportNBOProductSourceDataJob

Class ImportNBOProductSourceDataJob - Import of csv data for NBO: "Next Best Offer"

Summary

Methods
Properties
Constants
__construct()
handle()
findFilesToBeImported()
getDirContent()
getExternalCrossSellingModels()
getFileTime()
No public properties found
FIELDS_PER_LINE_IN_CSV
FIELD_INDEX_CUSTOMER_ID
FIELD_INDEX_SCORE
MAX_NUMBER_OF_ENTRIES_PER_DB_QUERY
FILENAME_PREFIX
TIME_TO_FILTER_OUT
No protected methods found
No protected properties found
N/A
filterOutAlreadyImportedFiles()
importFile()
importBlockWise()
$changedRow
$nboProductScoreDataRepository
$path
$filesToBeImported
N/A

Constants

FIELDS_PER_LINE_IN_CSV

FIELDS_PER_LINE_IN_CSV = 7
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

For manual import run in cmd: php artisan import:nbo

FIELD_INDEX_CUSTOMER_ID

FIELD_INDEX_CUSTOMER_ID = 0
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

FIELD_INDEX_SCORE

FIELD_INDEX_SCORE = 3
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

MAX_NUMBER_OF_ENTRIES_PER_DB_QUERY

MAX_NUMBER_OF_ENTRIES_PER_DB_QUERY = 10000
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

FILENAME_PREFIX

FILENAME_PREFIX = "UsecaseNBO_"
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

TIME_TO_FILTER_OUT

TIME_TO_FILTER_OUT = 3600 * 24
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Properties

$changedRow

$changedRow
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
 : 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
int

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Type

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 int

$nboProductScoreDataRepository

$nboProductScoreDataRepository
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
 : 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\App\Repositories\write\NBOProductScoreDataRepository

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Type

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \App\Repositories\write\NBOProductScoreDataRepository

$path

$path
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
 : 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Type

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

$filesToBeImported

$filesToBeImported
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
 : 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
array

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Type

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 array

Methods

__construct()

__construct() 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: mixed

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Returns

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 mixed —

handle()

handle() 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: void

Throws

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \Exception
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

findFilesToBeImported()

findFilesToBeImported() 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: void

this function is set public: for debug in tinker

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

getDirContent()

getDirContent() 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: array

this function is set public: for debug in tinker

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Returns

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 array —

getExternalCrossSellingModels()

getExternalCrossSellingModels() 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: \Illuminate\Database\Eloquent\Collection<int,\App\Models\Pw\ExternalCrossSellingModel>

this function is set public: for debug in tinker

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Returns

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 \Illuminate\Database\Eloquent\Collection

getFileTime()

getFileTime(
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string  $filename) 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: int

Parameters

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string $filename
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Returns

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 int —

filterOutAlreadyImportedFiles()

filterOutAlreadyImportedFiles() 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: void

This function assumes that the job was run an hour ago. So it does filter out files older than 1h.

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

importFile()

importFile(
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
array  $fileData) 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: void

Parameters

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 array $fileData
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

importBlockWise()

importBlockWise(
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed  $fileHandle, 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
array  $fileData) 
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: bool

Parameters

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 mixed $fileHandle
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 array $fileData
Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Returns

Deprecated: Please use getType in phar:///usr/local/bin/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool —