{"action":"created","comment":{"url":"https://api.github.com/repos/aces/Loris/pulls/comments/36298654","id":36298654,"diff_hunk":"@@ -666,5 +666,42 @@ class NDB_Menu_Filter extends NDB_Menu\n         $html = $smarty->fetch(\"menu_$this->menu.tpl\");\n         return $html;\n     }\n+\n+    /**\n+     * Returns the full list of candidates, users, etc.\n+     *\n+     * @return array\n+     * @access private\n+     */\n+    function _getFullList()\n+    {\n+        // create DB object\n+        $DB =& Database::singleton();","path":"php/libraries/NDB_Menu_Filter.class.inc","position":14,"original_position":14,"commit_id":"4b5857090b764e0e89f4e5cf619bdd75fa11fa73","original_commit_id":"4b5857090b764e0e89f4e5cf619bdd75fa11fa73","user":{"login":"driusan","id":498329,"avatar_url":"https://avatars.githubusercontent.com/u/498329?v=3","gravatar_id":"","url":"https://api.github.com/users/driusan","html_url":"https://github.com/driusan","followers_url":"https://api.github.com/users/driusan/followers","following_url":"https://api.github.com/users/driusan/following{/other_user}","gists_url":"https://api.github.com/users/driusan/gists{/gist_id}","starred_url":"https://api.github.com/users/driusan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driusan/subscriptions","organizations_url":"https://api.github.com/users/driusan/orgs","repos_url":"https://api.github.com/users/driusan/repos","events_url":"https://api.github.com/users/driusan/events{/privacy}","received_events_url":"https://api.github.com/users/driusan/received_events","type":"User","site_admin":false},"body":"You should use the factory so that this can be unit tested.\r\n\r\n(It should also have a unit test..)","created_at":"2015-08-05T13:06:05Z","updated_at":"2015-08-05T13:06:05Z","html_url":"https://github.com/aces/Loris/pull/1203#discussion_r36298654","pull_request_url":"https://api.github.com/repos/aces/Loris/pulls/1203","_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments/36298654"},"html":{"href":"https://github.com/aces/Loris/pull/1203#discussion_r36298654"},"pull_request":{"href":"https://api.github.com/repos/aces/Loris/pulls/1203"}}},"pull_request":{"url":"https://api.github.com/repos/aces/Loris/pulls/1203","id":41497705,"html_url":"https://github.com/aces/Loris/pull/1203","diff_url":"https://github.com/aces/Loris/pull/1203.diff","patch_url":"https://github.com/aces/Loris/pull/1203.patch","issue_url":"https://api.github.com/repos/aces/Loris/issues/1203","number":1203,"state":"open","locked":false,"title":"Csv exporter","user":{"login":"jstirling91","id":2818503,"avatar_url":"https://avatars.githubusercontent.com/u/2818503?v=3","gravatar_id":"","url":"https://api.github.com/users/jstirling91","html_url":"https://github.com/jstirling91","followers_url":"https://api.github.com/users/jstirling91/followers","following_url":"https://api.github.com/users/jstirling91/following{/other_user}","gists_url":"https://api.github.com/users/jstirling91/gists{/gist_id}","starred_url":"https://api.github.com/users/jstirling91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstirling91/subscriptions","organizations_url":"https://api.github.com/users/jstirling91/orgs","repos_url":"https://api.github.com/users/jstirling91/repos","events_url":"https://api.github.com/users/jstirling91/events{/privacy}","received_events_url":"https://api.github.com/users/jstirling91/received_events","type":"User","site_admin":false},"body":"This pull request add the functionality for the users to download the filtered data. It has only been added to the candidate list module. To add to other modules simply replace the following\r\n\r\n```\r\n<td class=\"controlPanelSection\">{$numCandidates} subject(s) selected.</td>\r\n```\r\n\r\nwith \r\n\r\n```\r\n<td class=\"controlPanelSection\">\r\n    {$numCandidates} subject(s) selected. \r\n    <button id=\"downloadCSV\">Download as CSV</button>\r\n</td>\r\n```","created_at":"2015-08-03T18:54:19Z","updated_at":"2015-08-05T13:06:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e13032aead0365f3c6a9de89b75c03df3852c32f","assignee":{"login":"driusan","id":498329,"avatar_url":"https://avatars.githubusercontent.com/u/498329?v=3","gravatar_id":"","url":"https://api.github.com/users/driusan","html_url":"https://github.com/driusan","followers_url":"https://api.github.com/users/driusan/followers","following_url":"https://api.github.com/users/driusan/following{/other_user}","gists_url":"https://api.github.com/users/driusan/gists{/gist_id}","starred_url":"https://api.github.com/users/driusan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driusan/subscriptions","organizations_url":"https://api.github.com/users/driusan/orgs","repos_url":"https://api.github.com/users/driusan/repos","events_url":"https://api.github.com/users/driusan/events{/privacy}","received_events_url":"https://api.github.com/users/driusan/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aces/Loris/milestones/4","html_url":"https://github.com/aces/Loris/milestones/15.10","labels_url":"https://api.github.com/repos/aces/Loris/milestones/4/labels","id":1050783,"number":4,"title":"15.10","description":"The October Release of Loris.","creator":{"login":"driusan","id":498329,"avatar_url":"https://avatars.githubusercontent.com/u/498329?v=3","gravatar_id":"","url":"https://api.github.com/users/driusan","html_url":"https://github.com/driusan","followers_url":"https://api.github.com/users/driusan/followers","following_url":"https://api.github.com/users/driusan/following{/other_user}","gists_url":"https://api.github.com/users/driusan/gists{/gist_id}","starred_url":"https://api.github.com/users/driusan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driusan/subscriptions","organizations_url":"https://api.github.com/users/driusan/orgs","repos_url":"https://api.github.com/users/driusan/repos","events_url":"https://api.github.com/users/driusan/events{/privacy}","received_events_url":"https://api.github.com/users/driusan/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":41,"state":"open","created_at":"2015-04-02T18:31:49Z","updated_at":"2015-08-03T18:54:19Z","due_on":"2015-10-15T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/aces/Loris/pulls/1203/commits","review_comments_url":"https://api.github.com/repos/aces/Loris/pulls/1203/comments","review_comment_url":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aces/Loris/issues/1203/comments","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/4b5857090b764e0e89f4e5cf619bdd75fa11fa73","head":{"label":"jstirling91:csv_exporter","ref":"csv_exporter","sha":"4b5857090b764e0e89f4e5cf619bdd75fa11fa73","user":{"login":"jstirling91","id":2818503,"avatar_url":"https://avatars.githubusercontent.com/u/2818503?v=3","gravatar_id":"","url":"https://api.github.com/users/jstirling91","html_url":"https://github.com/jstirling91","followers_url":"https://api.github.com/users/jstirling91/followers","following_url":"https://api.github.com/users/jstirling91/following{/other_user}","gists_url":"https://api.github.com/users/jstirling91/gists{/gist_id}","starred_url":"https://api.github.com/users/jstirling91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstirling91/subscriptions","organizations_url":"https://api.github.com/users/jstirling91/orgs","repos_url":"https://api.github.com/users/jstirling91/repos","events_url":"https://api.github.com/users/jstirling91/events{/privacy}","received_events_url":"https://api.github.com/users/jstirling91/received_events","type":"User","site_admin":false},"repo":{"id":25377023,"name":"Loris","full_name":"jstirling91/Loris","owner":{"login":"jstirling91","id":2818503,"avatar_url":"https://avatars.githubusercontent.com/u/2818503?v=3","gravatar_id":"","url":"https://api.github.com/users/jstirling91","html_url":"https://github.com/jstirling91","followers_url":"https://api.github.com/users/jstirling91/followers","following_url":"https://api.github.com/users/jstirling91/following{/other_user}","gists_url":"https://api.github.com/users/jstirling91/gists{/gist_id}","starred_url":"https://api.github.com/users/jstirling91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstirling91/subscriptions","organizations_url":"https://api.github.com/users/jstirling91/orgs","repos_url":"https://api.github.com/users/jstirling91/repos","events_url":"https://api.github.com/users/jstirling91/events{/privacy}","received_events_url":"https://api.github.com/users/jstirling91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jstirling91/Loris","description":"LORIS (Longitudinal Online Research and Imaging System) is a web-accessible database solution for neuroimaging.","fork":true,"url":"https://api.github.com/repos/jstirling91/Loris","forks_url":"https://api.github.com/repos/jstirling91/Loris/forks","keys_url":"https://api.github.com/repos/jstirling91/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jstirling91/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jstirling91/Loris/teams","hooks_url":"https://api.github.com/repos/jstirling91/Loris/hooks","issue_events_url":"https://api.github.com/repos/jstirling91/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/jstirling91/Loris/events","assignees_url":"https://api.github.com/repos/jstirling91/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/jstirling91/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/jstirling91/Loris/tags","blobs_url":"https://api.github.com/repos/jstirling91/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jstirling91/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jstirling91/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/jstirling91/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jstirling91/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/jstirling91/Loris/languages","stargazers_url":"https://api.github.com/repos/jstirling91/Loris/stargazers","contributors_url":"https://api.github.com/repos/jstirling91/Loris/contributors","subscribers_url":"https://api.github.com/repos/jstirling91/Loris/subscribers","subscription_url":"https://api.github.com/repos/jstirling91/Loris/subscription","commits_url":"https://api.github.com/repos/jstirling91/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/jstirling91/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/jstirling91/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/jstirling91/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/jstirling91/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/jstirling91/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jstirling91/Loris/merges","archive_url":"https://api.github.com/repos/jstirling91/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jstirling91/Loris/downloads","issues_url":"https://api.github.com/repos/jstirling91/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/jstirling91/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/jstirling91/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/jstirling91/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jstirling91/Loris/labels{/name}","releases_url":"https://api.github.com/repos/jstirling91/Loris/releases{/id}","created_at":"2014-10-17T21:02:09Z","updated_at":"2015-05-08T19:25:46Z","pushed_at":"2015-08-03T17:46:57Z","git_url":"git://github.com/jstirling91/Loris.git","ssh_url":"git@github.com:jstirling91/Loris.git","clone_url":"https://github.com/jstirling91/Loris.git","svn_url":"https://github.com/jstirling91/Loris","homepage":"","size":60801,"stargazers_count":0,"watchers_count":0,"language":"Smarty","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":"master"}},"base":{"label":"aces:master","ref":"master","sha":"6d536b134e4ede555d860c5623600c7fcf670bd9","user":{"login":"aces","id":472868,"avatar_url":"https://avatars.githubusercontent.com/u/472868?v=3","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"repo":{"id":1125630,"name":"Loris","full_name":"aces/Loris","owner":{"login":"aces","id":472868,"avatar_url":"https://avatars.githubusercontent.com/u/472868?v=3","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aces/Loris","description":"LORIS is a web-accessible database solution for longitudinal multi-site studies.","fork":false,"url":"https://api.github.com/repos/aces/Loris","forks_url":"https://api.github.com/repos/aces/Loris/forks","keys_url":"https://api.github.com/repos/aces/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aces/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aces/Loris/teams","hooks_url":"https://api.github.com/repos/aces/Loris/hooks","issue_events_url":"https://api.github.com/repos/aces/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/aces/Loris/events","assignees_url":"https://api.github.com/repos/aces/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/aces/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/aces/Loris/tags","blobs_url":"https://api.github.com/repos/aces/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aces/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aces/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/aces/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/aces/Loris/languages","stargazers_url":"https://api.github.com/repos/aces/Loris/stargazers","contributors_url":"https://api.github.com/repos/aces/Loris/contributors","subscribers_url":"https://api.github.com/repos/aces/Loris/subscribers","subscription_url":"https://api.github.com/repos/aces/Loris/subscription","commits_url":"https://api.github.com/repos/aces/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/aces/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/aces/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/aces/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/aces/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/aces/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aces/Loris/merges","archive_url":"https://api.github.com/repos/aces/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aces/Loris/downloads","issues_url":"https://api.github.com/repos/aces/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/aces/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/aces/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/aces/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aces/Loris/labels{/name}","releases_url":"https://api.github.com/repos/aces/Loris/releases{/id}","created_at":"2010-11-30T14:57:57Z","updated_at":"2015-07-23T14:52:37Z","pushed_at":"2015-08-04T18:52:59Z","git_url":"git://github.com/aces/Loris.git","ssh_url":"git@github.com:aces/Loris.git","clone_url":"https://github.com/aces/Loris.git","svn_url":"https://github.com/aces/Loris","homepage":"","size":69825,"stargazers_count":24,"watchers_count":24,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":36,"forks":37,"open_issues":36,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/1203"},"html":{"href":"https://github.com/aces/Loris/pull/1203"},"issue":{"href":"https://api.github.com/repos/aces/Loris/issues/1203"},"comments":{"href":"https://api.github.com/repos/aces/Loris/issues/1203/comments"},"review_comments":{"href":"https://api.github.com/repos/aces/Loris/pulls/1203/comments"},"review_comment":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aces/Loris/pulls/1203/commits"},"statuses":{"href":"https://api.github.com/repos/aces/Loris/statuses/4b5857090b764e0e89f4e5cf619bdd75fa11fa73"}}}}