{"action":"created","comment":{"url":"https://api.github.com/repos/lesleykhuu/crm/pulls/comments/46591885","id":46591885,"diff_hunk":"@@ -0,0 +1,142 @@\n+<?php\n+\n+/**\n+Methods used to edit contacts. Used in actualContactEdit.php\n+*/\n+\tclass Contact{\n+\t\t\n+\n+\t\tprivate $userInfo = array('firstname' => \" \", 'lastname' => \" \", 'email' => \" \");\n+\t\tprivate $user; \n+\t\tprivate $currentEmail;\n+\n+/**\n+Instantiates the object by email\n+*/\n+\t\tpublic static function GetByEmail($email){ \n+\t\t\tinclude 'connection.php';\n+\t\t\tsession_start();\n+\t\t\tglobal $user;","path":"crmlogin/Contact.php","position":19,"original_position":19,"commit_id":"a843f63ceeb98d758ab7f4ab38a3047c9e9de59a","original_commit_id":"a843f63ceeb98d758ab7f4ab38a3047c9e9de59a","user":{"login":"ontraportgithub","id":2042691,"avatar_url":"https://avatars.githubusercontent.com/u/2042691?v=3","gravatar_id":"","url":"https://api.github.com/users/ontraportgithub","html_url":"https://github.com/ontraportgithub","followers_url":"https://api.github.com/users/ontraportgithub/followers","following_url":"https://api.github.com/users/ontraportgithub/following{/other_user}","gists_url":"https://api.github.com/users/ontraportgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/ontraportgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ontraportgithub/subscriptions","organizations_url":"https://api.github.com/users/ontraportgithub/orgs","repos_url":"https://api.github.com/users/ontraportgithub/repos","events_url":"https://api.github.com/users/ontraportgithub/events{/privacy}","received_events_url":"https://api.github.com/users/ontraportgithub/received_events","type":"User","site_admin":false},"body":"Globals always bad... have the individual files check to see whether they're logged in or not. Keep this class focused on just the contact","created_at":"2015-12-03T18:39:49Z","updated_at":"2015-12-03T18:39:49Z","html_url":"https://github.com/lesleykhuu/crm/pull/2#discussion_r46591885","pull_request_url":"https://api.github.com/repos/lesleykhuu/crm/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/lesleykhuu/crm/pulls/comments/46591885"},"html":{"href":"https://github.com/lesleykhuu/crm/pull/2#discussion_r46591885"},"pull_request":{"href":"https://api.github.com/repos/lesleykhuu/crm/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/lesleykhuu/crm/pulls/2","id":52337159,"html_url":"https://github.com/lesleykhuu/crm/pull/2","diff_url":"https://github.com/lesleykhuu/crm/pull/2.diff","patch_url":"https://github.com/lesleykhuu/crm/pull/2.patch","issue_url":"https://api.github.com/repos/lesleykhuu/crm/issues/2","number":2,"state":"open","locked":false,"title":"added edit contact","user":{"login":"lesleykhuu","id":6364451,"avatar_url":"https://avatars.githubusercontent.com/u/6364451?v=3","gravatar_id":"","url":"https://api.github.com/users/lesleykhuu","html_url":"https://github.com/lesleykhuu","followers_url":"https://api.github.com/users/lesleykhuu/followers","following_url":"https://api.github.com/users/lesleykhuu/following{/other_user}","gists_url":"https://api.github.com/users/lesleykhuu/gists{/gist_id}","starred_url":"https://api.github.com/users/lesleykhuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesleykhuu/subscriptions","organizations_url":"https://api.github.com/users/lesleykhuu/orgs","repos_url":"https://api.github.com/users/lesleykhuu/repos","events_url":"https://api.github.com/users/lesleykhuu/events{/privacy}","received_events_url":"https://api.github.com/users/lesleykhuu/received_events","type":"User","site_admin":false},"body":"added edit contact. used helper functions in Contact.php","created_at":"2015-12-02T00:24:57Z","updated_at":"2015-12-03T18:39:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24e8992b14bc53ee19bc53f87b66d2fc8592a515","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lesleykhuu/crm/pulls/2/commits","review_comments_url":"https://api.github.com/repos/lesleykhuu/crm/pulls/2/comments","review_comment_url":"https://api.github.com/repos/lesleykhuu/crm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lesleykhuu/crm/issues/2/comments","statuses_url":"https://api.github.com/repos/lesleykhuu/crm/statuses/a843f63ceeb98d758ab7f4ab38a3047c9e9de59a","head":{"label":"lesleykhuu:objects","ref":"objects","sha":"a843f63ceeb98d758ab7f4ab38a3047c9e9de59a","user":{"login":"lesleykhuu","id":6364451,"avatar_url":"https://avatars.githubusercontent.com/u/6364451?v=3","gravatar_id":"","url":"https://api.github.com/users/lesleykhuu","html_url":"https://github.com/lesleykhuu","followers_url":"https://api.github.com/users/lesleykhuu/followers","following_url":"https://api.github.com/users/lesleykhuu/following{/other_user}","gists_url":"https://api.github.com/users/lesleykhuu/gists{/gist_id}","starred_url":"https://api.github.com/users/lesleykhuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesleykhuu/subscriptions","organizations_url":"https://api.github.com/users/lesleykhuu/orgs","repos_url":"https://api.github.com/users/lesleykhuu/repos","events_url":"https://api.github.com/users/lesleykhuu/events{/privacy}","received_events_url":"https://api.github.com/users/lesleykhuu/received_events","type":"User","site_admin":false},"repo":{"id":46509535,"name":"crm","full_name":"lesleykhuu/crm","owner":{"login":"lesleykhuu","id":6364451,"avatar_url":"https://avatars.githubusercontent.com/u/6364451?v=3","gravatar_id":"","url":"https://api.github.com/users/lesleykhuu","html_url":"https://github.com/lesleykhuu","followers_url":"https://api.github.com/users/lesleykhuu/followers","following_url":"https://api.github.com/users/lesleykhuu/following{/other_user}","gists_url":"https://api.github.com/users/lesleykhuu/gists{/gist_id}","starred_url":"https://api.github.com/users/lesleykhuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesleykhuu/subscriptions","organizations_url":"https://api.github.com/users/lesleykhuu/orgs","repos_url":"https://api.github.com/users/lesleykhuu/repos","events_url":"https://api.github.com/users/lesleykhuu/events{/privacy}","received_events_url":"https://api.github.com/users/lesleykhuu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lesleykhuu/crm","description":"","fork":false,"url":"https://api.github.com/repos/lesleykhuu/crm","forks_url":"https://api.github.com/repos/lesleykhuu/crm/forks","keys_url":"https://api.github.com/repos/lesleykhuu/crm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lesleykhuu/crm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lesleykhuu/crm/teams","hooks_url":"https://api.github.com/repos/lesleykhuu/crm/hooks","issue_events_url":"https://api.github.com/repos/lesleykhuu/crm/issues/events{/number}","events_url":"https://api.github.com/repos/lesleykhuu/crm/events","assignees_url":"https://api.github.com/repos/lesleykhuu/crm/assignees{/user}","branches_url":"https://api.github.com/repos/lesleykhuu/crm/branches{/branch}","tags_url":"https://api.github.com/repos/lesleykhuu/crm/tags","blobs_url":"https://api.github.com/repos/lesleykhuu/crm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lesleykhuu/crm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lesleykhuu/crm/git/refs{/sha}","trees_url":"https://api.github.com/repos/lesleykhuu/crm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lesleykhuu/crm/statuses/{sha}","languages_url":"https://api.github.com/repos/lesleykhuu/crm/languages","stargazers_url":"https://api.github.com/repos/lesleykhuu/crm/stargazers","contributors_url":"https://api.github.com/repos/lesleykhuu/crm/contributors","subscribers_url":"https://api.github.com/repos/lesleykhuu/crm/subscribers","subscription_url":"https://api.github.com/repos/lesleykhuu/crm/subscription","commits_url":"https://api.github.com/repos/lesleykhuu/crm/commits{/sha}","git_commits_url":"https://api.github.com/repos/lesleykhuu/crm/git/commits{/sha}","comments_url":"https://api.github.com/repos/lesleykhuu/crm/comments{/number}","issue_comment_url":"https://api.github.com/repos/lesleykhuu/crm/issues/comments{/number}","contents_url":"https://api.github.com/repos/lesleykhuu/crm/contents/{+path}","compare_url":"https://api.github.com/repos/lesleykhuu/crm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lesleykhuu/crm/merges","archive_url":"https://api.github.com/repos/lesleykhuu/crm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lesleykhuu/crm/downloads","issues_url":"https://api.github.com/repos/lesleykhuu/crm/issues{/number}","pulls_url":"https://api.github.com/repos/lesleykhuu/crm/pulls{/number}","milestones_url":"https://api.github.com/repos/lesleykhuu/crm/milestones{/number}","notifications_url":"https://api.github.com/repos/lesleykhuu/crm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lesleykhuu/crm/labels{/name}","releases_url":"https://api.github.com/repos/lesleykhuu/crm/releases{/id}","created_at":"2015-11-19T17:42:39Z","updated_at":"2015-11-19T23:25:29Z","pushed_at":"2015-12-03T18:27:20Z","git_url":"git://github.com/lesleykhuu/crm.git","ssh_url":"git@github.com:lesleykhuu/crm.git","clone_url":"https://github.com/lesleykhuu/crm.git","svn_url":"https://github.com/lesleykhuu/crm","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lesleykhuu:master","ref":"master","sha":"8749c270a08a7267e5eef5b301576cccd94cfbc5","user":{"login":"lesleykhuu","id":6364451,"avatar_url":"https://avatars.githubusercontent.com/u/6364451?v=3","gravatar_id":"","url":"https://api.github.com/users/lesleykhuu","html_url":"https://github.com/lesleykhuu","followers_url":"https://api.github.com/users/lesleykhuu/followers","following_url":"https://api.github.com/users/lesleykhuu/following{/other_user}","gists_url":"https://api.github.com/users/lesleykhuu/gists{/gist_id}","starred_url":"https://api.github.com/users/lesleykhuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesleykhuu/subscriptions","organizations_url":"https://api.github.com/users/lesleykhuu/orgs","repos_url":"https://api.github.com/users/lesleykhuu/repos","events_url":"https://api.github.com/users/lesleykhuu/events{/privacy}","received_events_url":"https://api.github.com/users/lesleykhuu/received_events","type":"User","site_admin":false},"repo":{"id":46509535,"name":"crm","full_name":"lesleykhuu/crm","owner":{"login":"lesleykhuu","id":6364451,"avatar_url":"https://avatars.githubusercontent.com/u/6364451?v=3","gravatar_id":"","url":"https://api.github.com/users/lesleykhuu","html_url":"https://github.com/lesleykhuu","followers_url":"https://api.github.com/users/lesleykhuu/followers","following_url":"https://api.github.com/users/lesleykhuu/following{/other_user}","gists_url":"https://api.github.com/users/lesleykhuu/gists{/gist_id}","starred_url":"https://api.github.com/users/lesleykhuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesleykhuu/subscriptions","organizations_url":"https://api.github.com/users/lesleykhuu/orgs","repos_url":"https://api.github.com/users/lesleykhuu/repos","events_url":"https://api.github.com/users/lesleykhuu/events{/privacy}","received_events_url":"https://api.github.com/users/lesleykhuu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lesleykhuu/crm","description":"","fork":false,"url":"https://api.github.com/repos/lesleykhuu/crm","forks_url":"https://api.github.com/repos/lesleykhuu/crm/forks","keys_url":"https://api.github.com/repos/lesleykhuu/crm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lesleykhuu/crm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lesleykhuu/crm/teams","hooks_url":"https://api.github.com/repos/lesleykhuu/crm/hooks","issue_events_url":"https://api.github.com/repos/lesleykhuu/crm/issues/events{/number}","events_url":"https://api.github.com/repos/lesleykhuu/crm/events","assignees_url":"https://api.github.com/repos/lesleykhuu/crm/assignees{/user}","branches_url":"https://api.github.com/repos/lesleykhuu/crm/branches{/branch}","tags_url":"https://api.github.com/repos/lesleykhuu/crm/tags","blobs_url":"https://api.github.com/repos/lesleykhuu/crm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lesleykhuu/crm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lesleykhuu/crm/git/refs{/sha}","trees_url":"https://api.github.com/repos/lesleykhuu/crm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lesleykhuu/crm/statuses/{sha}","languages_url":"https://api.github.com/repos/lesleykhuu/crm/languages","stargazers_url":"https://api.github.com/repos/lesleykhuu/crm/stargazers","contributors_url":"https://api.github.com/repos/lesleykhuu/crm/contributors","subscribers_url":"https://api.github.com/repos/lesleykhuu/crm/subscribers","subscription_url":"https://api.github.com/repos/lesleykhuu/crm/subscription","commits_url":"https://api.github.com/repos/lesleykhuu/crm/commits{/sha}","git_commits_url":"https://api.github.com/repos/lesleykhuu/crm/git/commits{/sha}","comments_url":"https://api.github.com/repos/lesleykhuu/crm/comments{/number}","issue_comment_url":"https://api.github.com/repos/lesleykhuu/crm/issues/comments{/number}","contents_url":"https://api.github.com/repos/lesleykhuu/crm/contents/{+path}","compare_url":"https://api.github.com/repos/lesleykhuu/crm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lesleykhuu/crm/merges","archive_url":"https://api.github.com/repos/lesleykhuu/crm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lesleykhuu/crm/downloads","issues_url":"https://api.github.com/repos/lesleykhuu/crm/issues{/number}","pulls_url":"https://api.github.com/repos/lesleykhuu/crm/pulls{/number}","milestones_url":"https://api.github.com/repos/lesleykhuu/crm/milestones{/number}","notifications_url":"https://api.github.com/repos/lesleykhuu/crm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lesleykhuu/crm/labels{/name}","releases_url":"https://api.github.com/repos/lesleykhuu/crm/releases{/id}","created_at":"2015-11-19T17:42:39Z","updated_at":"2015-11-19T23:25:29Z","pushed_at":"2015-12-03T18:27:20Z","git_url":"git://github.com/lesleykhuu/crm.git","ssh_url":"git@github.com:lesleykhuu/crm.git","clone_url":"https://github.com/lesleykhuu/crm.git","svn_url":"https://github.com/lesleykhuu/crm","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lesleykhuu/crm/pulls/2"},"html":{"href":"https://github.com/lesleykhuu/crm/pull/2"},"issue":{"href":"https://api.github.com/repos/lesleykhuu/crm/issues/2"},"comments":{"href":"https://api.github.com/repos/lesleykhuu/crm/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/lesleykhuu/crm/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/lesleykhuu/crm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lesleykhuu/crm/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/lesleykhuu/crm/statuses/a843f63ceeb98d758ab7f4ab38a3047c9e9de59a"}}}}