{"action":"created","comment":{"url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments/173742852","pull_request_review_id":102979666,"id":173742852,"diff_hunk":"@@ -0,0 +1,58 @@\n+<?php\n+\n+namespace ILIAS\\TMS\\CourseCreation;\n+\n+trait ChildAssistant\n+{\n+\t/**\n+\t * Get all children by type recursive\n+\t *\n+\t * @param int \t$ref_id\n+\t * @param string \t$search_type\n+\t *\n+\t * @return Object \tof search type\n+\t */\n+\tprotected function getAllChildrenOfByType($ref_id, $search_type)\n+\t{\n+\t\t$g_tree = $this->getDIC()->repositoryTree();\n+\t\t$g_objDefinition = $this->getDIC()[\"objDefinition\"];\n+\t\t$childs = $g_tree->getChilds($ref_id);\n+\t\t$ret = array();\n+\n+\t\tforeach ($childs as $child) {\n+\t\t\t$type = $child[\"type\"];\n+\t\t\tif ($type == $search_type) {\n+\t\t\t\t$ret[] = \\ilObjectFactory::getInstanceByRefId($child[\"child\"]);\n+\t\t\t}\n+\n+\t\t\tif ($g_objDefinition->isContainer($type)) {\n+\t\t\t\t$rec_ret = $this->getAllChildrenOfByType($child[\"child\"], $search_type);\n+\t\t\t\tif (! is_null($rec_ret)) {","path":"src/TMS/CourseCreation/ChildAssistant.php","position":30,"original_position":30,"commit_id":"7acb5848644f21b84fa41fccc87c5d877fa2e3ae","original_commit_id":"7acb5848644f21b84fa41fccc87c5d877fa2e3ae","user":{"login":"shecken","id":12557020,"avatar_url":"https://avatars3.githubusercontent.com/u/12557020?v=4","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":"nötig nicht, aber es macht ja auch nix kaputt. Würde das gerne aus Zeitgründen als ToDo aufnehmen und dann später entfernen.","created_at":"2018-03-12T10:04:39Z","updated_at":"2018-03-12T10:04:39Z","html_url":"https://github.com/conceptsandtraining/ILIAS/pull/1392#discussion_r173742852","pull_request_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments/173742852"},"html":{"href":"https://github.com/conceptsandtraining/ILIAS/pull/1392#discussion_r173742852"},"pull_request":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392"}},"in_reply_to_id":173739815},"pull_request":{"url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392","id":173166648,"html_url":"https://github.com/conceptsandtraining/ILIAS/pull/1392","diff_url":"https://github.com/conceptsandtraining/ILIAS/pull/1392.diff","patch_url":"https://github.com/conceptsandtraining/ILIAS/pull/1392.patch","issue_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/1392","number":1392,"state":"open","locked":false,"title":"TMS - 886 new trait for child actions","user":{"login":"shecken","id":12557020,"avatar_url":"https://avatars3.githubusercontent.com/u/12557020?v=4","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":"https://jira.cat.internal/browse/TMS-886","created_at":"2018-03-06T14:03:12Z","updated_at":"2018-03-12T10:04:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b09b2fe2a65c59352bcdc92b1559278c8d0d77dc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392/commits","review_comments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392/comments","review_comment_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/1392/comments","statuses_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/statuses/7acb5848644f21b84fa41fccc87c5d877fa2e3ae","head":{"label":"shecken:tms_886","ref":"tms_886","sha":"7acb5848644f21b84fa41fccc87c5d877fa2e3ae","user":{"login":"shecken","id":12557020,"avatar_url":"https://avatars3.githubusercontent.com/u/12557020?v=4","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://avatars3.githubusercontent.com/u/12557020?v=4","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":null,"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}","deployments_url":"https://api.github.com/repos/shecken/ILIAS/deployments","created_at":"2015-10-13T12:36:44Z","updated_at":"2016-05-23T09:35:12Z","pushed_at":"2018-03-12T09:42:18Z","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":791726,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"release_5-2"}},"base":{"label":"conceptsandtraining:tms","ref":"tms","sha":"929dfae4ffee5d5718a3dc0fedfef75b84b5272b","user":{"login":"conceptsandtraining","id":7535875,"avatar_url":"https://avatars2.githubusercontent.com/u/7535875?v=4","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://avatars2.githubusercontent.com/u/7535875?v=4","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}","deployments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/deployments","created_at":"2015-07-22T14:04:03Z","updated_at":"2017-03-07T14:24:16Z","pushed_at":"2018-03-12T09:44: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":744556,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":3,"open_issues":5,"watchers":0,"default_branch":"tms"}},"_links":{"self":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392"},"html":{"href":"https://github.com/conceptsandtraining/ILIAS/pull/1392"},"issue":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/1392"},"comments":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/1392/comments"},"review_comments":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392/comments"},"review_comment":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/1392/commits"},"statuses":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/statuses/7acb5848644f21b84fa41fccc87c5d877fa2e3ae"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"shecken"}}