\ImportTaskBasics
allows the creation of records from a CSV data should be formatted in CSV like this:
NAME (name of )
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
you can use ANY fields you like... this is just an example
Synopsis
class ImportTaskBasics
extends BuildTask
{
- // members
- protected string $title = "Extend this class";
- protected string $description = " Extend this class ... ";
- protected String $fileLocation;
- protected String $csvSeparator = ",";
- protected Boolean $enabled = false;
- protected Boolean $debug = true;
- protected static array $characters_to_replace = ;
- protected Array $csv = ;
- // methods
- public void getDescription()
- public void RunFromCode()
- public void run()
- protected void readFile()
- protected abstract void createRecords()
- protected abstract void deleteRecords()
- protected void outputToScreen()
- public void Link()
- protected void DebugOutput()
Hierarchy
Extends
- BuildTask
Members
protected
Methods
protected
- DebugOutput()
- createRecords() — created the records
- deleteRecords() — delete the records
- outputToScreen()
- readFile()