{"action":"created","comment":{"url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/comments/74805693","id":74805693,"diff_hunk":"@@ -0,0 +1,50 @@\n+<?php\n+    require_once '../core.php';\n+    require_once '../models/newsModel.php';\n+    require_once '../views/newsView.php';\n+\n+    class Controller\n+    {\n+        private $model;\n+        private $view;\n+\n+        function __construct($model, $view)\n+        {\n+            $this->model = $model;\n+            $this->view = $view;\n+        }\n+\n+        function HandlerGetNum()\n+        {\n+            $arr = $this->model->GetNews();\n+            $this->view->ShowTemplate(\"templates/newsTemplate.php\", $this->model->positionFirstNews, $this->model->count_news_on_page, $arr);\n+        }\n+\n+        function HandlerGet()","path":"controllers/index.php","position":23,"original_position":23,"commit_id":"c703019f010c0d976dbb7fd0f27af6fecd2ffa27","original_commit_id":"a3831afe826b54157ceb681d3c39d64f744595ee","user":{"login":"VladislavForos","id":20912641,"avatar_url":"https://avatars.githubusercontent.com/u/20912641?v=3","gravatar_id":"","url":"https://api.github.com/users/VladislavForos","html_url":"https://github.com/VladislavForos","followers_url":"https://api.github.com/users/VladislavForos/followers","following_url":"https://api.github.com/users/VladislavForos/following{/other_user}","gists_url":"https://api.github.com/users/VladislavForos/gists{/gist_id}","starred_url":"https://api.github.com/users/VladislavForos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladislavForos/subscriptions","organizations_url":"https://api.github.com/users/VladislavForos/orgs","repos_url":"https://api.github.com/users/VladislavForos/repos","events_url":"https://api.github.com/users/VladislavForos/events{/privacy}","received_events_url":"https://api.github.com/users/VladislavForos/received_events","type":"User","site_admin":false},"body":"вопросов нет, универ и С# толковал иную версию) ","created_at":"2016-08-15T18:10:06Z","updated_at":"2016-08-15T18:10:06Z","html_url":"https://github.com/VladislavForos/test_OOP/pull/1#discussion_r74805693","pull_request_url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/comments/74805693"},"html":{"href":"https://github.com/VladislavForos/test_OOP/pull/1#discussion_r74805693"},"pull_request":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/1","id":81343843,"html_url":"https://github.com/VladislavForos/test_OOP/pull/1","diff_url":"https://github.com/VladislavForos/test_OOP/pull/1.diff","patch_url":"https://github.com/VladislavForos/test_OOP/pull/1.patch","issue_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues/1","number":1,"state":"open","locked":false,"title":"Refactoring mvc","user":{"login":"VladislavForos","id":20912641,"avatar_url":"https://avatars.githubusercontent.com/u/20912641?v=3","gravatar_id":"","url":"https://api.github.com/users/VladislavForos","html_url":"https://github.com/VladislavForos","followers_url":"https://api.github.com/users/VladislavForos/followers","following_url":"https://api.github.com/users/VladislavForos/following{/other_user}","gists_url":"https://api.github.com/users/VladislavForos/gists{/gist_id}","starred_url":"https://api.github.com/users/VladislavForos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladislavForos/subscriptions","organizations_url":"https://api.github.com/users/VladislavForos/orgs","repos_url":"https://api.github.com/users/VladislavForos/repos","events_url":"https://api.github.com/users/VladislavForos/events{/privacy}","received_events_url":"https://api.github.com/users/VladislavForos/received_events","type":"User","site_admin":false},"body":"Вот рабочая версия вывода новостей из базы.","created_at":"2016-08-15T17:20:54Z","updated_at":"2016-08-15T18:10:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"723e6224802c75d356334abfbc9ac69ec11eef3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/1/commits","review_comments_url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/1/comments","review_comment_url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues/1/comments","statuses_url":"https://api.github.com/repos/VladislavForos/test_OOP/statuses/c703019f010c0d976dbb7fd0f27af6fecd2ffa27","head":{"label":"VladislavForos:refactoring-mvc","ref":"refactoring-mvc","sha":"c703019f010c0d976dbb7fd0f27af6fecd2ffa27","user":{"login":"VladislavForos","id":20912641,"avatar_url":"https://avatars.githubusercontent.com/u/20912641?v=3","gravatar_id":"","url":"https://api.github.com/users/VladislavForos","html_url":"https://github.com/VladislavForos","followers_url":"https://api.github.com/users/VladislavForos/followers","following_url":"https://api.github.com/users/VladislavForos/following{/other_user}","gists_url":"https://api.github.com/users/VladislavForos/gists{/gist_id}","starred_url":"https://api.github.com/users/VladislavForos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladislavForos/subscriptions","organizations_url":"https://api.github.com/users/VladislavForos/orgs","repos_url":"https://api.github.com/users/VladislavForos/repos","events_url":"https://api.github.com/users/VladislavForos/events{/privacy}","received_events_url":"https://api.github.com/users/VladislavForos/received_events","type":"User","site_admin":false},"repo":{"id":65232791,"name":"test_OOP","full_name":"VladislavForos/test_OOP","owner":{"login":"VladislavForos","id":20912641,"avatar_url":"https://avatars.githubusercontent.com/u/20912641?v=3","gravatar_id":"","url":"https://api.github.com/users/VladislavForos","html_url":"https://github.com/VladislavForos","followers_url":"https://api.github.com/users/VladislavForos/followers","following_url":"https://api.github.com/users/VladislavForos/following{/other_user}","gists_url":"https://api.github.com/users/VladislavForos/gists{/gist_id}","starred_url":"https://api.github.com/users/VladislavForos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladislavForos/subscriptions","organizations_url":"https://api.github.com/users/VladislavForos/orgs","repos_url":"https://api.github.com/users/VladislavForos/repos","events_url":"https://api.github.com/users/VladislavForos/events{/privacy}","received_events_url":"https://api.github.com/users/VladislavForos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VladislavForos/test_OOP","description":null,"fork":false,"url":"https://api.github.com/repos/VladislavForos/test_OOP","forks_url":"https://api.github.com/repos/VladislavForos/test_OOP/forks","keys_url":"https://api.github.com/repos/VladislavForos/test_OOP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VladislavForos/test_OOP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VladislavForos/test_OOP/teams","hooks_url":"https://api.github.com/repos/VladislavForos/test_OOP/hooks","issue_events_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues/events{/number}","events_url":"https://api.github.com/repos/VladislavForos/test_OOP/events","assignees_url":"https://api.github.com/repos/VladislavForos/test_OOP/assignees{/user}","branches_url":"https://api.github.com/repos/VladislavForos/test_OOP/branches{/branch}","tags_url":"https://api.github.com/repos/VladislavForos/test_OOP/tags","blobs_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/refs{/sha}","trees_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VladislavForos/test_OOP/statuses/{sha}","languages_url":"https://api.github.com/repos/VladislavForos/test_OOP/languages","stargazers_url":"https://api.github.com/repos/VladislavForos/test_OOP/stargazers","contributors_url":"https://api.github.com/repos/VladislavForos/test_OOP/contributors","subscribers_url":"https://api.github.com/repos/VladislavForos/test_OOP/subscribers","subscription_url":"https://api.github.com/repos/VladislavForos/test_OOP/subscription","commits_url":"https://api.github.com/repos/VladislavForos/test_OOP/commits{/sha}","git_commits_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/commits{/sha}","comments_url":"https://api.github.com/repos/VladislavForos/test_OOP/comments{/number}","issue_comment_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues/comments{/number}","contents_url":"https://api.github.com/repos/VladislavForos/test_OOP/contents/{+path}","compare_url":"https://api.github.com/repos/VladislavForos/test_OOP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VladislavForos/test_OOP/merges","archive_url":"https://api.github.com/repos/VladislavForos/test_OOP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VladislavForos/test_OOP/downloads","issues_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues{/number}","pulls_url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls{/number}","milestones_url":"https://api.github.com/repos/VladislavForos/test_OOP/milestones{/number}","notifications_url":"https://api.github.com/repos/VladislavForos/test_OOP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VladislavForos/test_OOP/labels{/name}","releases_url":"https://api.github.com/repos/VladislavForos/test_OOP/releases{/id}","deployments_url":"https://api.github.com/repos/VladislavForos/test_OOP/deployments","created_at":"2016-08-08T19:29:15Z","updated_at":"2016-08-08T19:29:29Z","pushed_at":"2016-08-15T17:37:11Z","git_url":"git://github.com/VladislavForos/test_OOP.git","ssh_url":"git@github.com:VladislavForos/test_OOP.git","clone_url":"https://github.com/VladislavForos/test_OOP.git","svn_url":"https://github.com/VladislavForos/test_OOP","homepage":null,"size":138,"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":"VladislavForos:master","ref":"master","sha":"ec540941e671274a232b8a6c8c8e007884a0c5a2","user":{"login":"VladislavForos","id":20912641,"avatar_url":"https://avatars.githubusercontent.com/u/20912641?v=3","gravatar_id":"","url":"https://api.github.com/users/VladislavForos","html_url":"https://github.com/VladislavForos","followers_url":"https://api.github.com/users/VladislavForos/followers","following_url":"https://api.github.com/users/VladislavForos/following{/other_user}","gists_url":"https://api.github.com/users/VladislavForos/gists{/gist_id}","starred_url":"https://api.github.com/users/VladislavForos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladislavForos/subscriptions","organizations_url":"https://api.github.com/users/VladislavForos/orgs","repos_url":"https://api.github.com/users/VladislavForos/repos","events_url":"https://api.github.com/users/VladislavForos/events{/privacy}","received_events_url":"https://api.github.com/users/VladislavForos/received_events","type":"User","site_admin":false},"repo":{"id":65232791,"name":"test_OOP","full_name":"VladislavForos/test_OOP","owner":{"login":"VladislavForos","id":20912641,"avatar_url":"https://avatars.githubusercontent.com/u/20912641?v=3","gravatar_id":"","url":"https://api.github.com/users/VladislavForos","html_url":"https://github.com/VladislavForos","followers_url":"https://api.github.com/users/VladislavForos/followers","following_url":"https://api.github.com/users/VladislavForos/following{/other_user}","gists_url":"https://api.github.com/users/VladislavForos/gists{/gist_id}","starred_url":"https://api.github.com/users/VladislavForos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladislavForos/subscriptions","organizations_url":"https://api.github.com/users/VladislavForos/orgs","repos_url":"https://api.github.com/users/VladislavForos/repos","events_url":"https://api.github.com/users/VladislavForos/events{/privacy}","received_events_url":"https://api.github.com/users/VladislavForos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VladislavForos/test_OOP","description":null,"fork":false,"url":"https://api.github.com/repos/VladislavForos/test_OOP","forks_url":"https://api.github.com/repos/VladislavForos/test_OOP/forks","keys_url":"https://api.github.com/repos/VladislavForos/test_OOP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VladislavForos/test_OOP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VladislavForos/test_OOP/teams","hooks_url":"https://api.github.com/repos/VladislavForos/test_OOP/hooks","issue_events_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues/events{/number}","events_url":"https://api.github.com/repos/VladislavForos/test_OOP/events","assignees_url":"https://api.github.com/repos/VladislavForos/test_OOP/assignees{/user}","branches_url":"https://api.github.com/repos/VladislavForos/test_OOP/branches{/branch}","tags_url":"https://api.github.com/repos/VladislavForos/test_OOP/tags","blobs_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/refs{/sha}","trees_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VladislavForos/test_OOP/statuses/{sha}","languages_url":"https://api.github.com/repos/VladislavForos/test_OOP/languages","stargazers_url":"https://api.github.com/repos/VladislavForos/test_OOP/stargazers","contributors_url":"https://api.github.com/repos/VladislavForos/test_OOP/contributors","subscribers_url":"https://api.github.com/repos/VladislavForos/test_OOP/subscribers","subscription_url":"https://api.github.com/repos/VladislavForos/test_OOP/subscription","commits_url":"https://api.github.com/repos/VladislavForos/test_OOP/commits{/sha}","git_commits_url":"https://api.github.com/repos/VladislavForos/test_OOP/git/commits{/sha}","comments_url":"https://api.github.com/repos/VladislavForos/test_OOP/comments{/number}","issue_comment_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues/comments{/number}","contents_url":"https://api.github.com/repos/VladislavForos/test_OOP/contents/{+path}","compare_url":"https://api.github.com/repos/VladislavForos/test_OOP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VladislavForos/test_OOP/merges","archive_url":"https://api.github.com/repos/VladislavForos/test_OOP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VladislavForos/test_OOP/downloads","issues_url":"https://api.github.com/repos/VladislavForos/test_OOP/issues{/number}","pulls_url":"https://api.github.com/repos/VladislavForos/test_OOP/pulls{/number}","milestones_url":"https://api.github.com/repos/VladislavForos/test_OOP/milestones{/number}","notifications_url":"https://api.github.com/repos/VladislavForos/test_OOP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VladislavForos/test_OOP/labels{/name}","releases_url":"https://api.github.com/repos/VladislavForos/test_OOP/releases{/id}","deployments_url":"https://api.github.com/repos/VladislavForos/test_OOP/deployments","created_at":"2016-08-08T19:29:15Z","updated_at":"2016-08-08T19:29:29Z","pushed_at":"2016-08-15T17:37:11Z","git_url":"git://github.com/VladislavForos/test_OOP.git","ssh_url":"git@github.com:VladislavForos/test_OOP.git","clone_url":"https://github.com/VladislavForos/test_OOP.git","svn_url":"https://github.com/VladislavForos/test_OOP","homepage":null,"size":138,"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/VladislavForos/test_OOP/pulls/1"},"html":{"href":"https://github.com/VladislavForos/test_OOP/pull/1"},"issue":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/issues/1"},"comments":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/VladislavForos/test_OOP/statuses/c703019f010c0d976dbb7fd0f27af6fecd2ffa27"}}}}
{"actor":{"display_login":"VladislavForos"}}