{"action":"created","comment":{"url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments/56981676","id":56981676,"diff_hunk":"@@ -0,0 +1,67 @@\n+<?php\n+\n+namespace CaT\\Filter\\Types;\n+\n+\n+class DictionaryType extends Type {\n+\tprivate $sub_types;\n+\t\n+\tpublic function __construct(array $types ) {\n+\n+\t\tforeach ($types as $key => $type) {\n+\t\t\tif(!($type instanceof \\CaT\\Filter\\Types\\Type)) {\n+\t\t\t\tthrow new \\InvalidArgumentException(\"DictionaryType::Expected type\");\n+\t\t\t}\n+\t\t}\n+\t\t$this->sub_types = $types;\n+\t}\n+\t\n+\t/**\n+\t * @inheritdocs\n+\t */\n+\tpublic function contains($value) {\n+\t\tif(count($value) !== count($this->sub_types)) {\n+\t\t\treturn false;\n+\t\t}\n+\t\tforeach ($this->sub_types as $key => $type) {\n+\t\t\tif(!array_key_exists($key, $value)) {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t\tif(!$type->contains($value[$key])) {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * @inheritdocs\n+\t */\n+\tpublic function repr() {\n+\t\treturn var_dump(array_map(function($type, $key) {return array($key => $type->repr);}, $this->sub_types, array_keys($this->sub_types)));","path":"CaT/src/Filter/Types/DictionaryType.php","position":41,"original_position":41,"commit_id":"59c5ab1122d660bad64587008d9c0b790f9aba16","original_commit_id":"59c5ab1122d660bad64587008d9c0b790f9aba16","user":{"login":"dkloepfer","id":11980593,"avatar_url":"https://avatars.githubusercontent.com/u/11980593?v=3","gravatar_id":"","url":"https://api.github.com/users/dkloepfer","html_url":"https://github.com/dkloepfer","followers_url":"https://api.github.com/users/dkloepfer/followers","following_url":"https://api.github.com/users/dkloepfer/following{/other_user}","gists_url":"https://api.github.com/users/dkloepfer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkloepfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkloepfer/subscriptions","organizations_url":"https://api.github.com/users/dkloepfer/orgs","repos_url":"https://api.github.com/users/dkloepfer/repos","events_url":"https://api.github.com/users/dkloepfer/events{/privacy}","received_events_url":"https://api.github.com/users/dkloepfer/received_events","type":"User","site_admin":false},"body":"Als beispiel kannst du den Teil des Requests sehen, der sich mit deinem Report beschäftigt. Da habe ich das dictionary type schon benutzt","created_at":"2016-03-22T13:04:13Z","updated_at":"2016-03-22T13:04:13Z","html_url":"https://github.com/conceptsandtraining/ILIAS/pull/276#discussion_r56981676","pull_request_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276","_links":{"self":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments/56981676"},"html":{"href":"https://github.com/conceptsandtraining/ILIAS/pull/276#discussion_r56981676"},"pull_request":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276"}}},"pull_request":{"url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276","id":61383864,"html_url":"https://github.com/conceptsandtraining/ILIAS/pull/276","diff_url":"https://github.com/conceptsandtraining/ILIAS/pull/276.diff","patch_url":"https://github.com/conceptsandtraining/ILIAS/pull/276.patch","issue_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/276","number":276,"state":"open","locked":false,"title":"4 4 generali filters IS NULL predicate and dictionary type","user":{"login":"dkloepfer","id":11980593,"avatar_url":"https://avatars.githubusercontent.com/u/11980593?v=3","gravatar_id":"","url":"https://api.github.com/users/dkloepfer","html_url":"https://github.com/dkloepfer","followers_url":"https://api.github.com/users/dkloepfer/followers","following_url":"https://api.github.com/users/dkloepfer/following{/other_user}","gists_url":"https://api.github.com/users/dkloepfer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkloepfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkloepfer/subscriptions","organizations_url":"https://api.github.com/users/dkloepfer/orgs","repos_url":"https://api.github.com/users/dkloepfer/repos","events_url":"https://api.github.com/users/dkloepfer/events{/privacy}","received_events_url":"https://api.github.com/users/dkloepfer/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-02T11:04:38Z","updated_at":"2016-03-22T13:04:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9061ed4ada927f6c6e36d84703edc0b0a29ff5c4","assignee":{"login":"klees","id":10611082,"avatar_url":"https://avatars.githubusercontent.com/u/10611082?v=3","gravatar_id":"","url":"https://api.github.com/users/klees","html_url":"https://github.com/klees","followers_url":"https://api.github.com/users/klees/followers","following_url":"https://api.github.com/users/klees/following{/other_user}","gists_url":"https://api.github.com/users/klees/gists{/gist_id}","starred_url":"https://api.github.com/users/klees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klees/subscriptions","organizations_url":"https://api.github.com/users/klees/orgs","repos_url":"https://api.github.com/users/klees/repos","events_url":"https://api.github.com/users/klees/events{/privacy}","received_events_url":"https://api.github.com/users/klees/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276/commits","review_comments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276/comments","review_comment_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/276/comments","statuses_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/statuses/59c5ab1122d660bad64587008d9c0b790f9aba16","head":{"label":"dkloepfer:4_4_generali_filters","ref":"4_4_generali_filters","sha":"59c5ab1122d660bad64587008d9c0b790f9aba16","user":{"login":"dkloepfer","id":11980593,"avatar_url":"https://avatars.githubusercontent.com/u/11980593?v=3","gravatar_id":"","url":"https://api.github.com/users/dkloepfer","html_url":"https://github.com/dkloepfer","followers_url":"https://api.github.com/users/dkloepfer/followers","following_url":"https://api.github.com/users/dkloepfer/following{/other_user}","gists_url":"https://api.github.com/users/dkloepfer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkloepfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkloepfer/subscriptions","organizations_url":"https://api.github.com/users/dkloepfer/orgs","repos_url":"https://api.github.com/users/dkloepfer/repos","events_url":"https://api.github.com/users/dkloepfer/events{/privacy}","received_events_url":"https://api.github.com/users/dkloepfer/received_events","type":"User","site_admin":false},"repo":{"id":43115809,"name":"ILIAS","full_name":"dkloepfer/ILIAS","owner":{"login":"dkloepfer","id":11980593,"avatar_url":"https://avatars.githubusercontent.com/u/11980593?v=3","gravatar_id":"","url":"https://api.github.com/users/dkloepfer","html_url":"https://github.com/dkloepfer","followers_url":"https://api.github.com/users/dkloepfer/followers","following_url":"https://api.github.com/users/dkloepfer/following{/other_user}","gists_url":"https://api.github.com/users/dkloepfer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkloepfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkloepfer/subscriptions","organizations_url":"https://api.github.com/users/dkloepfer/orgs","repos_url":"https://api.github.com/users/dkloepfer/repos","events_url":"https://api.github.com/users/dkloepfer/events{/privacy}","received_events_url":"https://api.github.com/users/dkloepfer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkloepfer/ILIAS","description":"ILIAS - Open Source e-Learning","fork":true,"url":"https://api.github.com/repos/dkloepfer/ILIAS","forks_url":"https://api.github.com/repos/dkloepfer/ILIAS/forks","keys_url":"https://api.github.com/repos/dkloepfer/ILIAS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkloepfer/ILIAS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkloepfer/ILIAS/teams","hooks_url":"https://api.github.com/repos/dkloepfer/ILIAS/hooks","issue_events_url":"https://api.github.com/repos/dkloepfer/ILIAS/issues/events{/number}","events_url":"https://api.github.com/repos/dkloepfer/ILIAS/events","assignees_url":"https://api.github.com/repos/dkloepfer/ILIAS/assignees{/user}","branches_url":"https://api.github.com/repos/dkloepfer/ILIAS/branches{/branch}","tags_url":"https://api.github.com/repos/dkloepfer/ILIAS/tags","blobs_url":"https://api.github.com/repos/dkloepfer/ILIAS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkloepfer/ILIAS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkloepfer/ILIAS/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkloepfer/ILIAS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkloepfer/ILIAS/statuses/{sha}","languages_url":"https://api.github.com/repos/dkloepfer/ILIAS/languages","stargazers_url":"https://api.github.com/repos/dkloepfer/ILIAS/stargazers","contributors_url":"https://api.github.com/repos/dkloepfer/ILIAS/contributors","subscribers_url":"https://api.github.com/repos/dkloepfer/ILIAS/subscribers","subscription_url":"https://api.github.com/repos/dkloepfer/ILIAS/subscription","commits_url":"https://api.github.com/repos/dkloepfer/ILIAS/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkloepfer/ILIAS/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkloepfer/ILIAS/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkloepfer/ILIAS/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkloepfer/ILIAS/contents/{+path}","compare_url":"https://api.github.com/repos/dkloepfer/ILIAS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkloepfer/ILIAS/merges","archive_url":"https://api.github.com/repos/dkloepfer/ILIAS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkloepfer/ILIAS/downloads","issues_url":"https://api.github.com/repos/dkloepfer/ILIAS/issues{/number}","pulls_url":"https://api.github.com/repos/dkloepfer/ILIAS/pulls{/number}","milestones_url":"https://api.github.com/repos/dkloepfer/ILIAS/milestones{/number}","notifications_url":"https://api.github.com/repos/dkloepfer/ILIAS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkloepfer/ILIAS/labels{/name}","releases_url":"https://api.github.com/repos/dkloepfer/ILIAS/releases{/id}","deployments_url":"https://api.github.com/repos/dkloepfer/ILIAS/deployments","created_at":"2015-09-25T07:21:00Z","updated_at":"2015-09-25T07:22:24Z","pushed_at":"2016-03-22T12:58:33Z","git_url":"git://github.com/dkloepfer/ILIAS.git","ssh_url":"git@github.com:dkloepfer/ILIAS.git","clone_url":"https://github.com/dkloepfer/ILIAS.git","svn_url":"https://github.com/dkloepfer/ILIAS","homepage":"http://www.ilias.de","size":488863,"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":"a3da16d4bc63f265a8fe7069ea576f2039f336f5","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}","deployments_url":"https://api.github.com/repos/conceptsandtraining/ILIAS/deployments","created_at":"2015-07-22T14:04:03Z","updated_at":"2015-07-22T14:04:51Z","pushed_at":"2016-03-22T12:58:33Z","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":511747,"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":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"release_5-0"}},"_links":{"self":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276"},"html":{"href":"https://github.com/conceptsandtraining/ILIAS/pull/276"},"issue":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/276"},"comments":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/issues/276/comments"},"review_comments":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276/comments"},"review_comment":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/pulls/276/commits"},"statuses":{"href":"https://api.github.com/repos/conceptsandtraining/ILIAS/statuses/59c5ab1122d660bad64587008d9c0b790f9aba16"}}}}