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
Afficher le fichier Open project: burnbright/silverstripe-shop Class Usage Examples

Méthodes publiques

Свойство Type Description
$columnMap will be used in $duplicateChecks as well - they simply don't work.
$createnewproductgroups
$duplicateChecks
$hasStockImpl
$parentpageid
$relationCallbacks

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
processAll ( $filepath, $preview = false )

Method Details

imageByFilename() public méthode

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

processAll() protected méthode

protected processAll ( $filepath, $preview = false )

processRecord() public méthode

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

processVariation() public méthode

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

processVariation1() public méthode

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

processVariation2() public méthode

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

processVariation3() public méthode

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

processVariation4() public méthode

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

processVariation5() public méthode

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

processVariation6() public méthode

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

setContent() public méthode

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

setParent() public méthode

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

variationRow() public méthode

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