Example #1
0
 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');
 }
Example #2
0
 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');
 }