public function add( $data )
	{
		$enclosure = $this->_enclosure;

		foreach( (array) $data as $key => $entry )
		{
			$entry = str_replace( $this->_lineend, $this->_endsubst, $entry );
			$data[$key] = $enclosure . str_replace( $enclosure, $this->_escape . $enclosure, $entry ) . $enclosure;
		}

		if( fwrite( $this->_fh, implode( $this->_separator, $data ) . $this->_lineend ) === false ) {
			throw new MW_Container_Exception( sprintf( 'Unable to add content to file "%1$s"', $this->getName() ) );
		}
	}
public function add( $data )
	{
		$enclosure = $this->_enclosure;

		foreach( (array) $data as $key => $entry )
		{
			$entry = str_replace( $this->_lineend, $this->_endsubst, $entry );
			$data[$key] = $enclosure . str_replace( $enclosure, $this->_escape . $enclosure, $entry ) . $enclosure;
		}

		if( fwrite( $this->_fh, implode( $this->_separator, $data ) . $this->_lineend ) === false ) {
			throw new MW_Container_Exception( sprintf( 'Unable to add content to file "%1$s"', $this->getName() ) );
		}
	}
public function add ( $ data ) { $ enclosure = $ this -> _enclosure ; foreach ( ( array ) $ data as $ key => $ entry ) { $ entry = str_replace ( $ this -> _lineend , $ this -> _endsubst , $ entry ) ; $ data [ $ key ] = $ enclosure . str_replace ( $ enclosure , $ this -> _escape . $ enclosure , $ entry ) . $ enclosure ; } if ( fwrite ( $ this -> _fh , implode ( $ this -> _separator , $ data ) . $ this -> _lineend ) === false ) { throw new MW_Container_Exception ( sprintf ( 'Unable to add content to file "%1$s"' , $ this -> getName ( ) ) ) ; } }
Adds row to the content object.

@param string[] $data Data to add
Adds row to the content object .