You are here

public static function MostPopularLastRun::create in Drupal Most Popular 7

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

Creates new last run data for the given service and interval.

The last run will be set to 0, and the default throttles will be used. You must call save() on the resulting object before these values are stored to the database.

Parameters

integer $sid: The service ID.

integer $iid: The interval ID.

1 call to MostPopularLastRun::create()
MostPopularLastRun::fetch in classes/lastrun.php
Fetches the last run data for the given service and interval.

File

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

Class

MostPopularLastRun
@file Defines a wrapper for the mostpopular_last_run table.

Code

public static function create($sid, $iid) {
  return new MostPopularLastRun(array(
    'sid' => $sid,
    'iid' => $iid,
    'last_run' => 0,
  ), TRUE);
}