Esempio n. 1
0
 public function do_action()
 {
     DBMessage::DeleteMessagesForOrigin(
             $this->message_ids,
             USERS,
             BoydsnestSession::GetInstance()->get(USERS_USERID));
 }
Esempio n. 2
0
DBMessage::DeleteMessagesForOrigin($message_id, "test", 2);
DBMessage::DeleteMessagesForOrigin($message_id, "test", 3);
DBMessage::DeleteMessagesForOrigin($message_id, "test", 4);
$messages = DBMessage::GetMessage($message_id);
if (sizeof($messages) == 2)
{
    echo __LINE__.": passed message delete for origin test 3";
}
else
{
    echo __LINE__.": failed message delete for origin test 3";
    echo "<br />";
    var_export($messages);
}
htmlln();
DBMessage::DeleteMessagesForOrigin($message_id, "test", 5);
$messages = DBMessage::GetMessage($message_id);
if ($messages == null)
{
    echo __LINE__.": passed message delete for origin test 4";
}
else
{
    echo __LINE__.": failed message delete for origin test 4";
    echo "<br />";
    var_export($messages);
}
htmlln();

DBMessage::ForceDeleteMessageOfOriginType("test");