/** * Initialises this method for exporting * * @param ISC_ADMIN_EXPORTFILETYPE The file to export data from * @param int The template to be used when exporting data * @param string A WHERE clause to query data for export * @param int The vendor to restrict data to */ public function Init(ISC_ADMIN_EXPORTFILETYPE $filetype, $templateid, $where, $vendorid) { // initialise the file type $filetype->Init($this, $templateid, $where, $vendorid); // set the type name $details = $filetype->GetTypeDetails(); $name = $details['name']; if (substr($name, -1, 1) == "s") { $name = substr($name, 0, -1); } $this->type_name = $name; $this->filetype = $filetype; // load settings for this method $settings = $this->GetSettings($templateid); foreach ($settings as $var => $setting) { $this->settings[$var] = $setting['value']; } }
public function __construct() { $timezoneAdjustment = GetConfig('StoreTimeZone'); if(GetConfig('StoreDSTCorrection')) { ++$timezoneAdjustment; } $timezoneAdjustment *= 3600; $this->dateField = "DATE_FORMAT(FROM_UNIXTIME(orddate+".$timezoneAdjustment."), '%Y-%m-%d')"; $this->taxDateFormat = GetConfig('ExportDateFormat'); parent::__construct(); }
public function __construct() { parent::__construct(); }