Skip to content

Commit

Permalink
Merge pull request #1 from klees/4_4_generali_va_2793
Browse files Browse the repository at this point in the history
Lang-File and TODOs
  • Loading branch information
daniwe4 authored Feb 22, 2017
2 parents 1791769 + 7476dee commit 3da1dbd
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ public function showContent()

require_once("Modules/StudyProgramme/classes/class.ilObjectFactoryWrapper.php");
$sp = \ilObjectFactoryWrapper::getInstanceByRefId($settings->getSPNodeRefId());
// TODO: Use most recent assignment, not the first that accidentially is in the list.
$assignments = $sp->getAssignmentsOf($this->g_user->getId());
// TODO: Check if there are actually assignments and print an error message if
// none could be found.
$assignment = $assignments[0];

require_once("Modules/StudyProgramme/classes/tables/class.ilIndividualPlanGUI.php");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- language file start -->
obj_xsp#:#Studienprogrammreport
objs_xsp#:#Studienprogrammreports
obj_xsp_duplicate#:#Studienprogrammreport kopieren
objs_xsp_duplicate#:#Studienprogrammreports kopieren
obj_xsp_select#:#Studienprogrammreport auswählen
xsp_add#:#Studienprogrammreport hinzufügen
xsp_new#:#Neuen Studienprogrammreport hinzufügen
xsp_read#:#Lesezugriff zum Studienprogrammreport
xsp_write#:#Studienprogrammreport bearbeiten
xsp_delete#:#Studienprogrammreport löschen
xsp_visible#:#sichtbar
xsp_edit_permission#:#schreibberechtigt
crs_create_xsp#:#Studienprogrammreport erzeugen
grp_create_xsp#:#Studienprogrammreport erzeugen
fold_create_xsp#:#Studienprogrammreport erzeugen
root_create_xsp#:#Studienprogrammreport erzeugen
cat_create_xsp#:#Studienprogrammreport erzeugen
rep_robj_xsp_status#:#Status
online#:#Online
rep_robj_xsp_offline#:#Offline
xsp_content#:#Report
xsp_properties#:#Eigenschaften
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$id = "xsp";

$version = "0.1.1";
$version = "0.2.1";

$ilias_min_version = "4.2.0";
$ilias_max_version = "5.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*
* @author Stefan Hecken <[email protected]>
*/
// TODO: rename gev_va_* lang variables here (and on other files in this folder) to prg_* variables.
// TODO: check if all lang_vars are defined in global lang/ilias_de.lang
class ilIndividualPlanGUI
{

Expand All @@ -30,6 +32,8 @@ class ilIndividualPlanGUI
*/
protected $isPost;

// TODO: Pass required attributes (i.e. assignment id and sp_ref_id) as args here.
// TODO: declare all attributes as docstrings.
public function __construct()
{
global $ilCtrl, $tpl;
Expand Down Expand Up @@ -258,6 +262,7 @@ protected function findAssignmentId()
}
}

// TODO: Remove this. The user could unambigously be retreived from the assignment.
public function setUserId($user_id)
{
$this->user_id = $user_id;
Expand Down
2 changes: 1 addition & 1 deletion setup/sql/dbupdate_custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -5226,7 +5226,7 @@

<#230>
<?php

;
?>

<#231>
Expand Down

0 comments on commit 3da1dbd

Please sign in to comment.