Sunnysideup\EcommerceTrademe\Tasks\CreateTradeMeCsvTask
create CSV for TradeMe.
Synopsis
class CreateTradeMeCsvTask
extends BuildTask
{
- // constants
- const MAX_IMAGES = 7;
- // members
- protected array $fields = ;
- protected bool $enabled = true;
- protected string $title = 'Build CSV for trade me';
- protected string $description = 'Builds a CSV with all information required for trademe to create listings';
- protected bool $debug = false;
- protected integer $minImageWidth = 800;
- protected integer $minImageHeight = 600;
- protected boolean $verbose = true;
- protected string $html = '';
- private static $create_trademe_csv_task_class_name = self::class;
- // methods
- public static void my_link()
- public void setVerbose()
- public void getHtml()
- public void run()
- public void getBestImage()
- public void getBestImages()
- protected void getData()
- protected void getIDsOfProducts()
- protected void arrayToHtml()
- protected void output()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Constants
Name | Value |
---|---|
MAX_IMAGES | 7 |
Members
private
- $create_trademe_csv_task_class_name
protected
- $debug — Sunnysideup\EcommerceTrademe\Tasks\bool
- $description
- $enabled — Sunnysideup\EcommerceTrademe\Tasks\bool
- $fields
—
array
array of fields for TradeMe and their default values if no default value is set then you will have to set one in the method using a variable with the same name ... e.g. $sku. - $html
- $minImageHeight — int
- $minImageWidth — int
- $title
- $verbose
Methods
protected
- arrayToHtml()
- getData()
- getIDsOfProducts() — we use this method to pre-select products that are eligible: see WHERE statement for LOGIC.
- output()