protected function _getNotableMembers($type, $limit)
{
$userModel = $this->_getUserModel();
$notableCriteria = array(
'is_banned' => 0
);
if ($type == 'sponsor')
{
$notableCriteria['secondary_group_ids'] = array(7);
}
$typeMap = array(
'messages' => 'message_count',
'likes' => 'like_count',
'points' => 'trophy_points',
'sponsor' => 'message_count'
);
if (!isset($typeMap[$type]))
{
return false;
}
return array($userModel->getUsers($notableCriteria, array(
'join' => XenForo_Model_User::FETCH_USER_FULL,
'limit' => $limit,
'order' => $typeMap[$type],
'direction' => 'desc'
)), $typeMap[$type]);
}