Make fake items more item-like by adding type, viewcount and owner.
This commit is contained in:
parent
cff7ac3a8d
commit
2771cf29db
@ -25,6 +25,9 @@ class Tag_Albums_Item_Core {
|
|||||||
public $thumb_width = 0;
|
public $thumb_width = 0;
|
||||||
public $thumb_height = 0;
|
public $thumb_height = 0;
|
||||||
public $item_type = "";
|
public $item_type = "";
|
||||||
|
public $type = "";
|
||||||
|
public $view_count = 0;
|
||||||
|
public $owner;
|
||||||
|
|
||||||
public function is_album() {
|
public function is_album() {
|
||||||
if ($this->item_type == "album") {
|
if ($this->item_type == "album") {
|
||||||
@ -106,5 +109,6 @@ class Tag_Albums_Item_Core {
|
|||||||
$this->title = $new_title;
|
$this->title = $new_title;
|
||||||
$this->url = $new_url;
|
$this->url = $new_url;
|
||||||
$this->item_type = $new_type;
|
$this->item_type = $new_type;
|
||||||
|
$this->type = $new_type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,9 @@ class Tag_Albums_Item_Core {
|
|||||||
public $thumb_width = 0;
|
public $thumb_width = 0;
|
||||||
public $thumb_height = 0;
|
public $thumb_height = 0;
|
||||||
public $item_type = "";
|
public $item_type = "";
|
||||||
|
public $type = "";
|
||||||
|
public $view_count = 0;
|
||||||
|
public $owner;
|
||||||
|
|
||||||
public function is_album() {
|
public function is_album() {
|
||||||
if ($this->item_type == "album") {
|
if ($this->item_type == "album") {
|
||||||
@ -106,5 +109,6 @@ class Tag_Albums_Item_Core {
|
|||||||
$this->title = $new_title;
|
$this->title = $new_title;
|
||||||
$this->url = $new_url;
|
$this->url = $new_url;
|
||||||
$this->item_type = $new_type;
|
$this->item_type = $new_type;
|
||||||
|
$this->type = $new_type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user