/**
  * Fill table row
  */
 protected function fillRow($a_set)
 {
     global $ilCtrl, $lng;
     $this->tpl->setVariable("VAL_ID", $a_set["usr_id"]);
     if ($this->getType() == self::TYPE_GLOBAL_SEARCH) {
         include_once './Services/User/classes/class.ilUserUtil.php';
         $link = ilUserUtil::getProfileLink($a_set['usr_id']);
         if ($link) {
             $this->tpl->setVariable('IMG_LINKED_TO_PROFILE', $link);
             $this->tpl->setVariable('USR_IMG_SRC_LINKED', ilObjUser::_getPersonalPicturePath($a_set['usr_id'], 'xsmall'));
         } else {
             $this->tpl->setVariable('USR_IMG_SRC', ilObjUser::_getPersonalPicturePath($a_set['usr_id'], 'xsmall'));
         }
     }
     foreach ($this->getSelectedColumns() as $field) {
         switch ($field) {
             case 'gender':
                 $a_set['gender'] = $a_set['gender'] ? $this->lng->txt('gender_' . $a_set['gender']) : '';
                 $this->tpl->setCurrentBlock('custom_fields');
                 $this->tpl->setVariable('VAL_CUST', $a_set[$field]);
                 $this->tpl->parseCurrentBlock();
                 break;
             case 'birthday':
                 $a_set['birthday'] = $a_set['birthday'] ? ilDatePresentation::formatDate(new ilDate($a_set['birthday'], IL_CAL_DATE)) : $this->lng->txt('no_date');
                 $this->tpl->setCurrentBlock('custom_fields');
                 $this->tpl->setVariable('VAL_CUST', $a_set[$field]);
                 $this->tpl->parseCurrentBlock();
                 break;
             case 'access_until':
                 $this->tpl->setCurrentBlock('custom_fields');
                 $this->tpl->setVariable('CUST_CLASS', ' ' . $a_set['access_class']);
                 $this->tpl->setVariable('VAL_CUST', $a_set[$field]);
                 $this->tpl->parseCurrentBlock();
                 break;
             case 'last_login':
                 $a_set['last_login'] = $a_set['last_login'] ? ilDatePresentation::formatDate(new ilDateTime($a_set['last_login'], IL_CAL_DATETIME)) : $this->lng->txt('no_date');
                 $this->tpl->setCurrentBlock('custom_fields');
                 $this->tpl->setVariable('VAL_CUST', $a_set[$field]);
                 $this->tpl->parseCurrentBlock();
                 break;
             case 'login':
                 if ($this->admin_mode) {
                     $ilCtrl->setParameterByClass("ilobjusergui", "ref_id", "7");
                     $ilCtrl->setParameterByClass("ilobjusergui", "obj_id", $a_set["usr_id"]);
                     $ilCtrl->setParameterByClass("ilobjusergui", "search", "1");
                     $link = $ilCtrl->getLinkTargetByClass(array("iladministrationgui", "ilobjusergui"), "view");
                     $a_set[$field] = "<a href=\"" . $link . "\">" . $a_set[$field] . "</a>";
                 }
                 // fallthrough
             // fallthrough
             default:
                 $this->tpl->setCurrentBlock('custom_fields');
                 $this->tpl->setVariable('VAL_CUST', (string) ($a_set[$field] ? $a_set[$field] : ''));
                 $this->tpl->parseCurrentBlock();
                 break;
         }
     }
     if ($this->getType() == self::TYPE_GLOBAL_SEARCH) {
         $this->tpl->setVariable('SEARCH_RELEVANCE', $this->getRelevanceHTML($a_set['relevance']));
     }
 }