\ImportStockistsTask
allows the creation of stockists from a CSV data should be formatted in CSV like this:
NAME (name of stockist)
COUNTRY - New Zealand
COUNTRYCODE - e.g. NZ, AU, US
TYPE (retailler / agent)
CITY - e.g. Amsterdam
WEB - e.g. http://www.mysite.co.nz
EMAIL
PHONE e.g. +31 33323321
ADDRESS
PHYSICAL (YES / NO)
ONLINE (YES / NO)
Synopsis
class ImportStockistsTask
extends BuildTask
{
- // members
- protected string $title = "Import all the stockists and link countries";
- protected string $description = " Does not delete any record, it only updates and adds. ";
- protected String $fileLocation = "_dev/_data/stockists.csv";
- protected String $csvSeparator = ",";
- protected Boolean $debug = true;
- protected Array $csv = ;
- // methods
- public void getDescription()
- public void run()
- protected void readFile()
- protected void createStockists()
- protected void deleteAll()
Hierarchy
Extends
- BuildTask