public function initializeObject()
    {
        if (!isset($this->options['csvFilePath']) || !is_string($this->options['csvFilePath'])) {
            throw new InvalidArgumentException('Missing or invalid "csvFilePath" in preset part settings', 1429027715);
        }

        $this->csvFilePath = $this->options['csvFilePath'];
        if (!is_file($this->csvFilePath)) {
            throw new \Exception(sprintf('File "%s" not found', $this->csvFilePath), 1427882078);
        }

        if (isset($this->options['csvDelimiter'])) {
            $this->csvDelimiter = $this->options['csvDelimiter'];
        }

        if (isset($this->options['csvEnclosure'])) {
            $this->csvEnclosure = $this->options['csvEnclosure'];
        }

        $this->logger->log(sprintf('%s will read from "%s", using %s as delimiter and %s as enclosure character.', get_class($this), $this->csvFilePath, $this->csvDelimiter, $this->csvEnclosure), LOG_DEBUG);
    }
public function initializeObject()
    {
        if (!isset($this->options['csvFilePath']) || !is_string($this->options['csvFilePath'])) {
            throw new InvalidArgumentException('Missing or invalid "csvFilePath" in preset part settings', 1429027715);
        }

        $this->csvFilePath = $this->options['csvFilePath'];
        if (!is_file($this->csvFilePath)) {
            throw new \Exception(sprintf('File "%s" not found', $this->csvFilePath), 1427882078);
        }

        if (isset($this->options['csvDelimiter'])) {
            $this->csvDelimiter = $this->options['csvDelimiter'];
        }

        if (isset($this->options['csvEnclosure'])) {
            $this->csvEnclosure = $this->options['csvEnclosure'];
        }

        $this->logger->log(sprintf('%s will read from "%s", using %s as delimiter and %s as enclosure character.', get_class($this), $this->csvFilePath, $this->csvDelimiter, $this->csvEnclosure), LOG_DEBUG);
    }
public function initializeObject ( ) { if ( ! isset ( $ this -> options [ 'csvFilePath' ] ) || ! is_string ( $ this -> options [ 'csvFilePath' ] ) ) { throw new InvalidArgumentException ( 'Missing or invalid "csvFilePath" in preset part settings' , 1429027715 ) ; } $ this -> csvFilePath = $ this -> options [ 'csvFilePath' ] ; if ( ! is_file ( $ this -> csvFilePath ) ) { throw new \ Exception ( sprintf ( 'File "%s" not found' , $ this -> csvFilePath ) , 1427882078 ) ; } if ( isset ( $ this -> options [ 'csvDelimiter' ] ) ) { $ this -> csvDelimiter = $ this -> options [ 'csvDelimiter' ] ; } if ( isset ( $ this -> options [ 'csvEnclosure' ] ) ) { $ this -> csvEnclosure = $ this -> options [ 'csvEnclosure' ] ; } $ this -> logger -> log ( sprintf ( '%s will read from "%s", using %s as delimiter and %s as enclosure character.' , get_class ( $ this ) , $ this -> csvFilePath , $ this -> csvDelimiter , $ this -> csvEnclosure ) , LOG_DEBUG ) ; }
Initialize this data provider with the currently set options

@throws InvalidArgumentException
Initialize this data provider with the currently set options