{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_150/pulls/comments/68882564","id":68882564,"diff_hunk":"@@ -0,0 +1,37 @@\n+<?php\n+\n+class Category_Model extends CI_Model \n+{   \n+    const TABLE = 'categories';\n+\n+    public function __construct() \n+    {\n+        parent::__construct();\n+    }\n+\n+    public function create($data_value = NULL) \n+    {\n+        $this->db->insert(self::TABLE, $data_value);\n+        $fag = $this->db->affected_rows();\n+\n+        if ($fag > 0) {\n+            return array(\n+                'type' => 'seccessful',\n+                'message' => lang('category_create_successful'),\n+                );\n+        } else {\n+            return array(\n+                'type' => 'error',\n+                'message' => lang('category_create_error'),\n+                );","path":"application/models/Category_Model.php","position":26,"original_position":26,"commit_id":"37cb2d0fc320421dde04030169f69fb128ca54d7","original_commit_id":"37cb2d0fc320421dde04030169f69fb128ca54d7","user":{"login":"phamkykhoi","id":8532305,"avatar_url":"https://avatars.githubusercontent.com/u/8532305?v=3","gravatar_id":"","url":"https://api.github.com/users/phamkykhoi","html_url":"https://github.com/phamkykhoi","followers_url":"https://api.github.com/users/phamkykhoi/followers","following_url":"https://api.github.com/users/phamkykhoi/following{/other_user}","gists_url":"https://api.github.com/users/phamkykhoi/gists{/gist_id}","starred_url":"https://api.github.com/users/phamkykhoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamkykhoi/subscriptions","organizations_url":"https://api.github.com/users/phamkykhoi/orgs","repos_url":"https://api.github.com/users/phamkykhoi/repos","events_url":"https://api.github.com/users/phamkykhoi/events{/privacy}","received_events_url":"https://api.github.com/users/phamkykhoi/received_events","type":"User","site_admin":false},"body":"Indent","created_at":"2016-06-29T04:09:01Z","updated_at":"2016-06-29T04:09:01Z","html_url":"https://github.com/framgia/fels_150/pull/4#discussion_r68882564","pull_request_url":"https://api.github.com/repos/framgia/fels_150/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_150/pulls/comments/68882564"},"html":{"href":"https://github.com/framgia/fels_150/pull/4#discussion_r68882564"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_150/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_150/pulls/4","id":75523563,"html_url":"https://github.com/framgia/fels_150/pull/4","diff_url":"https://github.com/framgia/fels_150/pull/4.diff","patch_url":"https://github.com/framgia/fels_150/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/fels_150/issues/4","number":4,"state":"open","locked":false,"title":"category","user":{"login":"theanhhpp","id":14565541,"avatar_url":"https://avatars.githubusercontent.com/u/14565541?v=3","gravatar_id":"","url":"https://api.github.com/users/theanhhpp","html_url":"https://github.com/theanhhpp","followers_url":"https://api.github.com/users/theanhhpp/followers","following_url":"https://api.github.com/users/theanhhpp/following{/other_user}","gists_url":"https://api.github.com/users/theanhhpp/gists{/gist_id}","starred_url":"https://api.github.com/users/theanhhpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theanhhpp/subscriptions","organizations_url":"https://api.github.com/users/theanhhpp/orgs","repos_url":"https://api.github.com/users/theanhhpp/repos","events_url":"https://api.github.com/users/theanhhpp/events{/privacy}","received_events_url":"https://api.github.com/users/theanhhpp/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-28T18:08:17Z","updated_at":"2016-06-29T04:09:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f54ff71df4d9701dd9fa66c361b4a4dfc44c661","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_150/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_150/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_150/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_150/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/fels_150/statuses/37cb2d0fc320421dde04030169f69fb128ca54d7","head":{"label":"theanhhpp:develop","ref":"develop","sha":"37cb2d0fc320421dde04030169f69fb128ca54d7","user":{"login":"theanhhpp","id":14565541,"avatar_url":"https://avatars.githubusercontent.com/u/14565541?v=3","gravatar_id":"","url":"https://api.github.com/users/theanhhpp","html_url":"https://github.com/theanhhpp","followers_url":"https://api.github.com/users/theanhhpp/followers","following_url":"https://api.github.com/users/theanhhpp/following{/other_user}","gists_url":"https://api.github.com/users/theanhhpp/gists{/gist_id}","starred_url":"https://api.github.com/users/theanhhpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theanhhpp/subscriptions","organizations_url":"https://api.github.com/users/theanhhpp/orgs","repos_url":"https://api.github.com/users/theanhhpp/repos","events_url":"https://api.github.com/users/theanhhpp/events{/privacy}","received_events_url":"https://api.github.com/users/theanhhpp/received_events","type":"User","site_admin":false},"repo":{"id":62117245,"name":"fels_150","full_name":"theanhhpp/fels_150","owner":{"login":"theanhhpp","id":14565541,"avatar_url":"https://avatars.githubusercontent.com/u/14565541?v=3","gravatar_id":"","url":"https://api.github.com/users/theanhhpp","html_url":"https://github.com/theanhhpp","followers_url":"https://api.github.com/users/theanhhpp/followers","following_url":"https://api.github.com/users/theanhhpp/following{/other_user}","gists_url":"https://api.github.com/users/theanhhpp/gists{/gist_id}","starred_url":"https://api.github.com/users/theanhhpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theanhhpp/subscriptions","organizations_url":"https://api.github.com/users/theanhhpp/orgs","repos_url":"https://api.github.com/users/theanhhpp/repos","events_url":"https://api.github.com/users/theanhhpp/events{/privacy}","received_events_url":"https://api.github.com/users/theanhhpp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theanhhpp/fels_150","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/theanhhpp/fels_150","forks_url":"https://api.github.com/repos/theanhhpp/fels_150/forks","keys_url":"https://api.github.com/repos/theanhhpp/fels_150/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theanhhpp/fels_150/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theanhhpp/fels_150/teams","hooks_url":"https://api.github.com/repos/theanhhpp/fels_150/hooks","issue_events_url":"https://api.github.com/repos/theanhhpp/fels_150/issues/events{/number}","events_url":"https://api.github.com/repos/theanhhpp/fels_150/events","assignees_url":"https://api.github.com/repos/theanhhpp/fels_150/assignees{/user}","branches_url":"https://api.github.com/repos/theanhhpp/fels_150/branches{/branch}","tags_url":"https://api.github.com/repos/theanhhpp/fels_150/tags","blobs_url":"https://api.github.com/repos/theanhhpp/fels_150/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theanhhpp/fels_150/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theanhhpp/fels_150/git/refs{/sha}","trees_url":"https://api.github.com/repos/theanhhpp/fels_150/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theanhhpp/fels_150/statuses/{sha}","languages_url":"https://api.github.com/repos/theanhhpp/fels_150/languages","stargazers_url":"https://api.github.com/repos/theanhhpp/fels_150/stargazers","contributors_url":"https://api.github.com/repos/theanhhpp/fels_150/contributors","subscribers_url":"https://api.github.com/repos/theanhhpp/fels_150/subscribers","subscription_url":"https://api.github.com/repos/theanhhpp/fels_150/subscription","commits_url":"https://api.github.com/repos/theanhhpp/fels_150/commits{/sha}","git_commits_url":"https://api.github.com/repos/theanhhpp/fels_150/git/commits{/sha}","comments_url":"https://api.github.com/repos/theanhhpp/fels_150/comments{/number}","issue_comment_url":"https://api.github.com/repos/theanhhpp/fels_150/issues/comments{/number}","contents_url":"https://api.github.com/repos/theanhhpp/fels_150/contents/{+path}","compare_url":"https://api.github.com/repos/theanhhpp/fels_150/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theanhhpp/fels_150/merges","archive_url":"https://api.github.com/repos/theanhhpp/fels_150/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theanhhpp/fels_150/downloads","issues_url":"https://api.github.com/repos/theanhhpp/fels_150/issues{/number}","pulls_url":"https://api.github.com/repos/theanhhpp/fels_150/pulls{/number}","milestones_url":"https://api.github.com/repos/theanhhpp/fels_150/milestones{/number}","notifications_url":"https://api.github.com/repos/theanhhpp/fels_150/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theanhhpp/fels_150/labels{/name}","releases_url":"https://api.github.com/repos/theanhhpp/fels_150/releases{/id}","deployments_url":"https://api.github.com/repos/theanhhpp/fels_150/deployments","created_at":"2016-06-28T06:51:00Z","updated_at":"2016-06-23T09:34:04Z","pushed_at":"2016-06-29T02:39:24Z","git_url":"git://github.com/theanhhpp/fels_150.git","ssh_url":"git@github.com:theanhhpp/fels_150.git","clone_url":"https://github.com/theanhhpp/fels_150.git","svn_url":"https://github.com/theanhhpp/fels_150","homepage":null,"size":1254,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"111204a7761cd404b45555f52a9ae176674dc2f3","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":61793199,"name":"fels_150","full_name":"framgia/fels_150","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_150","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_150","forks_url":"https://api.github.com/repos/framgia/fels_150/forks","keys_url":"https://api.github.com/repos/framgia/fels_150/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_150/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_150/teams","hooks_url":"https://api.github.com/repos/framgia/fels_150/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_150/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_150/events","assignees_url":"https://api.github.com/repos/framgia/fels_150/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_150/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_150/tags","blobs_url":"https://api.github.com/repos/framgia/fels_150/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_150/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_150/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_150/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_150/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_150/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_150/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_150/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_150/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_150/subscription","commits_url":"https://api.github.com/repos/framgia/fels_150/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_150/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_150/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_150/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_150/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_150/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_150/merges","archive_url":"https://api.github.com/repos/framgia/fels_150/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_150/downloads","issues_url":"https://api.github.com/repos/framgia/fels_150/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_150/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_150/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_150/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_150/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_150/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_150/deployments","created_at":"2016-06-23T09:34:04Z","updated_at":"2016-06-23T09:34:04Z","pushed_at":"2016-06-29T02:39:24Z","git_url":"git://github.com/framgia/fels_150.git","ssh_url":"git@github.com:framgia/fels_150.git","clone_url":"https://github.com/framgia/fels_150.git","svn_url":"https://github.com/framgia/fels_150","homepage":null,"size":1259,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_150/pulls/4"},"html":{"href":"https://github.com/framgia/fels_150/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/fels_150/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/fels_150/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_150/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_150/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_150/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_150/statuses/37cb2d0fc320421dde04030169f69fb128ca54d7"}}}}
{"actor":{"display_login":"phamkykhoi"}}