protected function csvFileRead($csvName) {
$buffer = file_get_contents($csvName);
//ファイルのエンコードチェック
$buf = mb_convert_encoding($buffer, "utf-8", "SJIS-win");
$tmp = tmpfile();
fwrite($tmp, $buf);
rewind($tmp);
$meta = stream_get_meta_data($tmp);
$csv = new SplFileObject($meta['uri']);
$csv->setFlags(SplFileObject::READ_CSV);
$recordList = array();
foreach ($csv as $line) {
$recordList[] = $line;
}
return $recordList;
}