public function getDocument($raw = FALSE) {
        if (isset($this->doc)) {
            if ($raw) {
                return $this->doc;
            }
            try {
                return base64_decode($this->doc);
            } catch (Exception $ex) {
                $this->log('Failed to convert transport document file, file might be corrupt: '.
                        $ex->getMessage(), 'Urgent');
            }
        }
        return false;
    }
public function getDocument($raw = FALSE) {
        if (isset($this->doc)) {
            if ($raw) {
                return $this->doc;
            }
            try {
                return base64_decode($this->doc);
            } catch (Exception $ex) {
                $this->log('Failed to convert transport document file, file might be corrupt: '.
                        $ex->getMessage(), 'Urgent');
            }
        }
        return false;
    }
public function getDocument ( $ raw = FALSE ) { if ( isset ( $ this -> doc ) ) { if ( $ raw ) { return $ this -> doc ; } try { return base64_decode ( $ this -> doc ) ; } catch ( Exception $ ex ) { $ this -> log ( 'Failed to convert transport document file, file might be corrupt: ' . $ ex -> getMessage ( ) , 'Urgent' ) ; } } return false ; }
Returns the file contents for the transport document.

The contents of the document depends on which action was used to retrieve the document.
This method will return <b>FALSE</b> if the file has not been fetched yet.
@param boolean $raw [optional] <p>Set to TRUE to get the raw, base64-encoded file contents.</p>
@return string|boolean file contents, encoded file, or <b>FALSE</b> if file not fetched yet
Returns the file contents for the transport document .