47        $this->
setId(self::TABLE_ID . $tableId);
 
   49        $this->_parent = $a_parent_obj;
 
   51        $DIC->language()->loadLanguageModule(
'assessment');
 
   53        $this->
setRowTemplate(
'tpl.cmix_scoring_table_row.html', 
'Modules/CmiXapi');
 
   55        if ($tableId === 
'highscore') {
 
   56            $this->
setTitle(sprintf(
$DIC->language()->txt(
'toplist_top_n_results'), (
int) $this->_parent->object->getHighscoreTopNum()));
 
   58            $this->
setTitle($DIC->language()->txt(
'toplist_your_result'));
 
   77        $this->
addColumn($DIC->language()->txt(
'toplist_col_rank'));
 
   78        $this->
addColumn($DIC->language()->txt(
'toplist_col_participant'));
 
   80        if ($this->_parent->object->getHighscoreAchievedTS()) {
 
   81            $this->
addColumn($DIC->language()->txt(
'toplist_col_achieved'));
 
   84        if ($this->_parent->object->getHighscorePercentage()) {
 
   85            $this->
addColumn($DIC->language()->txt(
'toplist_col_percentage'));
 
   88        if ($this->_parent->object->getHighscoreWTime()) {
 
   89            $this->
addColumn($DIC->language()->txt(
'toplist_col_wtime'));
 
   93        $this->
setLimit((
int) $this->_parent->object->getHighscoreTopNum());
 
  100        $this->tpl->setVariable(
'SCORE_RANK', 
$data[
'rank']);
 
  102        $this->tpl->setCurrentBlock(
'personal');
 
  104        $this->tpl->parseCurrentBlock();
 
  106        if ($this->_parent->object->getHighscoreAchievedTS()) {
 
  107            $this->tpl->setCurrentBlock(
'achieved');
 
  108            $this->tpl->setVariable(
'SCORE_ACHIEVED', 
$data[
'date']);
 
  109            $this->tpl->parseCurrentBlock();
 
  113        if ($this->_parent->object->getHighscorePercentage()) {
 
  114            $this->tpl->setCurrentBlock(
'percentage');
 
  115            $this->tpl->setVariable(
'SCORE_PERCENTAGE', (
float) 
$data[
'score'] * 100);
 
  116            $this->tpl->parseCurrentBlock();
 
  119        if ($this->_parent->object->getHighscoreWTime()) {
 
  120            $this->tpl->setCurrentBlock(
'wtime');
 
  121            $this->tpl->setVariable(
'SCORE_DURATION', 
$data[
'duration']);
 
  122            $this->tpl->parseCurrentBlock();
 
  125        $highlight = 
$data[
'ilias_user_id'] == 
$DIC->user()->getId() ? 
'tblrowmarked' : 
'';
 
  126        $this->tpl->setVariable(
'HIGHLIGHT', $highlight);
 
  133        if ($this->hasOutcomeAccess) {
 
  137                return $user->getFullname();
 
  140            return $DIC->language()->txt(
'deleted_user');
 
  143        return $data[
'user'];
 
An exception for terminatinating execution or to throw for unit testing.
fillRow($data)
Standard Version of Fill Row.
__construct(ilCmiXapiScoringGUI $a_parent_obj, $a_parent_cmd, $isMultiActorReport, $tableId, $hasOutcomeAccess)
ilCmiXapiScoringTableGUI constructor.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
setExternalSorting($a_val)
Set external sorting.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setEnableNumInfo($a_val)
Set enable num info.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
resetOffset($a_in_determination=false)
Reset offset.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setExternalSegmentation($a_val)
Set external segmentation.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setMaxCount($a_max_count)
set max.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc