5require_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
    6require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeUserProgress.php");
 
    7require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
 
    8require_once(
"Services/Utilities/classes/class.ilUtil.php");
 
   32        $this->
setId(
"manage_indiv");
 
   46        $this->assignment = $a_ass;
 
   54        $this->
setRowTemplate(
"tpl.individual_plan_table_row.html", 
"Modules/StudyProgramme");
 
   61                        , 
"prg_points_current" 
   62                        , 
"prg_points_required" 
   86        $this->not_possible_image = 
"<img src='" . 
ilUtil::getImagePath(
"icon_not_ok.svg") . 
"' alt='not ok'>";
 
   91        $status = $this->sp_user_progress_db->statusToRepr($a_set[
"status"]);
 
   92        $this->tpl->setVariable(
"STATUS", $status);
 
   96            $title .= 
" (" . $this->lng->txt(
"prg_status_draft") . 
")";
 
   98            $title .= 
" (" . $this->lng->txt(
"prg_status_outdated") . 
")";
 
  101        $this->tpl->setVariable(
"TITLE", 
$title);
 
  102        $this->tpl->setVariable(
"POINTS_CURRENT", $a_set[
"points_current"]);
 
  103        $this->tpl->setVariable(
"POINTS_REQUIRED", $this->
getRequiredPointsInput($a_set[
"progress_id"], $a_set[
"status"], $a_set[
"points_required"]));
 
  104        $this->tpl->setVariable(
"MANUAL_STATUS", $this->
getManualStatusSelect($a_set[
"progress_id"], $a_set[
"status"]));
 
  105        $this->tpl->setVariable(
"POSSIBLE", $a_set[
"possible"] ? $this->possible_image : $this->not_possible_image);
 
  106        $this->tpl->setVariable(
"CHANGED_BY", $a_set[
"changed_by"]);
 
  107        $this->tpl->setVariable(
"COMPLETION_BY", $a_set[
"completion_by"]);
 
  112                    $this->tpl->setCurrentBlock(
"assignment_date");
 
  113                    $this->tpl->setVariable(
"ASSIGNMENT_DATE", $a_set[
"assignment_date"]);
 
  114                    $this->tpl->parseCurrentBlock(
"assignment_date");
 
  117                    $this->tpl->setCurrentBlock(
"deadline");
 
  118                    $this->tpl->setVariable(
"DEADLINE", $this->
getDeadlineInput($a_set[
"progress_id"], $a_set[
"deadline"]));
 
  119                    $this->tpl->parseCurrentBlock(
"deadline");
 
  122                    $this->tpl->setCurrentBlock(
"completion_date");
 
  123                    $this->tpl->setVariable(
"COMPLETION_DATE", $a_set[
"completion_date"]);
 
  124                    $this->tpl->parseCurrentBlock(
"completion_date");
 
  140                "txt" => $this->lng->txt(
"assignment_date"));
 
  142                "txt" => $this->lng->txt(
"prg_deadline"));
 
  144                "txt" => $this->lng->txt(
"completion_date"));
 
  150        $prg = $this->assignment->getStudyProgramme();
 
  151        $prg_id = $prg->getId();
 
  152        $ass_id = $this->assignment->getId();
 
  153        $usr_id = $this->assignment->getUserId();
 
  156        $prg->applyToSubTreeNodes(
function ($node) use ($prg_id, $ass_id, $usr_id, &$plan) {
 
  157            $progress = $this->sp_user_progress_db->getInstance($ass_id, $node->getId(), $usr_id);
 
  158            $completion_by_id = $progress->getCompletionBy();
 
  159            if ($completion_by_id) {
 
  161                if (!$completion_by) {
 
  163                    if (
$type == 
"crsr") {
 
  170                $completion_by = implode(
", ", $progress->getNamesOfCompletedOrAccreditedChildren());
 
  172            $plan[] = array( 
"status" => $progress->getStatus()
 
  173                           , 
"title" => $node->getTitle()
 
  174                           , 
"points_current" => $progress->getCurrentAmountOfPoints()
 
  175                           , 
"points_required" => $progress->getAmountOfPoints()
 
  176                           , 
"possible" => $progress->isSuccessful() || $progress->canBeCompleted() || !$progress->isRelevant()
 
  178                           , 
"completion_by" => $completion_by
 
  179                           , 
"progress_id" => $progress->getId()
 
  180                           , 
"program_status" => $progress->getStudyProgramme()->getStatus()
 
  181                           , 
"assignment_date" => $progress->getAssignmentDate()->format(
'd.m.Y')
 
  182                           , 
"deadline" => $progress->getDeadline()
 
  183                           , 
"completion_date" => $progress->getCompletionDate() ? $progress->getCompletionDate()->format(
'd.m.Y') : 
'' 
  192        $status_title = $parent->getManualStatusPostVarTitle();
 
  195            $inv_select->setValue($this->lng->txt(
'no_manual_status'));
 
  196            return $inv_select->render();
 
  201        $manual_status_none = $parent->getManualStatusNone();
 
  202        $manual_status_not_relevant = $parent->getManualStatusNotRelevant();
 
  203        $manual_status_accredited = $parent->getManualStatusAccredited();
 
  205        require_once(
"Services/Form/classes/class.ilSelectInputGUI.php");
 
  207        $select->setOptions(array( $manual_status_none => 
"-" 
  208            , $manual_status_accredited => $this->lng->txt(
"prg_status_accredited")
 
  209            , $manual_status_not_relevant => $this->lng->txt(
"prg_status_not_relevant")
 
  212            $select->setValue($manual_status_not_relevant);
 
  214            $select->setValue($manual_status_accredited);
 
  217        return $select->render();
 
  223            return $a_points_required;
 
  226        $required_points_title = $this->
getParentObject()->getRequiredPointsPostVarTitle();
 
  228        require_once(
"Services/Form/classes/class.ilNumberInputGUI.php");
 
  229        $input = 
new ilNumberInputGUI(
"", $required_points_title . 
"[$a_progress_id]");
 
  230        $input->setValue($a_points_required);
 
  232        return $input->render();
 
  237        require_once(
"Services/Form/classes/class.ilDateTimeInputGUI.php");
 
  243        return $gui->render();
 
An exception for terminatinating execution or to throw for unit testing.
static _lookupTitle($a_obj_id)
Overwitten from base class.
@classDescription Date and time handling
This class represents a non editable value in a property form.
Class ilObjStudyProgrammeIndividualPlanGUI.
static _lookupLogin($a_user_id)
lookup login
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
Class ilStudyProgrammeIndividualPlanTableGUI.
getDeadlineInput($a_progress_id, $deadline)
const SEL_COLUMN_COMPLETION_DATE
const SEL_COLUMN_ASSIGNMENT_DATE
getSelectableColumns()
Get selectable columns.
getRequiredPointsInput($a_progress_id, $a_status, $a_points_required)
const SEL_COLUMN_DEADLINE
fillRow($a_set)
Standard Version of Fill Row.
__construct(ilObjStudyProgrammeIndividualPlanGUI $a_parent_obj, ilStudyProgrammeUserAssignment $a_ass, \ilStudyProgrammeUserProgressDB $sp_user_progress_db)
getManualStatusSelect($a_progress_id, $a_status)
const STATUS_NOT_RELEVANT
Represents one assignment of a user to a study programme.
Storage implementation for ilStudyProgrammeUserProgress.
getSelectedColumns()
Get selected columns.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setEnableHeader($a_enableheader)
Set Enable Header.
setExternalSorting($a_val)
Set external sorting.
getParentObject()
Get parent object.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
determineLimit()
Determine the limit.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setMaxCount($a_max_count)
set max.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc