function toRaw()
    {
        list($fields, $directory, $record_length, $base_address) = $this->_buildDirectory();
        $this->setLeaderLengths($record_length, $base_address);

        /**
         * Glue together all parts
         */
        return $this->getLeader().implode("", $directory).File_MARC::END_OF_FIELD.implode("", $fields).File_MARC::END_OF_RECORD;
    }
function toRaw()
    {
        list($fields, $directory, $record_length, $base_address) = $this->_buildDirectory();
        $this->setLeaderLengths($record_length, $base_address);

        /**
         * Glue together all parts
         */
        return $this->getLeader().implode("", $directory).File_MARC::END_OF_FIELD.implode("", $fields).File_MARC::END_OF_RECORD;
    }
function toRaw ( ) { list ( $ fields , $ directory , $ record_length , $ base_address ) = $ this -> _buildDirectory ( ) ; $ this -> setLeaderLengths ( $ record_length , $ base_address ) ; /**
         * Glue together all parts
         */ return $ this -> getLeader ( ) . implode ( "" , $ directory ) . File_MARC :: END_OF_FIELD . implode ( "" , $ fields ) . File_MARC :: END_OF_RECORD ; }
Return the record in raw MARC format.

If you have modified an existing MARC record or created a new MARC
record, use this method to save the record for use in other programs
that accept the MARC format -- for example, your integrated library
system.

<code>
// Example: Modify a record and save the output to a file
$record->deleteFields('650');

// Now that the record has no subject fields, save it to disk
fopen($file, '/home/dan/no_subject.mrc', 'w');
fwrite($file, $record->toRaw());
fclose($file);
</code>

@return string Raw MARC data
Return the record in raw MARC format .