PHP 클래스 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
상속: extends CsvBulkLoader
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$columnMap will be used in $duplicateChecks as well - they simply don't work.
$createnewproductgroups
$duplicateChecks
$hasStockImpl
$parentpageid
$relationCallbacks

공개 메소드들

메소드 설명
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 )

보호된 메소드들

메소드 설명
processAll ( $filepath, $preview = false )

메소드 상세

imageByFilename() 공개 메소드

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

processAll() 보호된 메소드

protected processAll ( $filepath, $preview = false )

processRecord() 공개 메소드

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

processVariation() 공개 메소드

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

processVariation1() 공개 메소드

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

processVariation2() 공개 메소드

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

processVariation3() 공개 메소드

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

processVariation4() 공개 메소드

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

processVariation5() 공개 메소드

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

processVariation6() 공개 메소드

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

setContent() 공개 메소드

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

setParent() 공개 메소드

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

variationRow() 공개 메소드

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

프로퍼티 상세

$columnMap 공개적으로 프로퍼티

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

$createnewproductgroups 공개적으로 정적으로 프로퍼티

public static $createnewproductgroups

$duplicateChecks 공개적으로 프로퍼티

public $duplicateChecks

$hasStockImpl 공개적으로 정적으로 프로퍼티

public static $hasStockImpl

$parentpageid 공개적으로 정적으로 프로퍼티

public static $parentpageid

$relationCallbacks 공개적으로 프로퍼티

public $relationCallbacks