public function __construct($optionId, $hiddenUsers) { $service = QUESTIONS_BOL_Service::getInstance(); $userIds = $service->findAnsweredUserIdList($optionId); $userIds = array_diff($userIds, $hiddenUsers); parent::__construct($userIds); $this->setTemplate(OW::getPluginManager()->getPlugin('base')->getCmpViewDir() . 'floatbox_user_list.html'); }
public function __construct($questionId, $context, $hidden) { $service = EQUESTIONS_BOL_Service::getInstance(); $context = empty($context) ? array() : $context; $follows = $service->findFollows($questionId, $context, $hidden); $userIds = array(); foreach ($follows as $follow) { $userIds[] = (int) $follow->userId; } parent::__construct($userIds); $this->setTemplate(OW::getPluginManager()->getPlugin('base')->getCmpViewDir() . 'floatbox_user_list.html'); }