GitHub PullRequestReviewCommentEvent at 2014-09-11 18:56:24
Repository: userManagement
Actor: boom1992
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/comments/17441105","id":17441105,"diff_hunk":"@@ -250,5 +260,28 @@ public function changeRole($userID, $role) {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n+\t\t\n+\t\tpublic function updateUser($userID, $action, $newValue) {\n+\t\t\t$parameters = Array();\n+\t\t\t$parameters[\":userID\"] = $userID;\n+\t\t\t//$parameters[\":action\"] = $action;\n+\t\t\t$parameters[\":newValue\"] = $newValue;\n+\t\t\tswitch($action) {\n+\t\t\t\tcase \"Email\":\n+\t\t\t\t\t//TODO: Getting a magical syntax error when I write :action instead of Email. Fixing that would make this method a lot easier and prettier","path":"UserManager.class.php","position":50,"original_position":50,"commit_id":"29ea83f2fe1b354332328f5fc6ba4ab791b7304c","original_commit_id":"29ea83f2fe1b354332328f5fc6ba4ab791b7304c","user":{"login":"boom1992","id":23859,"avatar_url":"https://avatars.githubusercontent.com/u/23859?v=2","gravatar_id":"e928558d603891465a1ee8ac89b0e5ba","url":"https://api.github.com/users/boom1992","html_url":"https://github.com/boom1992","followers_url":"https://api.github.com/users/boom1992/followers","following_url":"https://api.github.com/users/boom1992/following{/other_user}","gists_url":"https://api.github.com/users/boom1992/gists{/gist_id}","starred_url":"https://api.github.com/users/boom1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boom1992/subscriptions","organizations_url":"https://api.github.com/users/boom1992/orgs","repos_url":"https://api.github.com/users/boom1992/repos","events_url":"https://api.github.com/users/boom1992/events{/privacy}","received_events_url":"https://api.github.com/users/boom1992/received_events","type":"User","site_admin":false},"body":"Did you check that $action was correct?\r\n\r\nAlso it may not work inside $parameters, but I'm not sure, Tobias?","created_at":"2014-09-11T18:56:24Z","updated_at":"2014-09-11T18:56:24Z","html_url":"https://github.com/Paperdreamer/userManagement/pull/21#discussion_r17441105","pull_request_url":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/comments/17441105"},"html":{"href":"https://github.com/Paperdreamer/userManagement/pull/21#discussion_r17441105"},"pull_request":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21","id":20969630,"html_url":"https://github.com/Paperdreamer/userManagement/pull/21","diff_url":"https://github.com/Paperdreamer/userManagement/pull/21.diff","patch_url":"https://github.com/Paperdreamer/userManagement/pull/21.patch","issue_url":"https://api.github.com/repos/Paperdreamer/userManagement/issues/21","number":21,"state":"open","locked":false,"title":"Add methods for profile and edit profile views, some other tweaks","user":{"login":"onurv12","id":7499148,"avatar_url":"https://avatars.githubusercontent.com/u/7499148?v=2","gravatar_id":"0458eb4c70b7edbb664d17450bd9b204","url":"https://api.github.com/users/onurv12","html_url":"https://github.com/onurv12","followers_url":"https://api.github.com/users/onurv12/followers","following_url":"https://api.github.com/users/onurv12/following{/other_user}","gists_url":"https://api.github.com/users/onurv12/gists{/gist_id}","starred_url":"https://api.github.com/users/onurv12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onurv12/subscriptions","organizations_url":"https://api.github.com/users/onurv12/orgs","repos_url":"https://api.github.com/users/onurv12/repos","events_url":"https://api.github.com/users/onurv12/events{/privacy}","received_events_url":"https://api.github.com/users/onurv12/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-09T17:08:16Z","updated_at":"2014-09-11T18:56:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"202a468b9e399b37ba2248ddfd08f9ad37176a2f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Paperdreamer/userManagement/issues/21/comments","statuses_url":"https://api.github.com/repos/Paperdreamer/userManagement/statuses/29ea83f2fe1b354332328f5fc6ba4ab791b7304c","head":{"label":"onurv12:master","ref":"master","sha":"29ea83f2fe1b354332328f5fc6ba4ab791b7304c","user":{"login":"onurv12","id":7499148,"avatar_url":"https://avatars.githubusercontent.com/u/7499148?v=2","gravatar_id":"0458eb4c70b7edbb664d17450bd9b204","url":"https://api.github.com/users/onurv12","html_url":"https://github.com/onurv12","followers_url":"https://api.github.com/users/onurv12/followers","following_url":"https://api.github.com/users/onurv12/following{/other_user}","gists_url":"https://api.github.com/users/onurv12/gists{/gist_id}","starred_url":"https://api.github.com/users/onurv12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onurv12/subscriptions","organizations_url":"https://api.github.com/users/onurv12/orgs","repos_url":"https://api.github.com/users/onurv12/repos","events_url":"https://api.github.com/users/onurv12/events{/privacy}","received_events_url":"https://api.github.com/users/onurv12/received_events","type":"User","site_admin":false},"repo":{"id":21398279,"name":"userManagement","full_name":"onurv12/userManagement","owner":{"login":"onurv12","id":7499148,"avatar_url":"https://avatars.githubusercontent.com/u/7499148?v=2","gravatar_id":"0458eb4c70b7edbb664d17450bd9b204","url":"https://api.github.com/users/onurv12","html_url":"https://github.com/onurv12","followers_url":"https://api.github.com/users/onurv12/followers","following_url":"https://api.github.com/users/onurv12/following{/other_user}","gists_url":"https://api.github.com/users/onurv12/gists{/gist_id}","starred_url":"https://api.github.com/users/onurv12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onurv12/subscriptions","organizations_url":"https://api.github.com/users/onurv12/orgs","repos_url":"https://api.github.com/users/onurv12/repos","events_url":"https://api.github.com/users/onurv12/events{/privacy}","received_events_url":"https://api.github.com/users/onurv12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/onurv12/userManagement","description":"This manages users, token generation, teams and roles.","fork":true,"url":"https://api.github.com/repos/onurv12/userManagement","forks_url":"https://api.github.com/repos/onurv12/userManagement/forks","keys_url":"https://api.github.com/repos/onurv12/userManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onurv12/userManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onurv12/userManagement/teams","hooks_url":"https://api.github.com/repos/onurv12/userManagement/hooks","issue_events_url":"https://api.github.com/repos/onurv12/userManagement/issues/events{/number}","events_url":"https://api.github.com/repos/onurv12/userManagement/events","assignees_url":"https://api.github.com/repos/onurv12/userManagement/assignees{/user}","branches_url":"https://api.github.com/repos/onurv12/userManagement/branches{/branch}","tags_url":"https://api.github.com/repos/onurv12/userManagement/tags","blobs_url":"https://api.github.com/repos/onurv12/userManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onurv12/userManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onurv12/userManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/onurv12/userManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onurv12/userManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/onurv12/userManagement/languages","stargazers_url":"https://api.github.com/repos/onurv12/userManagement/stargazers","contributors_url":"https://api.github.com/repos/onurv12/userManagement/contributors","subscribers_url":"https://api.github.com/repos/onurv12/userManagement/subscribers","subscription_url":"https://api.github.com/repos/onurv12/userManagement/subscription","commits_url":"https://api.github.com/repos/onurv12/userManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/onurv12/userManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/onurv12/userManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/onurv12/userManagement/issues/comments/{number}","contents_url":"https://api.github.com/repos/onurv12/userManagement/contents/{+path}","compare_url":"https://api.github.com/repos/onurv12/userManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onurv12/userManagement/merges","archive_url":"https://api.github.com/repos/onurv12/userManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onurv12/userManagement/downloads","issues_url":"https://api.github.com/repos/onurv12/userManagement/issues{/number}","pulls_url":"https://api.github.com/repos/onurv12/userManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/onurv12/userManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/onurv12/userManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onurv12/userManagement/labels{/name}","releases_url":"https://api.github.com/repos/onurv12/userManagement/releases{/id}","created_at":"2014-07-01T18:33:05Z","updated_at":"2014-07-01T18:38:14Z","pushed_at":"2014-09-09T17:01:53Z","git_url":"git://github.com/onurv12/userManagement.git","ssh_url":"git@github.com:onurv12/userManagement.git","clone_url":"https://github.com/onurv12/userManagement.git","svn_url":"https://github.com/onurv12/userManagement","homepage":null,"size":347,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Paperdreamer:master","ref":"master","sha":"42b73c4e30bb3cde71213dd0d7a4e4b8726beb6e","user":{"login":"Paperdreamer","id":7492548,"avatar_url":"https://avatars.githubusercontent.com/u/7492548?v=2","gravatar_id":null,"url":"https://api.github.com/users/Paperdreamer","html_url":"https://github.com/Paperdreamer","followers_url":"https://api.github.com/users/Paperdreamer/followers","following_url":"https://api.github.com/users/Paperdreamer/following{/other_user}","gists_url":"https://api.github.com/users/Paperdreamer/gists{/gist_id}","starred_url":"https://api.github.com/users/Paperdreamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paperdreamer/subscriptions","organizations_url":"https://api.github.com/users/Paperdreamer/orgs","repos_url":"https://api.github.com/users/Paperdreamer/repos","events_url":"https://api.github.com/users/Paperdreamer/events{/privacy}","received_events_url":"https://api.github.com/users/Paperdreamer/received_events","type":"Organization","site_admin":false},"repo":{"id":19573167,"name":"userManagement","full_name":"Paperdreamer/userManagement","owner":{"login":"Paperdreamer","id":7492548,"avatar_url":"https://avatars.githubusercontent.com/u/7492548?v=2","gravatar_id":null,"url":"https://api.github.com/users/Paperdreamer","html_url":"https://github.com/Paperdreamer","followers_url":"https://api.github.com/users/Paperdreamer/followers","following_url":"https://api.github.com/users/Paperdreamer/following{/other_user}","gists_url":"https://api.github.com/users/Paperdreamer/gists{/gist_id}","starred_url":"https://api.github.com/users/Paperdreamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paperdreamer/subscriptions","organizations_url":"https://api.github.com/users/Paperdreamer/orgs","repos_url":"https://api.github.com/users/Paperdreamer/repos","events_url":"https://api.github.com/users/Paperdreamer/events{/privacy}","received_events_url":"https://api.github.com/users/Paperdreamer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Paperdreamer/userManagement","description":"This manages users, token generation, teams and roles.","fork":false,"url":"https://api.github.com/repos/Paperdreamer/userManagement","forks_url":"https://api.github.com/repos/Paperdreamer/userManagement/forks","keys_url":"https://api.github.com/repos/Paperdreamer/userManagement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Paperdreamer/userManagement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Paperdreamer/userManagement/teams","hooks_url":"https://api.github.com/repos/Paperdreamer/userManagement/hooks","issue_events_url":"https://api.github.com/repos/Paperdreamer/userManagement/issues/events{/number}","events_url":"https://api.github.com/repos/Paperdreamer/userManagement/events","assignees_url":"https://api.github.com/repos/Paperdreamer/userManagement/assignees{/user}","branches_url":"https://api.github.com/repos/Paperdreamer/userManagement/branches{/branch}","tags_url":"https://api.github.com/repos/Paperdreamer/userManagement/tags","blobs_url":"https://api.github.com/repos/Paperdreamer/userManagement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Paperdreamer/userManagement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Paperdreamer/userManagement/git/refs{/sha}","trees_url":"https://api.github.com/repos/Paperdreamer/userManagement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Paperdreamer/userManagement/statuses/{sha}","languages_url":"https://api.github.com/repos/Paperdreamer/userManagement/languages","stargazers_url":"https://api.github.com/repos/Paperdreamer/userManagement/stargazers","contributors_url":"https://api.github.com/repos/Paperdreamer/userManagement/contributors","subscribers_url":"https://api.github.com/repos/Paperdreamer/userManagement/subscribers","subscription_url":"https://api.github.com/repos/Paperdreamer/userManagement/subscription","commits_url":"https://api.github.com/repos/Paperdreamer/userManagement/commits{/sha}","git_commits_url":"https://api.github.com/repos/Paperdreamer/userManagement/git/commits{/sha}","comments_url":"https://api.github.com/repos/Paperdreamer/userManagement/comments{/number}","issue_comment_url":"https://api.github.com/repos/Paperdreamer/userManagement/issues/comments/{number}","contents_url":"https://api.github.com/repos/Paperdreamer/userManagement/contents/{+path}","compare_url":"https://api.github.com/repos/Paperdreamer/userManagement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Paperdreamer/userManagement/merges","archive_url":"https://api.github.com/repos/Paperdreamer/userManagement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Paperdreamer/userManagement/downloads","issues_url":"https://api.github.com/repos/Paperdreamer/userManagement/issues{/number}","pulls_url":"https://api.github.com/repos/Paperdreamer/userManagement/pulls{/number}","milestones_url":"https://api.github.com/repos/Paperdreamer/userManagement/milestones{/number}","notifications_url":"https://api.github.com/repos/Paperdreamer/userManagement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Paperdreamer/userManagement/labels{/name}","releases_url":"https://api.github.com/repos/Paperdreamer/userManagement/releases{/id}","created_at":"2014-05-08T12:50:46Z","updated_at":"2014-07-01T16:31:13Z","pushed_at":"2014-08-25T09:31:47Z","git_url":"git://github.com/Paperdreamer/userManagement.git","ssh_url":"git@github.com:Paperdreamer/userManagement.git","clone_url":"https://github.com/Paperdreamer/userManagement.git","svn_url":"https://github.com/Paperdreamer/userManagement","homepage":null,"size":641,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21"},"html":{"href":"https://github.com/Paperdreamer/userManagement/pull/21"},"issue":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/issues/21"},"comments":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Paperdreamer/userManagement/statuses/29ea83f2fe1b354332328f5fc6ba4ab791b7304c"}}}}