You are here

public function MostPopularInterval::MostPopularInterval in Drupal Most Popular 7

Same name and namespace in other branches
  1. 6 classes/intervals.php \MostPopularInterval::MostPopularInterval()

Constructs a new interval.

If a row object is passed as the parameter, the $iid, $title, $interval and $weight are all extracted from the object. Otherwise, the parameters are used for these values.

Parameters

array|object $object: An object with settings for this interval.

File

classes/intervals.php, line 38
Defines a wrapper for the mostpopular_intervals table.

Class

MostPopularInterval
@file Defines a wrapper for the mostpopular_intervals table.

Code

public function MostPopularInterval($object) {
  $this
    ->update($object);
}