/** * Content area * * Shows the list of popular notices * * @return void */ function showContent() { $this->showForm(); $this->elementStart('div', array('id' => 'profile_directory')); $alphaNav = new AlphaNav($this, false, false, array('0-9', 'All')); $alphaNav->show(); $profile = null; $profile = $this->getUsers(); $cnt = 0; if (!empty($profile)) { $profileList = new SortableSubscriptionList($profile, common_current_user(), $this); $cnt = $profileList->show(); $profile->free(); if (0 == $cnt) { $this->showEmptyListMessage(); } } $args = array(); if (isset($this->q)) { $args['q'] = $this->q; } else { $args['filter'] = $this->filter; } $this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE, $this->page, 'userdirectory', $args); $this->elementEnd('div'); }
function __construct($profile, $owner = null, $action = null) { parent::__construct($profile, $owner, $action); $this->owner = $owner; }