src/snac/server/database/DBUser.php
/**
     * Write Message
     *
     * Writes a message into the system.  This is effectively sending a message.
     *
     * @param  \snac\data\Message $message Message to write
     * @return boolean          True if sent successfully, false otherwise
     */
Write Message
Writes a message into the system.  This is effectively sending a message.

@param  \snac\data\Message $message Message to write
@return boolean          True if sent successfully, false otherwise
Write Message Writes a message into the system . This is effectively sending a message . @param \ snac \ data \ Message $message Message to write @return boolean True if sent successfully false otherwise
public function writeMessage($message) {
        $fromUser = null;
        if ($message->getFromUser() !== null)
            $fromUser = $message->getFromUser()->getUserID();
        return $this->sql->insertMessage($message->getToUser()->getUserID(),
            $fromUser, $message->getFromString(),
            $message->getSubject(), $message->getBody(), $message->getAttachmentContent(),
            $message->getattachmentFilename());
    }
public function writeMessage ( $ message ) { $ fromUser = null ; if ( $ message -> getFromUser ( ) !== null ) $ fromUser = $ message -> getFromUser ( ) -> getUserID ( ) ; return $ this -> sql -> insertMessage ( $ message -> getToUser ( ) -> getUserID ( ) , $ fromUser , $ message -> getFromString ( ) , $ message -> getSubject ( ) , $ message -> getBody ( ) , $ message -> getAttachmentContent ( ) , $ message -> getattachmentFilename ( ) ) ; }
Write Message
 Writes a message into the system.
Write Message Writes a message into the system .