src/Adapter/Csv/ExportConfigFactory.php
/**
     * Factory method to create a new export configuration instance.
     *
     * @return \Goodby\CSV\Export\Standard\ExporterConfig The export configuration
     */
Factory method to create a new export configuration instance.
Factory method to create a new export configuration instance .
public function createExportConfig()
    {
        $config = new ExporterConfig();
        if ($delimiter = $this->configuration->getDelimiter()) {
            $config->setDelimiter($delimiter);
        }
        if ($escape = $this->configuration->getEscape()) {
            $config->setEscape($escape);
        }
        if ($enclosure = $this->configuration->getEnclosure()) {
            $config->setEnclosure($enclosure);
        }
        if ($fromCharset = $this->configuration->getFromCharset()) {
            $config->setFromCharset($fromCharset);
        }
        if ($toCharset = $this->configuration->getToCharset()) {
            $config->setToCharset($toCharset);
        }
        if ($fileMode = $this->configuration->getFileMode()) {
            $config->setFileMode($fileMode);
        }
        return $config;
    }
public function createExportConfig ( ) { $ config = new ExporterConfig ( ) ; if ( $ delimiter = $ this -> configuration -> getDelimiter ( ) ) { $ config -> setDelimiter ( $ delimiter ) ; } if ( $ escape = $ this -> configuration -> getEscape ( ) ) { $ config -> setEscape ( $ escape ) ; } if ( $ enclosure = $ this -> configuration -> getEnclosure ( ) ) { $ config -> setEnclosure ( $ enclosure ) ; } if ( $ fromCharset = $ this -> configuration -> getFromCharset ( ) ) { $ config -> setFromCharset ( $ fromCharset ) ; } if ( $ toCharset = $ this -> configuration -> getToCharset ( ) ) { $ config -> setToCharset ( $ toCharset ) ; } if ( $ fileMode = $ this -> configuration -> getFileMode ( ) ) { $ config -> setFileMode ( $ fileMode ) ; } return $ config ; }
Factory method to create a new export configuration instance.
Factory method to create a new export configuration instance .
// initialize the lexer configuration // query whether or not a delimiter character has been configured // query whether or not a custom escape character has been configured // query whether or not a custom enclosure character has been configured // query whether or not a custom source charset has been configured // query whether or not a custom target charset has been configured // query whether or not a custom file mode has been configured // return the lexer configuration