function _parseFromData($data) { if ($this->importType == "sugarcrm") { $this->importType = "csv"; $switchedFrom = "sugarcrm"; } //end if $thereturn = parent::_parseFromData($data); if (isset($switchedFrom)) { $this->importType = $switchedFrom; } return $thereturn; }