68        $this->activeIdsFilter = array();
 
   69        $this->userIdsFilter = array();
 
   70        $this->anonymousIdsFilter = array();
 
   72        $this->byActiveId = array();
 
   73        $this->byUserId = array();
 
   74        $this->byAnonymousId = array();
 
   76        $this->scoredParticipantsFilterEnabled = 
false;
 
  113        $this->byActiveId = array();
 
  114        $this->byUserId = array();
 
  125                        LEFT JOIN       usr_data ud 
  126                        ON                      ud.usr_id = ta.user_fi 
  128                        AND                     {$this->getConditionalExpression()} 
  129                        AND             {$this->getScoredParticipantsFilterExpression()} 
  132        $res = $this->db->queryF(
$query, array(
'integer'), array($testId));
 
  135        $accessFilteredUsrIds = array();
 
  137        while ($row = $this->db->fetchAssoc(
$res)) {
 
  138            $accessFilteredUsrIds[] = $row[
'user_id'];
 
  146        foreach (
$rows as $row) {
 
  147            if (!in_array($row[
'user_id'], $accessFilteredUsrIds)) {
 
  151            $this->byActiveId[ $row[
'active_id'] ] = $row;
 
  154                $this->byAnonymousId[ $row[
'anonymous_id'] ] = $row;
 
  156                $this->byUserId[ $row[
'user_id'] ] = $row;
 
  164            return "ta.last_finished_pass = ta.last_started_pass";
 
  172        $conditions = array();
 
  175            $conditions[] = $this->db->in(
'active_id', $this->
getActiveIdsFilter(), 
false, 
'integer');
 
  179            $conditions[] = $this->db->in(
'user_fi', $this->
getUserIdsFilter(), 
false, 
'integer');
 
  186        if (count($conditions)) {
 
  187            return '(' . implode(
' OR ', $conditions) . 
')';
 
  225        return array_keys($this->byActiveId);
 
  230        return array_keys($this->byUserId);
 
  235        return array_keys($this->byAnonymousId);
 
  240        return $this->byActiveId[$activeId][
'user_id'];
 
  245        return $this->byUserId[$userId][
'active_id'];
 
  250        return "{$this->byActiveId[$activeId]['firstname']} {$this->byActiveId[$activeId]['lastname']}";
 
  260        $fullname = str_replace(
' ', 
'', $this->byActiveId[$activeId][
'lastname']);
 
  261        $fullname .= 
'_' . str_replace(
' ', 
'', $this->byActiveId[$activeId][
'firstname']);
 
  262        $fullname .= 
'_' . $this->byActiveId[$activeId][
'login'];
 
  271        foreach ($this->byActiveId as $activeId => $usrData) {
 
  282        $anonymousActiveIds = array();
 
  284        foreach ($this->byActiveId as $activeId => $active) {
 
  286                $anonymousActiveIds[] = $activeId;
 
  290        return $anonymousActiveIds;
 
  295        if (isset($this->byActiveId[$activeId])) {
 
  296            return $this->byActiveId[$activeId];
 
An exception for terminatinating execution or to throw for unit testing.
static _getParticipantData($active_id)
Retrieves a participant name from active id.
getFileSystemCompliantFullnameByActiveId($activeId)
setUserIdsFilter($userIdsFilter)
isScoredParticipantsFilterEnabled()
getUserIdByActiveId($activeId)
setScoredParticipantsFilterEnabled($scoredParticipantsFilterEnabled)
getActiveIdByUserId($userId)
setActiveIdsFilter($activeIdsFilter)
__construct(ilDBInterface $db, ilLanguage $lng)
getConditionalExpression()
getFormatedFullnameByActiveId($activeId)
setAnonymousIdsFilter($anonymousIdsFilter)
getParticipantAccessFilter()
setParticipantAccessFilter($participantAccessFilter)
$scoredParticipantsFilterEnabled
getUserDataByActiveId($activeId)
getScoredParticipantsFilterExpression()
getConcatedFullnameByActiveId($activeId)
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
foreach($_POST as $key=> $value) $res