You are here

public function Messaging_Object::save in Messaging 6.4

Save to database

File

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

Class

Messaging_Object
Messaging persistent object

Code

public function save() {
  if ($this
    ->key()) {
    return $this
      ->update();
  }
  else {
    return $this
      ->insert();
  }
}