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)); } }