You are here

public function MostPopularItem::MostPopularItem in Drupal Most Popular 7

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

Constructs a new MostPopularItem with the given values.

Parameters

array|object $object: An object containing values to populate this object with.

boolean $new: True if this is a new object, false if it already exists in the database.

File

classes/items.php, line 38
Defines a wrapper for the mostpopular_items table.

Class

MostPopularItem
@file Defines a wrapper for the mostpopular_items table.

Code

public function MostPopularItem($object, $new = FALSE) {
  if (is_array($object)) {
    $object = (object) $object;
  }
  $this->sid = $object->sid;
  $this->iid = $object->iid;
  $this->nid = $object->nid;
  $this->url = $object->url;
  $this->title = $object->title;
  $this->count = $object->count;
  $this->new = $new;
}