public function appendCsv($data)
    {
        $counter    = 0;
        $rows       = str_getcsv($data, $this->_csvLineDelimiter);

        foreach ($rows as $row) {
            $rowData = str_getcsv(
                $row,
                $this->_csvDelimiter,
                $this->_csvEnclosure,
                $this->_csvEscape
            );

            $this->_putData($this->_integerKeyPrefix . $counter, $rowData);

            $counter++;
        }

        if ($this->_objectCreation) {
            return $this->_afterAppendDataToNewObject();
        }

        return $this;
    }
public function appendCsv($data)
    {
        $counter    = 0;
        $rows       = str_getcsv($data, $this->_csvLineDelimiter);

        foreach ($rows as $row) {
            $rowData = str_getcsv(
                $row,
                $this->_csvDelimiter,
                $this->_csvEnclosure,
                $this->_csvEscape
            );

            $this->_putData($this->_integerKeyPrefix . $counter, $rowData);

            $counter++;
        }

        if ($this->_objectCreation) {
            return $this->_afterAppendDataToNewObject();
        }

        return $this;
    }
public function appendCsv ( $ data ) { $ counter = 0 ; $ rows = str_getcsv ( $ data , $ this -> _csvLineDelimiter ) ; foreach ( $ rows as $ row ) { $ rowData = str_getcsv ( $ row , $ this -> _csvDelimiter , $ this -> _csvEnclosure , $ this -> _csvEscape ) ; $ this -> _putData ( $ this -> _integerKeyPrefix . $ counter , $ rowData ) ; $ counter ++ ; } if ( $ this -> _objectCreation ) { return $ this -> _afterAppendDataToNewObject ( ) ; } return $ this ; }
allow to set csv data into object

@param string $data
@return $this
allow to set csv data into object