XD\Shopify\Task\Import
Class Import
- Author: Bram de Leeuw
Synopsis
class Import
extends BuildTask
{
- // constants
- const NOTICE = 0;
- const SUCCESS = 1;
- const WARN = 2;
- const ERROR = 3;
- // members
- protected string $title = 'Import shopify products';
- protected string $description = 'Import shopify products from the configured store';
- protected boolean $enabled = true;
- // methods
- public void run()
- public array getProductListingIds()
- public void importProducts()
- public void importCollections()
- public void importCollects()
- public void beforeImportCollects()
- public void afterImportCollects()
- private null|Product|ProductVariant|Image importObject()
- public static void loop_map()
- protected static void log()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Tasks
Line | Task |
---|---|
53 | migrate to |
Constants
Name | Value |
---|---|
NOTICE | 0 |
SUCCESS | 1 |
WARN | 2 |
ERROR | 3 |
Members
protected
- $description
- $enabled
- $title
Methods
private
- importObject() — Import the base product
protected
- log() — Log messages to the console or cron log
public
- afterImportCollects()
- beforeImportCollects()
- getProductListingIds() — Get an array of available product ids
- importCollections() — Import the SHopify Collections
- importCollects() — Import the Shopify Collects
- importProducts() — Import the shopify products
- loop_map() — Loop the given data map and possible sub maps
- run()