You are here

public function Messaging_Object::delete in Messaging 6.4

Delete from system database

1 call to Messaging_Object::delete()
Messaging_Cached_Object::delete in includes/messaging_object.class.inc
Delete from system and from static cache
1 method overrides Messaging_Object::delete()
Messaging_Cached_Object::delete in includes/messaging_object.class.inc
Delete from system and from static cache

File

includes/messaging_object.class.inc, line 215
Drupal Messaging Framework - Base classes

Class

Messaging_Object
Messaging persistent object

Code

public function delete() {
  if ($this
    ->key()) {
    db_query('DELETE FROM {' . $this
      ->db_table() . '} WHERE ' . $this
      ->db_key() . ' = %d', $this
      ->key());

    //unset($this->{$this->db_key()});
    $this->deleted = TRUE;
  }
}