Eccube\Service\CsvExportService::exportHeader PHP Method

exportHeader() public method

このメソッドを使う場合は, 事前にinitCsvType($CsvType)で初期化しておく必要がある.
public exportHeader ( )
    public function exportHeader()
    {
        if (is_null($this->CsvType) || is_null($this->Csvs)) {
            throw new \LogicException('init csv type incomplete.');
        }
        $row = array();
        foreach ($this->Csvs as $Csv) {
            $row[] = $Csv->getDispName();
        }
        $this->fopen();
        $this->fputcsv($row);
        $this->fclose();
    }