{"action":"created","comment":{"url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments/49971837","id":49971837,"diff_hunk":"@@ -0,0 +1,462 @@\n+<?php\n+\n+/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */#\n+\n+/**\n+* My Trainings Admin Appointments GUI for Generali\n+*\n+* @author\tStefan Hecken <stefan.hecken@concepts-and-training.de>\n+* @version\t$Id$\n+*\n+* @ilCtrl_Calls gevMyTrainingsAdminGUI: ilParticipationStatusAdminGUI\n+* @ilCtrl_Calls gevMyTrainingsAdminGUI: gevDesktopGUI\n+* @ilCtrl_Calls gevMyTrainingsAdminGUI: gevMaillogGUI\n+*\n+*/\n+\n+require_once(\"Services/CaTUIComponents/classes/class.catTitleGUI.php\");\n+require_once(\"Services/CaTUIComponents/classes/class.catHSpacerGUI.php\");\n+require_once(\"Services/GEV/Desktop/classes/class.gevMyTrainingsAdminTableGUI.php\");\n+require_once(\"Services/Utilities/classes/class.ilUtil.php\");\n+\n+class gevMyTrainingsAdminGUI {\n+\n+\tpublic $crs_ref_id;\n+\n+\tpublic function __construct() {\n+\t\tglobal $lng, $ilCtrl, $tpl, $ilUser, $ilLog;\n+\t\t\n+\t\t$this->gLng = $lng;\n+\t\t$this->gCtrl = $ilCtrl;\n+\t\t$this->gTpl = $tpl;\n+\t\t$this->gUser = $ilUser;\n+\t\t$this->gLog = $ilLog;\n+\t\n+\t\t$this->crs_ref_id = false;\n+\t}\n+\t\n+\tpublic function executeCommand() {\n+\t\t$cmd = $this->gCtrl->getCmd();\n+\t\tif (!$cmd) {\n+\t\t\t$cmd = \"view\";\n+\t\t}\n+\t\t\n+\t\t$in_search = false;\n+\t\tif($cmd == \"search\") {\n+\t\t\t$in_search = true;\n+\t\t\t$cmd = \"view\";\n+\t\t}\n+\t\t\n+\t\tswitch ($cmd) {\n+\t\t\tcase \"view\":\n+\t\t\t\t$cont = $this->view($in_search);\n+\t\t\t\tbreak;\n+\t\t\tcase \"memberList\":\n+\t\t\tcase \"showOvernights\":\n+\t\t\tcase \"saveOvernights\":\n+\t\t\tcase \"viewBookings\":\n+\t\t\tcase \"backFromBookings\":\n+\t\t\tcase \"saveSendMailDate\":\n+\t\t\t\t$cont = $this->$cmd();\n+\t\t\t\tbreak;\n+\n+\t\t\t//participation-status commands\t\n+\t\t\t//case \"setParticipationStatus\":\n+\t\t\tcase \"listStatus\":\n+\t\t\tcase  \"listParticipationStatus\":\n+\t\t\t\t$cont = $this->listParticipationStatus();\n+\t\t\t\tbreak;\n+\n+\t\t\tcase \"finalize\":\n+\t\t\tcase \"confirmFinalize\":\n+\t\t\tcase \"saveStatusAndPoints\":\n+\t\t\tcase \"uploadAttendanceList\":\n+\t\t\tcase \"viewAttendanceList\":\n+\t\t\t\t//ilParticipationStatusTableGUI\n+\t\t\t\trequire_once(\"Services/ParticipationStatus/classes/class.ilParticipationStatusAdminGUI.php\");\n+\t\t\t\t$crs_ref_id = $this->getCrsRefId();\n+\t\t\t\t$gui = ilParticipationStatusAdminGUI::getInstanceByRefId($crs_ref_id);\n+\t\t\t\t\n+\t\t\t\t$gui->from_foreign_class = 'gevMyTrainingsApGUI';\n+\t\t\t\t$gui->crs_ref_id = $crs_ref_id;\n+\t\t\t\t$this->gCtrl->setParameter($gui, \"crsrefid\", $crs_ref_id);\n+\n+\t\t\t\t//$gui->returnToList();\n+\t\t\t\t//die('forwarding cmd');\n+\t\t\t\t$ret = $this->gCtrl->forwardCommand($gui);\n+\t\t\t\tbreak;\n+\t\t\tcase \"showMaillog\":\n+\t\t\tcase \"showLoggedMail\":\n+\t\t\tcase \"resendMail\":\n+\t\t\t\trequire_once(\"Services/GEV/Mailing/classes/class.gevMaillogGUI.php\");\n+\t\t\t\t$gui = new gevMaillogGUI(\"mytrainigsapgui\");\n+\t\t\t\t$ret = $this->gCtrl->forwardCommand($gui);\n+\t\t\t\tbreak;\n+\t\t\tcase \"showSettings\":\n+\t\t\t\trequire_once(\"Services/GEV/DecentralTrainings/classes/class.gevDecentralTrainingGUI.php\");\n+\t\t\t\t$gui = new gevDecentralTrainingGUI();\n+\t\t\t\t$ret = $this->gCtrl->forwardCommand($gui);\n+\t\t\t\tbreak;\n+\t\t\tdefault:\n+\t\t\t\t$errstr = \"gevMyTrainingsApGUI: Unknown command '\".$cmd.\"'\";\n+\t\t\t\t$this->gLog->write($errstr);\n+\t\t\t\tthrow new ilException($errstr);\n+\t\t}\n+\t\t\n+\t\tif ($cont) {\n+\t\t\t$this->gTpl->setContent($cont);\n+\t\t}\n+\t}\n+\t\n+\n+\n+\tpublic function getCrsRefId() {\n+\t\t$crs_ref_id = $_GET['crsrefid'];\n+\n+        if(!$crs_ref_id) {","path":"Services/GEV/Desktop/classes/class.gevMyTrainingsAdminGUI.php","position":116,"original_position":116,"commit_id":"3950cb3de603121d8c861a8a58ebb967d9629a3a","original_commit_id":"3950cb3de603121d8c861a8a58ebb967d9629a3a","user":{"login":"shecken","id":12557020,"avatar_url":"https://avatars.githubusercontent.com/u/12557020?v=3","gravatar_id":"","url":"https://api.github.com/users/shecken","html_url":"https://github.com/shecken","followers_url":"https://api.github.com/users/shecken/followers","following_url":"https://api.github.com/users/shecken/following{/other_user}","gists_url":"https://api.github.com/users/shecken/gists{/gist_id}","starred_url":"https://api.github.com/users/shecken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shecken/subscriptions","organizations_url":"https://api.github.com/users/shecken/orgs","repos_url":"https://api.github.com/users/shecken/repos","events_url":"https://api.github.com/users/shecken/events{/privacy}","received_events_url":"https://api.github.com/users/shecken/received_events","type":"User","site_admin":false},"body":"git hub hats kaputt gemacht. da waren leerzeichen","created_at":"2016-01-18T08:39:47Z","updated_at":"2016-01-18T08:39:47Z","html_url":"https://github.com/conceptsandtraining/ILIAS/pull/171#discussion_r49971837","pull_request_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments/49971837"},"html":{"href":"https://github.com/conceptsandtraining/ILIAS/pull/171#discussion_r49971837"},"pull_request":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171","id":55633589,"html_url":"https://github.com/conceptsandtraining/ILIAS/pull/171","diff_url":"https://github.com/conceptsandtraining/ILIAS/pull/171.diff","patch_url":"https://github.com/conceptsandtraining/ILIAS/pull/171.patch","issue_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/171","number":171,"state":"open","locked":false,"title":"4 4 generali tickets for next release","user":{"login":"shecken","id":12557020,"avatar_url":"https://avatars.githubusercontent.com/u/12557020?v=3","gravatar_id":"","url":"https://api.github.com/users/shecken","html_url":"https://github.com/shecken","followers_url":"https://api.github.com/users/shecken/followers","following_url":"https://api.github.com/users/shecken/following{/other_user}","gists_url":"https://api.github.com/users/shecken/gists{/gist_id}","starred_url":"https://api.github.com/users/shecken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shecken/subscriptions","organizations_url":"https://api.github.com/users/shecken/orgs","repos_url":"https://api.github.com/users/shecken/repos","events_url":"https://api.github.com/users/shecken/events{/privacy}","received_events_url":"https://api.github.com/users/shecken/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-11T15:13:18Z","updated_at":"2016-01-18T08:39:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d82799e9055cb6d08987decda47a70f2bcbe6575","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171/commits","review_comments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171/comments","review_comment_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/171/comments","statuses_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/statuses/3950cb3de603121d8c861a8a58ebb967d9629a3a","head":{"label":"shecken:4_4_generali","ref":"4_4_generali","sha":"3950cb3de603121d8c861a8a58ebb967d9629a3a","user":{"login":"shecken","id":12557020,"avatar_url":"https://avatars.githubusercontent.com/u/12557020?v=3","gravatar_id":"","url":"https://api.github.com/users/shecken","html_url":"https://github.com/shecken","followers_url":"https://api.github.com/users/shecken/followers","following_url":"https://api.github.com/users/shecken/following{/other_user}","gists_url":"https://api.github.com/users/shecken/gists{/gist_id}","starred_url":"https://api.github.com/users/shecken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shecken/subscriptions","organizations_url":"https://api.github.com/users/shecken/orgs","repos_url":"https://api.github.com/users/shecken/repos","events_url":"https://api.github.com/users/shecken/events{/privacy}","received_events_url":"https://api.github.com/users/shecken/received_events","type":"User","site_admin":false},"repo":{"id":44175140,"name":"ILIAS","full_name":"shecken/ILIAS","owner":{"login":"shecken","id":12557020,"avatar_url":"https://avatars.githubusercontent.com/u/12557020?v=3","gravatar_id":"","url":"https://api.github.com/users/shecken","html_url":"https://github.com/shecken","followers_url":"https://api.github.com/users/shecken/followers","following_url":"https://api.github.com/users/shecken/following{/other_user}","gists_url":"https://api.github.com/users/shecken/gists{/gist_id}","starred_url":"https://api.github.com/users/shecken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shecken/subscriptions","organizations_url":"https://api.github.com/users/shecken/orgs","repos_url":"https://api.github.com/users/shecken/repos","events_url":"https://api.github.com/users/shecken/events{/privacy}","received_events_url":"https://api.github.com/users/shecken/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shecken/ILIAS","description":"","fork":true,"url":"https://api.github.com/repos/shecken/ILIAS","forks_url":"https://api.github.com/repos/shecken/ILIAS/forks","keys_url":"https://api.github.com/repos/shecken/ILIAS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shecken/ILIAS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shecken/ILIAS/teams","hooks_url":"https://api.github.com/repos/shecken/ILIAS/hooks","issue_events_url":"https://api.github.com/repos/shecken/ILIAS/issues/events{/number}","events_url":"https://api.github.com/repos/shecken/ILIAS/events","assignees_url":"https://api.github.com/repos/shecken/ILIAS/assignees{/user}","branches_url":"https://api.github.com/repos/shecken/ILIAS/branches{/branch}","tags_url":"https://api.github.com/repos/shecken/ILIAS/tags","blobs_url":"https://api.github.com/repos/shecken/ILIAS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shecken/ILIAS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shecken/ILIAS/git/refs{/sha}","trees_url":"https://api.github.com/repos/shecken/ILIAS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shecken/ILIAS/statuses/{sha}","languages_url":"https://api.github.com/repos/shecken/ILIAS/languages","stargazers_url":"https://api.github.com/repos/shecken/ILIAS/stargazers","contributors_url":"https://api.github.com/repos/shecken/ILIAS/contributors","subscribers_url":"https://api.github.com/repos/shecken/ILIAS/subscribers","subscription_url":"https://api.github.com/repos/shecken/ILIAS/subscription","commits_url":"https://api.github.com/repos/shecken/ILIAS/commits{/sha}","git_commits_url":"https://api.github.com/repos/shecken/ILIAS/git/commits{/sha}","comments_url":"https://api.github.com/repos/shecken/ILIAS/comments{/number}","issue_comment_url":"https://api.github.com/repos/shecken/ILIAS/issues/comments{/number}","contents_url":"https://api.github.com/repos/shecken/ILIAS/contents/{+path}","compare_url":"https://api.github.com/repos/shecken/ILIAS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shecken/ILIAS/merges","archive_url":"https://api.github.com/repos/shecken/ILIAS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shecken/ILIAS/downloads","issues_url":"https://api.github.com/repos/shecken/ILIAS/issues{/number}","pulls_url":"https://api.github.com/repos/shecken/ILIAS/pulls{/number}","milestones_url":"https://api.github.com/repos/shecken/ILIAS/milestones{/number}","notifications_url":"https://api.github.com/repos/shecken/ILIAS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shecken/ILIAS/labels{/name}","releases_url":"https://api.github.com/repos/shecken/ILIAS/releases{/id}","created_at":"2015-10-13T12:36:44Z","updated_at":"2015-10-13T12:38:07Z","pushed_at":"2016-01-18T08:36:55Z","git_url":"git://github.com/shecken/ILIAS.git","ssh_url":"git@github.com:shecken/ILIAS.git","clone_url":"https://github.com/shecken/ILIAS.git","svn_url":"https://github.com/shecken/ILIAS","homepage":"","size":485878,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"release_5-0"}},"base":{"label":"conceptsandtraining:4_4_generali","ref":"4_4_generali","sha":"c74cdbc6b4af970fd7e5d4f62ab11a68418bf67d","user":{"login":"conceptsandtraining","id":7535875,"avatar_url":"https://avatars.githubusercontent.com/u/7535875?v=3","gravatar_id":"","url":"https://api.github.com/users/conceptsandtraining","html_url":"https://github.com/conceptsandtraining","followers_url":"https://api.github.com/users/conceptsandtraining/followers","following_url":"https://api.github.com/users/conceptsandtraining/following{/other_user}","gists_url":"https://api.github.com/users/conceptsandtraining/gists{/gist_id}","starred_url":"https://api.github.com/users/conceptsandtraining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conceptsandtraining/subscriptions","organizations_url":"https://api.github.com/users/conceptsandtraining/orgs","repos_url":"https://api.github.com/users/conceptsandtraining/repos","events_url":"https://api.github.com/users/conceptsandtraining/events{/privacy}","received_events_url":"https://api.github.com/users/conceptsandtraining/received_events","type":"Organization","site_admin":false},"repo":{"id":39509518,"name":"ILIAS","full_name":"conceptsandtraining/ILIAS","owner":{"login":"conceptsandtraining","id":7535875,"avatar_url":"https://avatars.githubusercontent.com/u/7535875?v=3","gravatar_id":"","url":"https://api.github.com/users/conceptsandtraining","html_url":"https://github.com/conceptsandtraining","followers_url":"https://api.github.com/users/conceptsandtraining/followers","following_url":"https://api.github.com/users/conceptsandtraining/following{/other_user}","gists_url":"https://api.github.com/users/conceptsandtraining/gists{/gist_id}","starred_url":"https://api.github.com/users/conceptsandtraining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conceptsandtraining/subscriptions","organizations_url":"https://api.github.com/users/conceptsandtraining/orgs","repos_url":"https://api.github.com/users/conceptsandtraining/repos","events_url":"https://api.github.com/users/conceptsandtraining/events{/privacy}","received_events_url":"https://api.github.com/users/conceptsandtraining/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/conceptsandtraining/ILIAS","description":"ILIAS - Open Source e-Learning","fork":true,"url":"https://api.github.com/repos/conceptsandtraining/ILIAS","forks_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/forks","keys_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/teams","hooks_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/hooks","issue_events_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/events{/number}","events_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/events","assignees_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/assignees{/user}","branches_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/branches{/branch}","tags_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/tags","blobs_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/git/refs{/sha}","trees_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/statuses/{sha}","languages_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/languages","stargazers_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/stargazers","contributors_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/contributors","subscribers_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/subscribers","subscription_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/subscription","commits_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/commits{/sha}","git_commits_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/git/commits{/sha}","comments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/comments{/number}","issue_comment_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/comments{/number}","contents_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/contents/{+path}","compare_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/merges","archive_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/downloads","issues_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues{/number}","pulls_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls{/number}","milestones_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/milestones{/number}","notifications_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/labels{/name}","releases_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/releases{/id}","created_at":"2015-07-22T14:04:03Z","updated_at":"2015-07-22T14:04:51Z","pushed_at":"2016-01-18T08:36:55Z","git_url":"git://github.com/conceptsandtraining/ILIAS.git","ssh_url":"git@github.com:conceptsandtraining/ILIAS.git","clone_url":"https://github.com/conceptsandtraining/ILIAS.git","svn_url":"https://github.com/conceptsandtraining/ILIAS","homepage":"http://www.ilias.de","size":460840,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"release_5-0"}},"_links":{"self":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171"},"html":{"href":"https://github.com/conceptsandtraining/ILIAS/pull/171"},"issue":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/171"},"comments":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/statuses/3950cb3de603121d8c861a8a58ebb967d9629a3a"}}}}