src/snac/server/database/SQL.php
/**
     * Archive Message
     *
     * Sets the deleted flag for the given message ID, denoting that this message has been archived
     * in the system.
     *
     * @param int $id The message ID to delete
     * @return boolean True on success, false otherwise
     */
Archive Message
Sets the deleted flag for the given message ID, denoting that this message has been archived
in the system.

@param int $id The message ID to delete
@return boolean True on success, false otherwise
Archive Message Sets the deleted flag for the given message ID denoting that this message has been archived in the system . @param int $id The message ID to delete @return boolean True on success false otherwise
public function archiveMessageByID($id) {
        $result = $this->sdb->query(
            'update messages set deleted = true where id = $1 returning *',
            array($id));
        $all = array();
        while ($row = $this->sdb->fetchrow($result))
        {
            array_push($all, $row);
        }
        if (count($all) === 1)
            return true;
        return false;
    }
public function archiveMessageByID ( $ id ) { $ result = $ this -> sdb -> query ( 'update messages set deleted = true where id = $1 returning *' , array ( $ id ) ) ; $ all = array ( ) ; while ( $ row = $ this -> sdb -> fetchrow ( $ result ) ) { array_push ( $ all , $ row ) ; } if ( count ( $ all ) === 1 ) return true ; return false ; }
Archive Message
 Sets the deleted flag for the given message ID, denoting that this message has been archived
 in the system.
Archive Message Sets the deleted flag for the given message ID denoting that this message has been archived in the system .