{"action":"created","comment":{"url":"https://api.github.com/repos/koala-framework/koala-framework/pulls/comments/32617187","id":32617187,"diff_hunk":"@@ -14,16 +17,28 @@ public function getListeners()\n                         array(strpos($class, '.') ? substr($class, 0, strpos($class, '.')) : $class, 'getItemDirectoryClasses'), $class\n                     );\n                     foreach ($directoryClasses as $directoryClass) {\n-                        $ret[] = array(\n-                            'class' => $directoryClass,\n-                            'event' => 'Kwc_Directories_List_EventItemInserted',\n-                            'callback' => 'onDirectoryRowInsert'\n-                        );\n-                        $ret[] = array(\n-                            'class' => $directoryClass,\n-                            'event' => 'Kwc_Directories_List_EventItemDeleted',\n-                            'callback' => 'onDirectoryRowDelete'\n-                        );\n+                        if (in_array($directoryClass, $processedDirectories)) {\n+                            //add only once\n+                            continue;\n+                        }\n+                        $processedDirectories[] = $directoryClass;\n+                        foreach (Kwc_Abstract::getChildComponentClasses($directoryClass, 'detail') as $detailClass) {\n+                            if (in_array($detailClass, $processedDetails)) {\n+                                //add only once\n+                                continue;\n+                            }","path":"Kwc/Directories/List/View/Events.php","position":33,"original_position":33,"commit_id":"00af2decfb36f868f771bb9ee969af5dde84fe80","original_commit_id":"00af2decfb36f868f771bb9ee969af5dde84fe80","user":{"login":"fraxachun","id":1013756,"avatar_url":"https://avatars.githubusercontent.com/u/1013756?v=3","gravatar_id":"","url":"https://api.github.com/users/fraxachun","html_url":"https://github.com/fraxachun","followers_url":"https://api.github.com/users/fraxachun/followers","following_url":"https://api.github.com/users/fraxachun/following{/other_user}","gists_url":"https://api.github.com/users/fraxachun/gists{/gist_id}","starred_url":"https://api.github.com/users/fraxachun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraxachun/subscriptions","organizations_url":"https://api.github.com/users/fraxachun/orgs","repos_url":"https://api.github.com/users/fraxachun/repos","events_url":"https://api.github.com/users/fraxachun/events{/privacy}","received_events_url":"https://api.github.com/users/fraxachun/received_events","type":"User","site_admin":false},"body":"$detailClass is not used?","created_at":"2015-06-17T11:32:19Z","updated_at":"2015-06-17T11:32:19Z","html_url":"https://github.com/koala-framework/koala-framework/pull/363#discussion_r32617187","pull_request_url":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363","_links":{"self":{"href":"https://api.github.com/repos/koala-framework/koala-framework/pulls/comments/32617187"},"html":{"href":"https://github.com/koala-framework/koala-framework/pull/363#discussion_r32617187"},"pull_request":{"href":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363"}}},"pull_request":{"url":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363","id":37878548,"html_url":"https://github.com/koala-framework/koala-framework/pull/363","diff_url":"https://github.com/koala-framework/koala-framework/pull/363.diff","patch_url":"https://github.com/koala-framework/koala-framework/pull/363.patch","issue_url":"https://api.github.com/repos/koala-framework/koala-framework/issues/363","number":363,"state":"open","locked":false,"title":"Add tags to view cache","user":{"login":"nsams","id":50764,"avatar_url":"https://avatars.githubusercontent.com/u/50764?v=3","gravatar_id":"","url":"https://api.github.com/users/nsams","html_url":"https://github.com/nsams","followers_url":"https://api.github.com/users/nsams/followers","following_url":"https://api.github.com/users/nsams/following{/other_user}","gists_url":"https://api.github.com/users/nsams/gists{/gist_id}","starred_url":"https://api.github.com/users/nsams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsams/subscriptions","organizations_url":"https://api.github.com/users/nsams/orgs","repos_url":"https://api.github.com/users/nsams/repos","events_url":"https://api.github.com/users/nsams/events{/privacy}","received_events_url":"https://api.github.com/users/nsams/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-17T08:54:41Z","updated_at":"2015-06-17T11:32:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72de4cd9945a922a67ceacb7a4ee72f36c86332c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363/commits","review_comments_url":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363/comments","review_comment_url":"https://api.github.com/repos/koala-framework/koala-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koala-framework/koala-framework/issues/363/comments","statuses_url":"https://api.github.com/repos/koala-framework/koala-framework/statuses/00af2decfb36f868f771bb9ee969af5dde84fe80","head":{"label":"nsams:view-cache-tag","ref":"view-cache-tag","sha":"00af2decfb36f868f771bb9ee969af5dde84fe80","user":{"login":"nsams","id":50764,"avatar_url":"https://avatars.githubusercontent.com/u/50764?v=3","gravatar_id":"","url":"https://api.github.com/users/nsams","html_url":"https://github.com/nsams","followers_url":"https://api.github.com/users/nsams/followers","following_url":"https://api.github.com/users/nsams/following{/other_user}","gists_url":"https://api.github.com/users/nsams/gists{/gist_id}","starred_url":"https://api.github.com/users/nsams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsams/subscriptions","organizations_url":"https://api.github.com/users/nsams/orgs","repos_url":"https://api.github.com/users/nsams/repos","events_url":"https://api.github.com/users/nsams/events{/privacy}","received_events_url":"https://api.github.com/users/nsams/received_events","type":"User","site_admin":false},"repo":{"id":6918151,"name":"koala-framework","full_name":"nsams/koala-framework","owner":{"login":"nsams","id":50764,"avatar_url":"https://avatars.githubusercontent.com/u/50764?v=3","gravatar_id":"","url":"https://api.github.com/users/nsams","html_url":"https://github.com/nsams","followers_url":"https://api.github.com/users/nsams/followers","following_url":"https://api.github.com/users/nsams/following{/other_user}","gists_url":"https://api.github.com/users/nsams/gists{/gist_id}","starred_url":"https://api.github.com/users/nsams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsams/subscriptions","organizations_url":"https://api.github.com/users/nsams/orgs","repos_url":"https://api.github.com/users/nsams/repos","events_url":"https://api.github.com/users/nsams/events{/privacy}","received_events_url":"https://api.github.com/users/nsams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nsams/koala-framework","description":"Framework and CMS based on Zend Framework and ExtJS","fork":true,"url":"https://api.github.com/repos/nsams/koala-framework","forks_url":"https://api.github.com/repos/nsams/koala-framework/forks","keys_url":"https://api.github.com/repos/nsams/koala-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nsams/koala-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nsams/koala-framework/teams","hooks_url":"https://api.github.com/repos/nsams/koala-framework/hooks","issue_events_url":"https://api.github.com/repos/nsams/koala-framework/issues/events{/number}","events_url":"https://api.github.com/repos/nsams/koala-framework/events","assignees_url":"https://api.github.com/repos/nsams/koala-framework/assignees{/user}","branches_url":"https://api.github.com/repos/nsams/koala-framework/branches{/branch}","tags_url":"https://api.github.com/repos/nsams/koala-framework/tags","blobs_url":"https://api.github.com/repos/nsams/koala-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nsams/koala-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nsams/koala-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/nsams/koala-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nsams/koala-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/nsams/koala-framework/languages","stargazers_url":"https://api.github.com/repos/nsams/koala-framework/stargazers","contributors_url":"https://api.github.com/repos/nsams/koala-framework/contributors","subscribers_url":"https://api.github.com/repos/nsams/koala-framework/subscribers","subscription_url":"https://api.github.com/repos/nsams/koala-framework/subscription","commits_url":"https://api.github.com/repos/nsams/koala-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/nsams/koala-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/nsams/koala-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/nsams/koala-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/nsams/koala-framework/contents/{+path}","compare_url":"https://api.github.com/repos/nsams/koala-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nsams/koala-framework/merges","archive_url":"https://api.github.com/repos/nsams/koala-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nsams/koala-framework/downloads","issues_url":"https://api.github.com/repos/nsams/koala-framework/issues{/number}","pulls_url":"https://api.github.com/repos/nsams/koala-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/nsams/koala-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/nsams/koala-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nsams/koala-framework/labels{/name}","releases_url":"https://api.github.com/repos/nsams/koala-framework/releases{/id}","created_at":"2012-11-29T09:14:47Z","updated_at":"2015-01-18T02:50:27Z","pushed_at":"2015-06-17T11:23:22Z","git_url":"git://github.com/nsams/koala-framework.git","ssh_url":"git@github.com:nsams/koala-framework.git","clone_url":"https://github.com/nsams/koala-framework.git","svn_url":"https://github.com/nsams/koala-framework","homepage":"http://www.koala-framework.org/","size":61212,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"koala-framework:master","ref":"master","sha":"ae7107bef5b0150b02dc9ab3bbc828aa8db493e2","user":{"login":"koala-framework","id":7679767,"avatar_url":"https://avatars.githubusercontent.com/u/7679767?v=3","gravatar_id":"","url":"https://api.github.com/users/koala-framework","html_url":"https://github.com/koala-framework","followers_url":"https://api.github.com/users/koala-framework/followers","following_url":"https://api.github.com/users/koala-framework/following{/other_user}","gists_url":"https://api.github.com/users/koala-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/koala-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koala-framework/subscriptions","organizations_url":"https://api.github.com/users/koala-framework/orgs","repos_url":"https://api.github.com/users/koala-framework/repos","events_url":"https://api.github.com/users/koala-framework/events{/privacy}","received_events_url":"https://api.github.com/users/koala-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":2466955,"name":"koala-framework","full_name":"koala-framework/koala-framework","owner":{"login":"koala-framework","id":7679767,"avatar_url":"https://avatars.githubusercontent.com/u/7679767?v=3","gravatar_id":"","url":"https://api.github.com/users/koala-framework","html_url":"https://github.com/koala-framework","followers_url":"https://api.github.com/users/koala-framework/followers","following_url":"https://api.github.com/users/koala-framework/following{/other_user}","gists_url":"https://api.github.com/users/koala-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/koala-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koala-framework/subscriptions","organizations_url":"https://api.github.com/users/koala-framework/orgs","repos_url":"https://api.github.com/users/koala-framework/repos","events_url":"https://api.github.com/users/koala-framework/events{/privacy}","received_events_url":"https://api.github.com/users/koala-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koala-framework/koala-framework","description":"Framework and CMS based on Zend Framework and ExtJS","fork":false,"url":"https://api.github.com/repos/koala-framework/koala-framework","forks_url":"https://api.github.com/repos/koala-framework/koala-framework/forks","keys_url":"https://api.github.com/repos/koala-framework/koala-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koala-framework/koala-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koala-framework/koala-framework/teams","hooks_url":"https://api.github.com/repos/koala-framework/koala-framework/hooks","issue_events_url":"https://api.github.com/repos/koala-framework/koala-framework/issues/events{/number}","events_url":"https://api.github.com/repos/koala-framework/koala-framework/events","assignees_url":"https://api.github.com/repos/koala-framework/koala-framework/assignees{/user}","branches_url":"https://api.github.com/repos/koala-framework/koala-framework/branches{/branch}","tags_url":"https://api.github.com/repos/koala-framework/koala-framework/tags","blobs_url":"https://api.github.com/repos/koala-framework/koala-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koala-framework/koala-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koala-framework/koala-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/koala-framework/koala-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koala-framework/koala-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/koala-framework/koala-framework/languages","stargazers_url":"https://api.github.com/repos/koala-framework/koala-framework/stargazers","contributors_url":"https://api.github.com/repos/koala-framework/koala-framework/contributors","subscribers_url":"https://api.github.com/repos/koala-framework/koala-framework/subscribers","subscription_url":"https://api.github.com/repos/koala-framework/koala-framework/subscription","commits_url":"https://api.github.com/repos/koala-framework/koala-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/koala-framework/koala-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/koala-framework/koala-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/koala-framework/koala-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/koala-framework/koala-framework/contents/{+path}","compare_url":"https://api.github.com/repos/koala-framework/koala-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koala-framework/koala-framework/merges","archive_url":"https://api.github.com/repos/koala-framework/koala-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koala-framework/koala-framework/downloads","issues_url":"https://api.github.com/repos/koala-framework/koala-framework/issues{/number}","pulls_url":"https://api.github.com/repos/koala-framework/koala-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/koala-framework/koala-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/koala-framework/koala-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koala-framework/koala-framework/labels{/name}","releases_url":"https://api.github.com/repos/koala-framework/koala-framework/releases{/id}","created_at":"2011-09-27T10:36:51Z","updated_at":"2015-05-13T19:41:14Z","pushed_at":"2015-06-17T11:30:09Z","git_url":"git://github.com/koala-framework/koala-framework.git","ssh_url":"git@github.com:koala-framework/koala-framework.git","clone_url":"https://github.com/koala-framework/koala-framework.git","svn_url":"https://github.com/koala-framework/koala-framework","homepage":"http://www.koala-framework.org/","size":94304,"stargazers_count":32,"watchers_count":32,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":19,"forks":17,"open_issues":19,"watchers":32,"default_branch":"3.8"}},"_links":{"self":{"href":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363"},"html":{"href":"https://github.com/koala-framework/koala-framework/pull/363"},"issue":{"href":"https://api.github.com/repos/koala-framework/koala-framework/issues/363"},"comments":{"href":"https://api.github.com/repos/koala-framework/koala-framework/issues/363/comments"},"review_comments":{"href":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363/comments"},"review_comment":{"href":"https://api.github.com/repos/koala-framework/koala-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koala-framework/koala-framework/pulls/363/commits"},"statuses":{"href":"https://api.github.com/repos/koala-framework/koala-framework/statuses/00af2decfb36f868f771bb9ee969af5dde84fe80"}}}}