{"action":"created","comment":{"url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/comments/69506506","id":69506506,"diff_hunk":"@@ -0,0 +1,156 @@\n+<?php\n+/**\n+ * Employee Class\n+ *.\n+ * @package\n+ * @subpackage\n+ * @category\n+ * @author Sanjeeb Rao\n+ */\n+class Employee {\n+\n+    private $signup_fields = array(\n+        'email' => '',\n+        'password' => '',\n+        'is_completed' => '',\n+    );\n+\n+    private $form_fields = array(\n+        'is_completed' => '1',\n+        'prefix' => '',\n+        'first_name' => '',\n+        'middle_name' => '' ,\n+        'last_name' => '',\n+        'gender' => '',\n+        'date_of_birth' => '',\n+        'marital' => '',\n+        'employment' => '',\n+        'employer' => '',\n+        'note' => '',\n+        'communication' => '',\n+        'photo' => ''\n+    );\n+\n+    private $table_name = 'employee';\n+    private $db_obj = NULL;\n+\n+    /**\n+     * Initialization of Database object.\n+     *\n+     * @access public constructor of Employee\n+     * @param  object db_object\n+     */\n+    public function __construct($db_object)\n+    {\n+        $this->db_obj = $db_object;\n+    }\n+\n+    /**\n+     * Create account of user.\n+     *\n+     * @access public create_account\n+     * @param  string email\n+     * @param  string password\n+     * @return mixed\n+     */\n+    public function create_account($email, $password)\n+    {\n+        $this->signup_fields['email'] = $email;\n+        $this->signup_fields['password'] = $password;\n+        $this->signup_fields['is_completed'] = '0';\n+\n+        if ($this->db_obj->insert($this->table_name, $this->signup_fields) === TRUE)\n+        {\n+            return $this->db_obj->get_last_insert_id();\n+        }\n+\n+        return FALSE;\n+    }\n+\n+    /**\n+     * Get employee data from database.\n+     *\n+     * @access public  get_employee\n+     * @param  integer employee_id\n+     * @return mixed\n+     */\n+    public function get_employee($employee_id = 0)\n+    {\n+        $value = 'employee.is_completed AS is_completed, employee.id AS emp_id,\n+            employee.first_name AS first_name, employee.middle_name AS middle_name,\n+            employee.last_name AS last_name, employee.date_of_birth AS date_of_birth,","path":"classlib/Employee.php","position":81,"original_position":81,"commit_id":"500c9ac45abfd697ca4c64b8e093c6bbbf763d22","original_commit_id":"500c9ac45abfd697ca4c64b8e093c6bbbf763d22","user":{"login":"satejkumar","id":8774058,"avatar_url":"https://avatars.githubusercontent.com/u/8774058?v=3","gravatar_id":"","url":"https://api.github.com/users/satejkumar","html_url":"https://github.com/satejkumar","followers_url":"https://api.github.com/users/satejkumar/followers","following_url":"https://api.github.com/users/satejkumar/following{/other_user}","gists_url":"https://api.github.com/users/satejkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/satejkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satejkumar/subscriptions","organizations_url":"https://api.github.com/users/satejkumar/orgs","repos_url":"https://api.github.com/users/satejkumar/repos","events_url":"https://api.github.com/users/satejkumar/events{/privacy}","received_events_url":"https://api.github.com/users/satejkumar/received_events","type":"User","site_admin":false},"body":"use short alias like emp instead of using employee table name prefix with column names for shorter code","created_at":"2016-07-05T04:24:18Z","updated_at":"2016-07-05T04:24:18Z","html_url":"https://github.com/sanjeebr/Profile_App/pull/3#discussion_r69506506","pull_request_url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/comments/69506506"},"html":{"href":"https://github.com/sanjeebr/Profile_App/pull/3#discussion_r69506506"},"pull_request":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3","id":75986873,"html_url":"https://github.com/sanjeebr/Profile_App/pull/3","diff_url":"https://github.com/sanjeebr/Profile_App/pull/3.diff","patch_url":"https://github.com/sanjeebr/Profile_App/pull/3.patch","issue_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues/3","number":3,"state":"open","locked":false,"title":"J query","user":{"login":"sanjeebr","id":19812158,"avatar_url":"https://avatars.githubusercontent.com/u/19812158?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjeebr","html_url":"https://github.com/sanjeebr","followers_url":"https://api.github.com/users/sanjeebr/followers","following_url":"https://api.github.com/users/sanjeebr/following{/other_user}","gists_url":"https://api.github.com/users/sanjeebr/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeebr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeebr/subscriptions","organizations_url":"https://api.github.com/users/sanjeebr/orgs","repos_url":"https://api.github.com/users/sanjeebr/repos","events_url":"https://api.github.com/users/sanjeebr/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeebr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-01T14:19:17Z","updated_at":"2016-07-05T04:24:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c70ce8526c127faa1217514204b8ec81f7ff0349","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues/3/comments","statuses_url":"https://api.github.com/repos/sanjeebr/Profile_App/statuses/500c9ac45abfd697ca4c64b8e093c6bbbf763d22","head":{"label":"sanjeebr:jQuery","ref":"jQuery","sha":"500c9ac45abfd697ca4c64b8e093c6bbbf763d22","user":{"login":"sanjeebr","id":19812158,"avatar_url":"https://avatars.githubusercontent.com/u/19812158?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjeebr","html_url":"https://github.com/sanjeebr","followers_url":"https://api.github.com/users/sanjeebr/followers","following_url":"https://api.github.com/users/sanjeebr/following{/other_user}","gists_url":"https://api.github.com/users/sanjeebr/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeebr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeebr/subscriptions","organizations_url":"https://api.github.com/users/sanjeebr/orgs","repos_url":"https://api.github.com/users/sanjeebr/repos","events_url":"https://api.github.com/users/sanjeebr/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeebr/received_events","type":"User","site_admin":false},"repo":{"id":61516489,"name":"Profile_App","full_name":"sanjeebr/Profile_App","owner":{"login":"sanjeebr","id":19812158,"avatar_url":"https://avatars.githubusercontent.com/u/19812158?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjeebr","html_url":"https://github.com/sanjeebr","followers_url":"https://api.github.com/users/sanjeebr/followers","following_url":"https://api.github.com/users/sanjeebr/following{/other_user}","gists_url":"https://api.github.com/users/sanjeebr/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeebr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeebr/subscriptions","organizations_url":"https://api.github.com/users/sanjeebr/orgs","repos_url":"https://api.github.com/users/sanjeebr/repos","events_url":"https://api.github.com/users/sanjeebr/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeebr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanjeebr/Profile_App","description":"","fork":false,"url":"https://api.github.com/repos/sanjeebr/Profile_App","forks_url":"https://api.github.com/repos/sanjeebr/Profile_App/forks","keys_url":"https://api.github.com/repos/sanjeebr/Profile_App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanjeebr/Profile_App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanjeebr/Profile_App/teams","hooks_url":"https://api.github.com/repos/sanjeebr/Profile_App/hooks","issue_events_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues/events{/number}","events_url":"https://api.github.com/repos/sanjeebr/Profile_App/events","assignees_url":"https://api.github.com/repos/sanjeebr/Profile_App/assignees{/user}","branches_url":"https://api.github.com/repos/sanjeebr/Profile_App/branches{/branch}","tags_url":"https://api.github.com/repos/sanjeebr/Profile_App/tags","blobs_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanjeebr/Profile_App/statuses/{sha}","languages_url":"https://api.github.com/repos/sanjeebr/Profile_App/languages","stargazers_url":"https://api.github.com/repos/sanjeebr/Profile_App/stargazers","contributors_url":"https://api.github.com/repos/sanjeebr/Profile_App/contributors","subscribers_url":"https://api.github.com/repos/sanjeebr/Profile_App/subscribers","subscription_url":"https://api.github.com/repos/sanjeebr/Profile_App/subscription","commits_url":"https://api.github.com/repos/sanjeebr/Profile_App/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanjeebr/Profile_App/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanjeebr/Profile_App/contents/{+path}","compare_url":"https://api.github.com/repos/sanjeebr/Profile_App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanjeebr/Profile_App/merges","archive_url":"https://api.github.com/repos/sanjeebr/Profile_App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanjeebr/Profile_App/downloads","issues_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues{/number}","pulls_url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls{/number}","milestones_url":"https://api.github.com/repos/sanjeebr/Profile_App/milestones{/number}","notifications_url":"https://api.github.com/repos/sanjeebr/Profile_App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanjeebr/Profile_App/labels{/name}","releases_url":"https://api.github.com/repos/sanjeebr/Profile_App/releases{/id}","deployments_url":"https://api.github.com/repos/sanjeebr/Profile_App/deployments","created_at":"2016-06-20T04:20:09Z","updated_at":"2016-06-20T04:30:15Z","pushed_at":"2016-07-01T14:19:18Z","git_url":"git://github.com/sanjeebr/Profile_App.git","ssh_url":"git@github.com:sanjeebr/Profile_App.git","clone_url":"https://github.com/sanjeebr/Profile_App.git","svn_url":"https://github.com/sanjeebr/Profile_App","homepage":null,"size":6064,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"sanjeebr:master","ref":"master","sha":"03a53d245d3877ca202752e0db59cb25ec7215cd","user":{"login":"sanjeebr","id":19812158,"avatar_url":"https://avatars.githubusercontent.com/u/19812158?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjeebr","html_url":"https://github.com/sanjeebr","followers_url":"https://api.github.com/users/sanjeebr/followers","following_url":"https://api.github.com/users/sanjeebr/following{/other_user}","gists_url":"https://api.github.com/users/sanjeebr/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeebr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeebr/subscriptions","organizations_url":"https://api.github.com/users/sanjeebr/orgs","repos_url":"https://api.github.com/users/sanjeebr/repos","events_url":"https://api.github.com/users/sanjeebr/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeebr/received_events","type":"User","site_admin":false},"repo":{"id":61516489,"name":"Profile_App","full_name":"sanjeebr/Profile_App","owner":{"login":"sanjeebr","id":19812158,"avatar_url":"https://avatars.githubusercontent.com/u/19812158?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjeebr","html_url":"https://github.com/sanjeebr","followers_url":"https://api.github.com/users/sanjeebr/followers","following_url":"https://api.github.com/users/sanjeebr/following{/other_user}","gists_url":"https://api.github.com/users/sanjeebr/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeebr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeebr/subscriptions","organizations_url":"https://api.github.com/users/sanjeebr/orgs","repos_url":"https://api.github.com/users/sanjeebr/repos","events_url":"https://api.github.com/users/sanjeebr/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeebr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanjeebr/Profile_App","description":"","fork":false,"url":"https://api.github.com/repos/sanjeebr/Profile_App","forks_url":"https://api.github.com/repos/sanjeebr/Profile_App/forks","keys_url":"https://api.github.com/repos/sanjeebr/Profile_App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanjeebr/Profile_App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanjeebr/Profile_App/teams","hooks_url":"https://api.github.com/repos/sanjeebr/Profile_App/hooks","issue_events_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues/events{/number}","events_url":"https://api.github.com/repos/sanjeebr/Profile_App/events","assignees_url":"https://api.github.com/repos/sanjeebr/Profile_App/assignees{/user}","branches_url":"https://api.github.com/repos/sanjeebr/Profile_App/branches{/branch}","tags_url":"https://api.github.com/repos/sanjeebr/Profile_App/tags","blobs_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanjeebr/Profile_App/statuses/{sha}","languages_url":"https://api.github.com/repos/sanjeebr/Profile_App/languages","stargazers_url":"https://api.github.com/repos/sanjeebr/Profile_App/stargazers","contributors_url":"https://api.github.com/repos/sanjeebr/Profile_App/contributors","subscribers_url":"https://api.github.com/repos/sanjeebr/Profile_App/subscribers","subscription_url":"https://api.github.com/repos/sanjeebr/Profile_App/subscription","commits_url":"https://api.github.com/repos/sanjeebr/Profile_App/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanjeebr/Profile_App/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanjeebr/Profile_App/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanjeebr/Profile_App/contents/{+path}","compare_url":"https://api.github.com/repos/sanjeebr/Profile_App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanjeebr/Profile_App/merges","archive_url":"https://api.github.com/repos/sanjeebr/Profile_App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanjeebr/Profile_App/downloads","issues_url":"https://api.github.com/repos/sanjeebr/Profile_App/issues{/number}","pulls_url":"https://api.github.com/repos/sanjeebr/Profile_App/pulls{/number}","milestones_url":"https://api.github.com/repos/sanjeebr/Profile_App/milestones{/number}","notifications_url":"https://api.github.com/repos/sanjeebr/Profile_App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanjeebr/Profile_App/labels{/name}","releases_url":"https://api.github.com/repos/sanjeebr/Profile_App/releases{/id}","deployments_url":"https://api.github.com/repos/sanjeebr/Profile_App/deployments","created_at":"2016-06-20T04:20:09Z","updated_at":"2016-06-20T04:30:15Z","pushed_at":"2016-07-01T14:19:18Z","git_url":"git://github.com/sanjeebr/Profile_App.git","ssh_url":"git@github.com:sanjeebr/Profile_App.git","clone_url":"https://github.com/sanjeebr/Profile_App.git","svn_url":"https://github.com/sanjeebr/Profile_App","homepage":null,"size":6064,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3"},"html":{"href":"https://github.com/sanjeebr/Profile_App/pull/3"},"issue":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/issues/3"},"comments":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sanjeebr/Profile_App/statuses/500c9ac45abfd697ca4c64b8e093c6bbbf763d22"}}}}
{"actor":{"display_login":"satejkumar"}}