lib/bagit_manifest.php
public function write($fileName=null)
    {
        $this->_resetFileName($fileName);

        ksort($this->data);
        $output = array();

        foreach ($this->data as $path => $hash) {
            array_push($output, "$hash $path\n");
        }

        writeFileText(
            $this->fileName,
            $this->fileEncoding,
            implode('', $output)
        );
    }
public function write($fileName=null)
    {
        $this->_resetFileName($fileName);

        ksort($this->data);
        $output = array();

        foreach ($this->data as $path => $hash) {
            array_push($output, "$hash $path\n");
        }

        writeFileText(
            $this->fileName,
            $this->fileEncoding,
            implode('', $output)
        );
    }
public function write ( $ fileName = null ) { $ this -> _resetFileName ( $ fileName ) ; ksort ( $ this -> data ) ; $ output = array ( ) ; foreach ( $ this -> data as $ path => $ hash ) { array_push ( $ output , "$hash $path\n" ) ; } writeFileText ( $ this -> fileName , $ this -> fileEncoding , implode ( '' , $ output ) ) ; }
This writes the data to the manifest file.

@param string $fileName This is the file name to write to. It defaults
to the current value of the $fileName property. If given, it will set
the value of the property also.

@return void
This writes the data to the manifest file .