You are here

public function MostPopularLastRun::save in Drupal Most Popular 7

Same name and namespace in other branches
  1. 6 classes/lastrun.php \MostPopularLastRun::save()

Saves the last run info into the database.

File

classes/lastrun.php, line 85
Defines a wrapper for the mostpopular_last_run table.

Class

MostPopularLastRun
@file Defines a wrapper for the mostpopular_last_run table.

Code

public function save() {
  if ($this->new) {
    drupal_write_record(self::$table, $this);
  }
  else {
    drupal_write_record(self::$table, $this, array(
      'sid',
      'iid',
    ));
  }
}