-
-class SubscriptionListItem extends ProfileListItem
-{
- /** Owner of this list */
- var $owner = null;
-
- function __construct($profile, $owner, $action)
- {
- parent::__construct($profile, $action);
-
- $this->owner = $owner;
- }
-
- function showProfile()
- {
- $this->startProfile();
- $this->showAvatar();
- $this->showFullName();
- $this->showLocation();
- $this->showHomepage();
- $this->showBio();
- // Relevant portion!
- $this->showTags();
- $this->endProfile();
- }
-
- function isOwn()
- {
- $user = common_current_user();
- return (!empty($user) && ($this->owner->id == $user->id));
- }
-}