Exemplo n.º 1
0
 public function findAnsweredUserIdList($optionId, $usersContext = null, $count = null)
 {
     if ($usersContext === null) {
         $answers = $this->answerDao->findList($optionId, $count);
     } else {
         $answers = $this->answerDao->findListWithUserIdList($optionId, $usersContext, $count);
     }
     $out = array();
     foreach ($answers as $item) {
         $out[] = $item->userId;
     }
     return $out;
 }