1
0

Make fake items more item-like by adding type, viewcount and owner.

This commit is contained in:
rWatcher 2011-05-11 19:57:38 -04:00
parent cff7ac3a8d
commit 2771cf29db
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,9 @@ class Tag_Albums_Item_Core {
public $thumb_width = 0;
public $thumb_height = 0;
public $item_type = "";
public $type = "";
public $view_count = 0;
public $owner;
public function is_album() {
if ($this->item_type == "album") {
@ -106,5 +109,6 @@ class Tag_Albums_Item_Core {
$this->title = $new_title;
$this->url = $new_url;
$this->item_type = $new_type;
$this->type = $new_type;
}
}

View File

@ -25,6 +25,9 @@ class Tag_Albums_Item_Core {
public $thumb_width = 0;
public $thumb_height = 0;
public $item_type = "";
public $type = "";
public $view_count = 0;
public $owner;
public function is_album() {
if ($this->item_type == "album") {
@ -106,5 +109,6 @@ class Tag_Albums_Item_Core {
$this->title = $new_title;
$this->url = $new_url;
$this->item_type = $new_type;
$this->type = $new_type;
}
}