]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/subscriptionlist.php
Separating classes into files and stronger typing
[quix0rs-gnu-social.git] / lib / subscriptionlist.php
index aad1f1230b1bdf296bca339821c8233dec45d746..cc12d7efe3c15448a27a940e5a1a0435a241a3db 100644 (file)
@@ -56,44 +56,3 @@ class SubscriptionList extends ProfileList
         return new SubscriptionListItem($profile, $this->owner, $this->action);
     }
 }
-
-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->profile);
-        $this->showNickname();
-        $this->showFullName();
-        $this->showLocation();
-        $this->showHomepage();
-        $this->showBio();
-        // Relevant portion!
-        $this->showTags();
-        if ($this->isOwn()) {
-            $this->showOwnerControls();
-        }
-        $this->endProfile();
-    }
-
-    function showOwnerControls()
-    {
-        // pass
-    }
-
-    function isOwn()
-    {
-        $user = common_current_user();
-        return (!empty($user) && ($this->owner->id == $user->id));
-    }
-}