PHP Class ProductBulkLoader, silvershop-core

Images should be uploaded before import, where the Photo/Image field corresponds to the filename of a file that was uploaded. Variations can be specified in a "Variation" column this format: Type:value,value,value eg: Color: red, green, blue , yellow up to 6 other variation columns can be specified by adding a number to the end, eg Variation2,$Variation3
Inheritance: extends CsvBulkLoader
Exibir arquivo Open project: burnbright/silverstripe-shop Class Usage Examples

Public Properties

Property Type Description
$columnMap will be used in $duplicateChecks as well - they simply don't work.
$createnewproductgroups
$duplicateChecks
$hasStockImpl
$parentpageid
$relationCallbacks

Public Methods

Method Description
imageByFilename ( &$obj, $val, $record ) set image, based on filename
processRecord ( $record, $columnMap, &$results, $preview = false )
processVariation ( &$obj, $val, $record )
processVariation1 ( &$obj, $val, $record ) work around until I can figure out how to allow calling processVariation multiple times
processVariation2 ( &$obj, $val, $record )
processVariation3 ( &$obj, $val, $record )
processVariation4 ( &$obj, $val, $record )
processVariation5 ( &$obj, $val, $record )
processVariation6 ( &$obj, $val, $record )
setContent ( &$obj, $val, $record ) Adds paragraphs to content.
setParent ( &$obj, $val, $record ) find product group parent (ie Cateogry)
variationRow ( &$obj, $val, $record )

Protected Methods

Method Description
processAll ( $filepath, $preview = false )

Method Details

imageByFilename() public method

set image, based on filename
public imageByFilename ( &$obj, $val, $record )

processAll() protected method

protected processAll ( $filepath, $preview = false )

processRecord() public method

public processRecord ( $record, $columnMap, &$results, $preview = false )

processVariation() public method

public processVariation ( &$obj, $val, $record )

processVariation1() public method

work around until I can figure out how to allow calling processVariation multiple times
public processVariation1 ( &$obj, $val, $record )

processVariation2() public method

public processVariation2 ( &$obj, $val, $record )

processVariation3() public method

public processVariation3 ( &$obj, $val, $record )

processVariation4() public method

public processVariation4 ( &$obj, $val, $record )

processVariation5() public method

public processVariation5 ( &$obj, $val, $record )

processVariation6() public method

public processVariation6 ( &$obj, $val, $record )

setContent() public method

Adds paragraphs to content.
public setContent ( &$obj, $val, $record )

setParent() public method

find product group parent (ie Cateogry)
public setParent ( &$obj, $val, $record )

variationRow() public method

public variationRow ( &$obj, $val, $record )

Property Details

$columnMap public_oe property

will be used in $duplicateChecks as well - they simply don't work.
public $columnMap

$createnewproductgroups public_oe static_oe property

public static $createnewproductgroups

$duplicateChecks public_oe property

public $duplicateChecks

$hasStockImpl public_oe static_oe property

public static $hasStockImpl

$parentpageid public_oe static_oe property

public static $parentpageid

$relationCallbacks public_oe property

public $relationCallbacks