You are here

public function MostPopularInterval::update in Drupal Most Popular 6

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

Updates this service with the given values

Parameters

array|object $object: An object containing the values to update.

1 call to MostPopularInterval::update()
MostPopularInterval::MostPopularInterval in classes/intervals.php
Constructs a new interval.

File

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

Class

MostPopularInterval
@file Defines a wrapper for the mostpopular_intervals table.

Code

public function update($object) {
  foreach ($object as $key => $val) {
    if (isset($this->{$key})) {
      $this->{$key} = $val;
    }
  }
}