ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilObjStudyProgrammeIndividualPlanGUI Class Reference

Class ilObjStudyProgrammeIndividualPlanGUI. More...

+ Collaboration diagram for ilObjStudyProgrammeIndividualPlanGUI:

Public Member Functions

 __construct (\ilGlobalTemplateInterface $tpl, \ilCtrl $ilCtrl, \ilLanguage $lng, \ilObjUser $ilUser, \ilAccess $ilAccess, ilStudyProgrammeUserProgressDB $sp_user_progress_db, ilStudyProgrammeUserAssignmentDB $sp_user_assignment_db)
 
 setParentGUI ($a_parent_gui)
 
 setRefId ($a_ref_id)
 
 executeCommand ()
 
 appendIndividualPlanActions (ilTable2GUI $a_table)
 
 getManualStatusPostVarTitle ()
 
 getRequiredPointsPostVarTitle ()
 
 getDeadlinePostVarTitle ()
 
 getManualStatusNone ()
 
 getManualStatusNotRelevant ()
 
 getManualStatusAccredited ()
 
 getLinkTargetView ($a_ass_id)
 

Data Fields

 $ctrl
 
 $tpl
 
 $object
 
 $lng
 
 $user
 
const POST_VAR_STATUS = "status"
 
const POST_VAR_REQUIRED_POINTS = "required_points"
 
const POST_VAR_DEADLINE = "deadline"
 
const MANUAL_STATUS_NONE = 0
 
const MANUAL_STATUS_NOT_RELEVANT = 1
 
const MANUAL_STATUS_ACCREDITED = 2
 

Protected Member Functions

 getAssignmentId ()
 
 getAssignmentObject ()
 
 view ()
 
 manage ()
 
 updateFromCurrentPlan ()
 
 updateFromInput ()
 
 updateStatus ()
 
 updateDeadline (ilStudyProgrammeUserProgress $prgrs)
 Updates current deadline. More...
 
 updateRequiredPoints ($prgrs_id)
 
 getDeadlineFromForm ($prgrs_id)
 Get the deadline from form. More...
 
 postContainDeadline ()
 Checks whether $_POST contains deadline. More...
 
 showSuccessMessage ($a_lng_var)
 
 getManualStatusUpdates ()
 
 getRequiredPointsUpdates ($prgrs_id)
 
 buildFrame ($tab, $content)
 
 getLinkTargetForSubTab ($a_tab, $a_ass_id)
 

Protected Attributes

 $parent_gui
 
 $sp_user_progress_db
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjStudyProgrammeIndividualPlanGUI::__construct ( \ilGlobalTemplateInterface  $tpl,
\ilCtrl  $ilCtrl,
\ilLanguage  $lng,
\ilObjUser  $ilUser,
\ilAccess  $ilAccess,
ilStudyProgrammeUserProgressDB  $sp_user_progress_db,
ilStudyProgrammeUserAssignmentDB  $sp_user_assignment_db 
)

Definition at line 47 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $ilCtrl, $ilUser, $lng, $sp_user_progress_db, $tpl, ilLanguage\loadLanguageModule(), and user().

55  {
56  $this->tpl = $tpl;
57  $this->ctrl = $ilCtrl;
58  $this->lng = $lng;
59  $this->ilAccess = $ilAccess;
60  $this->user = $ilUser;
61 
62  $this->assignment_object = null;
63 
64  $this->sp_user_progress_db = $sp_user_progress_db;
65  $this->sp_user_assignment_db = $sp_user_assignment_db;
66 
67  $this->object = null;
68 
69  $lng->loadLanguageModule("prg");
70 
71  $this->tpl->addCss("Modules/StudyProgramme/templates/css/ilStudyProgramme.css");
72  }
Class ilAccessHandler.
user()
Definition: user.php:4
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

Member Function Documentation

◆ appendIndividualPlanActions()

ilObjStudyProgrammeIndividualPlanGUI::appendIndividualPlanActions ( ilTable2GUI  $a_table)

Definition at line 393 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References ilTable2GUI\addCommandButton(), and ilTable2GUI\setFormAction().

394  {
395  $a_table->setFormAction($this->ctrl->getFormAction($this));
396  $a_table->addCommandButton("updateFromCurrentPlan", $this->lng->txt("prg_update_from_current_plan"));
397  $a_table->addCommandButton("updateFromInput", $this->lng->txt("save"));
398  }
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
+ Here is the call graph for this function:

◆ buildFrame()

ilObjStudyProgrammeIndividualPlanGUI::buildFrame (   $tab,
  $content 
)
protected

Definition at line 350 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $tab, $tpl, ilObjUser\_lookupFullname(), ilAccess\checkAccess(), getAssignmentObject(), and getLinkTargetForSubTab().

Referenced by manage(), and view().

351  {
352  $tpl = new ilTemplate("tpl.indivdual_plan_frame.html", true, true, "Modules/StudyProgramme");
353  $ass = $this->getAssignmentObject();
354  $ref_id = $ass->getStudyProgramme()->getRefId();
355  $user_id = $ass->getUserId();
356  $tpl->setVariable("USERNAME", ilObjUser::_lookupFullname($user_id));
357  $tabs = [];
358  if ($this->ilAccess->checkAccess("manage_members", "", $ref_id)) {
359  $tabs[] = 'view';
360  $tabs[] = 'manage';
361  }
362 
363  if ($this->parent_gui->getStudyProgramme()->getAccessControlByOrguPositionsGlobal()) {
364  if (in_array($user_id, $this->parent_gui->viewIndividualPlan())) {
365  $tabs[] = 'view';
366  }
367  if (in_array($user_id, $this->parent_gui->editIndividualPlan())) {
368  $tabs[] = 'manage';
369  }
370  }
371 
372  $tabs = array_unique($tabs);
373  foreach ($tabs as $_tab) {
374  $tpl->setCurrentBlock("sub_tab");
375  $tpl->setVariable("CLASS", $_tab == $tab ? "active" : "");
376  $tpl->setVariable("LINK", $this->getLinkTargetForSubTab($_tab, $ass->getId()));
377  $tpl->setVariable("TITLE", $this->lng->txt("prg_$_tab"));
378  $tpl->parseCurrentBlock();
379  }
380  $tpl->setVariable("CONTENT", $content);
381 
382  return $tpl->get();
383  }
static _lookupFullname($a_user_id)
Lookup Full Name.
Class ilAccessHandler.
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id="", $a_tree_id="")
check access for an object (provide $a_type and $a_obj_id if available for better performance)(option...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjStudyProgrammeIndividualPlanGUI::executeCommand ( )

Definition at line 84 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

85  {
86  $cmd = $this->ctrl->getCmd();
87 
88  if ($cmd == "") {
89  $cmd = "view";
90  }
91 
92  switch ($cmd) {
93  case "view":
94  case "manage":
95  case "updateFromCurrentPlan":
96  case "updateFromInput":
97  $cont = $this->$cmd();
98  break;
99  default:
100  throw new ilException("ilObjStudyProgrammeMembersGUI: " .
101  "Command not supported: $cmd");
102  }
103 
104  $this->tpl->setContent($cont);
105  }

◆ getAssignmentId()

ilObjStudyProgrammeIndividualPlanGUI::getAssignmentId ( )
protected

Definition at line 107 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $_GET.

Referenced by getAssignmentObject(), and updateFromInput().

108  {
109  if (!is_numeric($_GET["ass_id"])) {
110  throw new ilException("Expected integer 'ass_id'");
111  }
112  return (int) $_GET["ass_id"];
113  }
$_GET["client_id"]
+ Here is the caller graph for this function:

◆ getAssignmentObject()

ilObjStudyProgrammeIndividualPlanGUI::getAssignmentObject ( )
protected

Definition at line 115 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References getAssignmentId().

Referenced by buildFrame(), manage(), updateFromCurrentPlan(), and view().

116  {
117  if ($this->assignment_object === null) {
118  $id = $this->getAssignmentId();
119  $this->assignment_object = $this->sp_user_assignment_db->getInstanceById((int) $id);
120  }
121  return $this->assignment_object;
122  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDeadlineFromForm()

ilObjStudyProgrammeIndividualPlanGUI::getDeadlineFromForm (   $prgrs_id)
protected

Get the deadline from form.

Parameters
int$prgrs_id
Returns
DateTime

Definition at line 293 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $_POST, getDeadlinePostVarTitle(), and postContainDeadline().

Referenced by updateDeadline().

294  {
295  $post_var = $this->getDeadlinePostVarTitle();
296  if (!$this->postContainDeadline()) {
297  throw new ilException("Expected array $post_var in POST");
298  }
299 
300  $post_value = $_POST[$post_var];
301  $deadline = $post_value[$prgrs_id];
302 
303  if ($deadline == "") {
304  return null;
305  }
306  return DateTime::createFromFormat('d.m.Y', $deadline);
307  }
postContainDeadline()
Checks whether $_POST contains deadline.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDeadlinePostVarTitle()

ilObjStudyProgrammeIndividualPlanGUI::getDeadlinePostVarTitle ( )

Definition at line 417 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by getDeadlineFromForm(), and postContainDeadline().

418  {
419  return self::POST_VAR_DEADLINE;
420  }
+ Here is the caller graph for this function:

◆ getLinkTargetForSubTab()

ilObjStudyProgrammeIndividualPlanGUI::getLinkTargetForSubTab (   $a_tab,
  $a_ass_id 
)
protected

Definition at line 385 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by buildFrame().

386  {
387  $this->ctrl->setParameter($this, "ass_id", $a_ass_id);
388  $lnk = $this->ctrl->getLinkTarget($this, $a_tab);
389  $this->ctrl->setParameter($this, "ass_id", null);
390  return $lnk;
391  }
+ Here is the caller graph for this function:

◆ getLinkTargetView()

ilObjStudyProgrammeIndividualPlanGUI::getLinkTargetView (   $a_ass_id)

Definition at line 437 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

438  {
439  $cl = "ilObjStudyProgrammeIndividualPlanGUI";
440  $this->ctrl->setParameterByClass($cl, "ass_id", $a_ass_id);
441  $link = $this->ctrl->getLinkTargetByClass($cl, "view");
442  $this->ctrl->setParameterByClass($cl, "ass_id", null);
443  return $link;
444  }

◆ getManualStatusAccredited()

ilObjStudyProgrammeIndividualPlanGUI::getManualStatusAccredited ( )

Definition at line 432 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

433  {
434  return self::MANUAL_STATUS_ACCREDITED;
435  }

◆ getManualStatusNone()

ilObjStudyProgrammeIndividualPlanGUI::getManualStatusNone ( )

Definition at line 422 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

423  {
424  return self::MANUAL_STATUS_NONE;
425  }

◆ getManualStatusNotRelevant()

ilObjStudyProgrammeIndividualPlanGUI::getManualStatusNotRelevant ( )

Definition at line 427 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

428  {
429  return self::MANUAL_STATUS_NOT_RELEVANT;
430  }

◆ getManualStatusPostVarTitle()

ilObjStudyProgrammeIndividualPlanGUI::getManualStatusPostVarTitle ( )

Definition at line 407 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by getManualStatusUpdates().

408  {
409  return self::POST_VAR_STATUS;
410  }
+ Here is the caller graph for this function:

◆ getManualStatusUpdates()

ilObjStudyProgrammeIndividualPlanGUI::getManualStatusUpdates ( )
protected

Definition at line 329 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $_POST, and getManualStatusPostVarTitle().

Referenced by updateStatus().

330  {
331  $post_var = $this->getManualStatusPostVarTitle();
332  if (!array_key_exists($post_var, $_POST)) {
333  throw new ilException("Expected array $post_var in POST");
334  }
335  return $_POST[$post_var];
336  }
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequiredPointsPostVarTitle()

ilObjStudyProgrammeIndividualPlanGUI::getRequiredPointsPostVarTitle ( )

Definition at line 412 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by getRequiredPointsUpdates().

413  {
414  return self::POST_VAR_REQUIRED_POINTS;
415  }
+ Here is the caller graph for this function:

◆ getRequiredPointsUpdates()

ilObjStudyProgrammeIndividualPlanGUI::getRequiredPointsUpdates (   $prgrs_id)
protected

Definition at line 338 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $_POST, and getRequiredPointsPostVarTitle().

Referenced by updateRequiredPoints().

339  {
340  $post_var = $this->getRequiredPointsPostVarTitle();
341  if (!array_key_exists($post_var, $_POST)) {
342  throw new ilException("Expected array $post_var in POST");
343  }
344 
345  $post_value = $_POST[$post_var];
346  return (int) $post_value[$prgrs_id];
347  }
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ manage()

ilObjStudyProgrammeIndividualPlanGUI::manage ( )
protected

Definition at line 145 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References buildFrame(), and getAssignmentObject().

146  {
147  require_once("Modules/StudyProgramme/classes/class.ilStudyProgrammeIndividualPlanTableGUI.php");
148  $ass = $this->getAssignmentObject();
149  if (
150  $this->parent_gui->getStudyProgramme()->getAccessControlByOrguPositionsGlobal()
151  && !in_array($ass->getUserId(), $this->parent_gui->editIndividualPlan())
152  ) {
154  "may not access individua plan of user"
155  );
156  }
157  $this->ctrl->setParameter($this, "ass_id", $ass->getId());
158  $this->ctrl->setParameter($this, "cmd", "manage");
159  $table = new ilStudyProgrammeIndividualPlanTableGUI($this, $ass, $this->sp_user_progress_db);
160  $frame = $this->buildFrame("manage", $table->getHTML());
161  $this->ctrl->setParameter($this, "ass_id", null);
162  return $frame;
163  }
+ Here is the call graph for this function:

◆ postContainDeadline()

ilObjStudyProgrammeIndividualPlanGUI::postContainDeadline ( )
protected

Checks whether $_POST contains deadline.

Returns
bool

Definition at line 314 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $_POST, and getDeadlinePostVarTitle().

Referenced by getDeadlineFromForm(), and updateStatus().

315  {
316  $post_var = $this->getDeadlinePostVarTitle();
317  if (array_key_exists($post_var, $_POST)) {
318  return true;
319  }
320  return false;
321  }
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setParentGUI()

ilObjStudyProgrammeIndividualPlanGUI::setParentGUI (   $a_parent_gui)

Definition at line 74 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

75  {
76  $this->parent_gui = $a_parent_gui;
77  }

◆ setRefId()

ilObjStudyProgrammeIndividualPlanGUI::setRefId (   $a_ref_id)

Definition at line 79 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

80  {
81  $this->ref_id = $a_ref_id;
82  }

◆ showSuccessMessage()

ilObjStudyProgrammeIndividualPlanGUI::showSuccessMessage (   $a_lng_var)
protected

Definition at line 323 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by updateFromCurrentPlan(), and updateFromInput().

324  {
325  require_once("Services/Utilities/classes/class.ilUtil.php");
326  ilUtil::sendSuccess($this->lng->txt("prg_$a_lng_var"), true);
327  }
+ Here is the caller graph for this function:

◆ updateDeadline()

ilObjStudyProgrammeIndividualPlanGUI::updateDeadline ( ilStudyProgrammeUserProgress  $prgrs)
protected

Updates current deadline.

Parameters
ilStudyProgrammeUserProgress$prgrs
Returns
DateTime

Definition at line 254 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References getDeadlineFromForm(), ilStudyProgrammeUserProgress\getId(), ilStudyProgrammeUserProgress\setDeadline(), ilStudyProgrammeUserProgress\updateProgress(), and user().

Referenced by updateStatus().

255  {
256  $deadline = $this->getDeadlineFromForm($prgrs->getId());
257  $prgrs->setDeadline($deadline);
258  $prgrs->updateProgress($this->user->getId());
259 
260  return $deadline;
261  }
setDeadline(DateTime $deadline=null)
Set the deadline of this node.
updateProgress(int $user_id)
Updates current progress.
user()
Definition: user.php:4
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFromCurrentPlan()

ilObjStudyProgrammeIndividualPlanGUI::updateFromCurrentPlan ( )
protected

Definition at line 165 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References getAssignmentObject(), and showSuccessMessage().

166  {
167  $ass = $this->getAssignmentObject();
168  if (
169  $this->parent_gui->getStudyProgramme()->getAccessControlByOrguPositionsGlobal()
170  && !in_array($ass->getUserId(), $this->parent_gui->editIndividualPlan())
171  ) {
173  "may not access individual plan of user"
174  );
175  }
176  $ass->updateFromProgram();
177  $ass->updateValidityFromProgram();
178  $ass->updateDeadlineFromProgram();
179 
180  $this->ctrl->setParameter($this, "ass_id", $ass->getId());
181  $this->showSuccessMessage("update_from_plan_successful");
182  $this->ctrl->redirect($this, "manage");
183  }
+ Here is the call graph for this function:

◆ updateFromInput()

ilObjStudyProgrammeIndividualPlanGUI::updateFromInput ( )
protected

Definition at line 185 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $changed, getAssignmentId(), showSuccessMessage(), and updateStatus().

186  {
187  require_once("Modules/StudyProgramme/classes/class.ilStudyProgrammeUserProgress.php");
188 
189  $changed = false;
190 
191  $changed = $this->updateStatus();
192 
193  $this->ctrl->setParameter($this, "ass_id", $this->getAssignmentId());
194  if ($changed) {
195  $this->showSuccessMessage("update_successful");
196  }
197  $this->ctrl->redirect($this, "manage");
198  }
+ Here is the call graph for this function:

◆ updateRequiredPoints()

ilObjStudyProgrammeIndividualPlanGUI::updateRequiredPoints (   $prgrs_id)
protected

Definition at line 263 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $changed, getRequiredPointsUpdates(), ilStudyProgrammeProgress\STATUS_IN_PROGRESS, and user().

Referenced by updateStatus().

264  {
265  $required_points = $this->getRequiredPointsUpdates($prgrs_id);
266  $changed = false;
267 
268  $prgrs = $this->sp_user_progress_db->getInstanceById($prgrs_id);
269  $cur_status = $prgrs->getStatus();
271  return false;
272  }
273 
274  if ($required_points < 0) {
275  $required_points = 0;
276  }
277 
278  if ($required_points == $prgrs->getAmountOfPoints()) {
279  return false;
280  }
281 
282  $prgrs->setRequiredAmountOfPoints($required_points, $this->user->getId());
283  return true;
284  }
user()
Definition: user.php:4
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateStatus()

ilObjStudyProgrammeIndividualPlanGUI::updateStatus ( )
protected

Definition at line 200 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $changed, getManualStatusUpdates(), postContainDeadline(), ilStudyProgrammeProgress\STATUS_ACCREDITED, ilStudyProgrammeProgress\STATUS_FAILED, ilStudyProgrammeProgress\STATUS_IN_PROGRESS, ilStudyProgrammeProgress\STATUS_NOT_RELEVANT, updateDeadline(), updateRequiredPoints(), and user().

Referenced by updateFromInput().

201  {
202  $status_updates = $this->getManualStatusUpdates();
203  $changed = false;
204  foreach ($status_updates as $prgrs_id => $status) {
205  $prgrs = $this->sp_user_progress_db->getInstanceById($prgrs_id);
206  $cur_status = $prgrs->getStatus();
207  if (
208  $this->parent_gui->getStudyProgramme()->getAccessControlByOrguPositionsGlobal()
209  && !in_array($prgrs->getUserId(), $this->parent_gui->editIndividualPlan())
210  ) {
211  continue;
212  }
213  if ($status == self::MANUAL_STATUS_NONE && $cur_status == ilStudyProgrammeProgress::STATUS_ACCREDITED) {
214  $prgrs->unmarkAccredited($this->user->getId());
215  $changed = true;
216  } elseif ($status == self::MANUAL_STATUS_NONE && $cur_status == ilStudyProgrammeProgress::STATUS_NOT_RELEVANT) {
217  $prgrs->markRelevant($this->user->getId());
218  $changed = true;
219  } elseif ($status == self::MANUAL_STATUS_NOT_RELEVANT && $cur_status != ilStudyProgrammeProgress::STATUS_NOT_RELEVANT) {
220  $prgrs->markNotRelevant($this->user->getId());
221  $changed = true;
222  } elseif ($status == self::MANUAL_STATUS_ACCREDITED && $cur_status != ilStudyProgrammeProgress::STATUS_ACCREDITED) {
223  $prgrs->markAccredited($this->user->getId());
224  $changed = true;
225  }
226 
227  $deadline = null;
228  if ($this->postContainDeadline()) {
229  $deadline = $this->updateDeadline($prgrs);
230  }
231 
233  $changed = $this->updateRequiredPoints($prgrs_id) || $changed;
234 
235  if ($deadline !== null && $deadline->format('Y-m-d') < date("Y-m-d")) {
236  $prgrs->markFailed($this->user->getId());
237  }
238  } elseif ($cur_status == ilStudyProgrammeProgress::STATUS_FAILED) {
239  if ($deadline === null || $deadline->format('Y-m-d') > date("Y-m-d")) {
240  $prgrs->markNotFailed((int) $this->user->getId());
241  }
242  }
243  }
244  return $changed;
245  }
updateDeadline(ilStudyProgrammeUserProgress $prgrs)
Updates current deadline.
user()
Definition: user.php:4
postContainDeadline()
Checks whether $_POST contains deadline.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ view()

ilObjStudyProgrammeIndividualPlanGUI::view ( )
protected

Definition at line 124 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

References $tpl, buildFrame(), and getAssignmentObject().

125  {
126  require_once("Modules/StudyProgramme/classes/class.ilStudyProgrammeIndividualPlanProgressListGUI.php");
127  $progress = $this->getAssignmentObject()->getRootProgress();
128  if (
129  $this->parent_gui->getStudyProgramme()->getAccessControlByOrguPositionsGlobal()
130  && !in_array($progress->getUserId(), $this->parent_gui->viewIndividualPlan())
131  ) {
133  "may not access individua plan of user"
134  );
135  }
136  $gui = new ilStudyProgrammeIndividualPlanProgressListGUI($progress);
137  $gui->setOnlyRelevant(true);
138  // Wrap a frame around the original gui element to correct rendering.
139  $tpl = new ilTemplate("tpl.individual_plan_tree_frame.html", false, false, "Modules/StudyProgramme");
140  $tpl->setVariable("CONTENT", $gui->getHTML());
141  return $this->buildFrame("view", $tpl->get());
142  }
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilObjStudyProgrammeIndividualPlanGUI::$ctrl

◆ $lng

ilObjStudyProgrammeIndividualPlanGUI::$lng

Definition at line 32 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by __construct().

◆ $object

ilObjStudyProgrammeIndividualPlanGUI::$object

◆ $parent_gui

ilObjStudyProgrammeIndividualPlanGUI::$parent_gui
protected

◆ $sp_user_progress_db

ilObjStudyProgrammeIndividualPlanGUI::$sp_user_progress_db
protected

Definition at line 45 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by __construct().

◆ $tpl

ilObjStudyProgrammeIndividualPlanGUI::$tpl

Definition at line 22 of file class.ilObjStudyProgrammeIndividualPlanGUI.php.

Referenced by __construct(), buildFrame(), and view().

◆ $user

ilObjStudyProgrammeIndividualPlanGUI::$user

◆ MANUAL_STATUS_ACCREDITED

const ilObjStudyProgrammeIndividualPlanGUI::MANUAL_STATUS_ACCREDITED = 2

◆ MANUAL_STATUS_NONE

const ilObjStudyProgrammeIndividualPlanGUI::MANUAL_STATUS_NONE = 0

◆ MANUAL_STATUS_NOT_RELEVANT

const ilObjStudyProgrammeIndividualPlanGUI::MANUAL_STATUS_NOT_RELEVANT = 1

◆ POST_VAR_DEADLINE

const ilObjStudyProgrammeIndividualPlanGUI::POST_VAR_DEADLINE = "deadline"

◆ POST_VAR_REQUIRED_POINTS

const ilObjStudyProgrammeIndividualPlanGUI::POST_VAR_REQUIRED_POINTS = "required_points"

◆ POST_VAR_STATUS

const ilObjStudyProgrammeIndividualPlanGUI::POST_VAR_STATUS = "status"

The documentation for this class was generated from the following file: