function showContent() { parent::showContent(); $offset = ($this->page - 1) * PROFILES_PER_PAGE; $limit = PROFILES_PER_PAGE + 1; $cnt = 0; if ($this->tag) { $subscribers = $this->user->getTaggedSubscribers($this->tag, $offset, $limit); } else { $subscribers = $this->user->getSubscribers($offset, $limit); } if ($subscribers) { $subscribers_list = new SubscribersList($subscribers, $this->user, $this); $cnt = $subscribers_list->show(); } $subscribers->free(); $this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE, $this->page, 'subscribers', array('nickname' => $this->user->nickname)); }
function showContent() { parent::showContent(); $offset = ($this->page - 1) * PROFILES_PER_PAGE; $limit = PROFILES_PER_PAGE + 1; $cnt = 0; if ($this->tag) { $subscribers = $this->target->getTaggedSubscribers($this->tag, $offset, $limit); } else { $subscribers = $this->target->getSubscribers($offset, $limit); } if ($subscribers) { $subscribers_list = new SubscribersList($subscribers, $this->target, $this); $cnt = $subscribers_list->show(); if (0 == $cnt) { $this->showEmptyListMessage(); } } $this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE, $this->page, 'subscribers', array('nickname' => $this->target->getNickname())); }
function showContent() { if (Event::handle('StartShowSubscriptionsContent', array($this))) { parent::showContent(); $offset = ($this->page - 1) * PROFILES_PER_PAGE; $limit = PROFILES_PER_PAGE + 1; $cnt = 0; if ($this->tag) { $subscriptions = $this->user->getTaggedSubscriptions($this->tag, $offset, $limit); } else { $subscriptions = $this->user->getSubscriptions($offset, $limit); } if ($subscriptions) { $subscriptions_list = new SubscriptionsList($subscriptions, $this->user, $this); $cnt = $subscriptions_list->show(); if (0 == $cnt) { $this->showEmptyListMessage(); } } $this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE, $this->page, 'subscriptions', array('nickname' => $this->user->nickname)); Event::handle('EndShowSubscriptionsContent', array($this)); } }
function showContent() { if (Event::handle('StartShowTagSubscriptionsContent', array($this))) { parent::showContent(); $offset = ($this->page - 1) * PROFILES_PER_PAGE; $limit = PROFILES_PER_PAGE + 1; $cnt = 0; $tagsub = new TagSub(); $tagsub->profile_id = $this->getTarget()->getID(); $tagsub->limit($limit, $offset); $tagsub->find(); if ($tagsub->N) { $list = new TagSubscriptionsList($tagsub, $this->getTarget(), $this); $cnt = $list->show(); if (0 == $cnt) { $this->showEmptyListMessage(); } } else { $this->showEmptyListMessage(); } $this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE, $this->page, 'tagsubs', array('nickname' => $this->getTarget()->getNickname())); Event::handle('EndShowTagSubscriptionsContent', array($this)); } }