PHP Class ShopMigrationTask, silvershop-core

Inheritance: extends MigrationTask
Mostrar archivo Open project: burnbright/silverstripe-shop

Public Properties

Property Type Description
$batch_size Choose how many orders get processed at a time.

Protected Properties

Property Type Description
$description
$title

Public Methods

Method Description
migrate ( Order $order ) Perform migration scripts on a single order.
migrateMemberFields ( $order ) Customer and shipping details have been added to Order, so that memberless (guest) orders can be placed.
migrateOrderCalculation ( $order ) Performs calculation function on un-calculated orders.
migrateOrders ( ) batch process orders
migrateProductImages ( ) Rename all Product_Image ClassNames to Image Added in v1.0
migrateProductPrice ( )
migrateProductVariationsAttribues ( )
migrateShippingTaxValues ( )
migrateShippingValues ( $order ) Convert shipping and tax columns into modifiers
migrateStatuses ( $order ) Migrate old statuses
up ( ) Migrate upwards

Method Details

migrate() public method

Perform migration scripts on a single order.
public migrate ( Order $order )
$order Order

migrateMemberFields() public method

Customer and shipping details have been added to Order, so that memberless (guest) orders can be placed.
public migrateMemberFields ( $order )

migrateOrderCalculation() public method

Performs calculation function on un-calculated orders.
public migrateOrderCalculation ( $order )

migrateOrders() public method

batch process orders
public migrateOrders ( )

migrateProductImages() public method

Rename all Product_Image ClassNames to Image Added in v1.0

migrateProductPrice() public method

public migrateProductPrice ( )

migrateProductVariationsAttribues() public method

migrateShippingTaxValues() public method

migrateShippingValues() public method

Applies to pre 0.6 sites
public migrateShippingValues ( $order )

migrateStatuses() public method

Migrate old statuses
public migrateStatuses ( $order )

up() public method

Migrate upwards
public up ( )

Property Details

$batch_size public_oe static_oe property

Choose how many orders get processed at a time.
public static $batch_size

$description protected_oe property

protected $description

$title protected_oe property

protected $title