{"action":"created","comment":{"url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments/42081416","id":42081416,"diff_hunk":"@@ -0,0 +1,59 @@\n+<?php\n+\n+class CSearchCatalogCorriculumDisciplines extends CAbstractSearchCatalog {\n+\n+    public function actionTypeAhead($lookup) {\n+        $result = array();\n+        $plan = CWorkPlanManager::getWorkplan(CRequest::getInt(\"plan_id\"));\n+        $discipline = CCorriculumsManager::getDiscipline($plan->corriculum_discipline_id);\n+        $corriculum = $discipline->cycle->corriculum;\n+        $query = new CQuery();\n+        $query->select(\"discipline.id as id, subject.name as name\")\n+\t        ->from(TABLE_CORRICULUM_DISCIPLINES.\" as discipline\")\n+\t        ->innerJoin(TABLE_CORRICULUM_CYCLES.\" as cycle\", \"discipline.cycle_id = cycle.id\")\n+\t        ->innerJoin(TABLE_DISCIPLINES.\" as subject\", \"subject.id = discipline.discipline_id\")\n+\t        ->condition(\"subject.name like '%\".$lookup.\"%' AND cycle.corriculum_id=\".$corriculum->getId())\n+            ->limit(0, 10);\n+        foreach ($query->execute()->getItems() as $item) {\n+            $result[$item[\"id\"]] = $item[\"name\"];\n+        }\n+        return $result;\n+    }\n+\n+    public function actionGetItem($id) {\n+        $result = array();\n+        $obj = $this->actionGetObject($id);\n+        $discipline = CCorriculumsManager::getDiscipline($id);\n+        if (!is_null($discipline)) {\n+            $result[$discipline->getId()] = $discipline->discipline->getValue();\n+        }\n+        return $result;\n+    }\n+\n+    public function actionGetViewData()\n+    {\n+        $result = array();\n+        $plan = CWorkPlanManager::getWorkplan(CRequest::getInt(\"plan_id\"));\n+        $discipline = CCorriculumsManager::getDiscipline($plan->corriculum_discipline_id);\n+        $corriculum = $discipline->cycle->corriculum;\n+        $query = new CQuery();\n+        $query->select(\"discipline.id as id, subject.name as name\")\n+            ->from(TABLE_CORRICULUM_DISCIPLINES.\" as discipline\")","path":"_core/_models/workplan/CSearchCatalogCorriculumDisciplines.class.php","position":41,"original_position":41,"commit_id":"1cf1f7ec866d0f0e27742098ac8cc4f749978e35","original_commit_id":"1cf1f7ec866d0f0e27742098ac8cc4f749978e35","user":{"login":"alexbarmin","id":965970,"avatar_url":"https://avatars.githubusercontent.com/u/965970?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbarmin","html_url":"https://github.com/alexbarmin","followers_url":"https://api.github.com/users/alexbarmin/followers","following_url":"https://api.github.com/users/alexbarmin/following{/other_user}","gists_url":"https://api.github.com/users/alexbarmin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbarmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbarmin/subscriptions","organizations_url":"https://api.github.com/users/alexbarmin/orgs","repos_url":"https://api.github.com/users/alexbarmin/repos","events_url":"https://api.github.com/users/alexbarmin/events{/privacy}","received_events_url":"https://api.github.com/users/alexbarmin/received_events","type":"User","site_admin":false},"body":"И здесь, соответственно","created_at":"2015-10-15T04:01:12Z","updated_at":"2015-10-15T04:01:12Z","html_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/118#discussion_r42081416","pull_request_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments/42081416"},"html":{"href":"https://github.com/ASUPortal/ASUPortalPHP/pull/118#discussion_r42081416"},"pull_request":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118","id":47720755,"html_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/118","diff_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/118.diff","patch_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/118.patch","issue_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/118","number":118,"state":"open","locked":false,"title":"Копирование входных и исходящих компетенций","user":{"login":"shamidanow","id":9052480,"avatar_url":"https://avatars.githubusercontent.com/u/9052480?v=3","gravatar_id":"","url":"https://api.github.com/users/shamidanow","html_url":"https://github.com/shamidanow","followers_url":"https://api.github.com/users/shamidanow/followers","following_url":"https://api.github.com/users/shamidanow/following{/other_user}","gists_url":"https://api.github.com/users/shamidanow/gists{/gist_id}","starred_url":"https://api.github.com/users/shamidanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamidanow/subscriptions","organizations_url":"https://api.github.com/users/shamidanow/orgs","repos_url":"https://api.github.com/users/shamidanow/repos","events_url":"https://api.github.com/users/shamidanow/events{/privacy}","received_events_url":"https://api.github.com/users/shamidanow/received_events","type":"User","site_admin":false},"body":"После обновления необходимо будет заново заполнить предшествующие и последующие дисциплины рабочих программ.","created_at":"2015-10-14T22:00:34Z","updated_at":"2015-10-15T04:01:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0561c3cecd40f126f69825fd2689d40a689353b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118/commits","review_comments_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118/comments","review_comment_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/118/comments","statuses_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/statuses/1cf1f7ec866d0f0e27742098ac8cc4f749978e35","head":{"label":"shamidanow:new_dev","ref":"new_dev","sha":"1cf1f7ec866d0f0e27742098ac8cc4f749978e35","user":{"login":"shamidanow","id":9052480,"avatar_url":"https://avatars.githubusercontent.com/u/9052480?v=3","gravatar_id":"","url":"https://api.github.com/users/shamidanow","html_url":"https://github.com/shamidanow","followers_url":"https://api.github.com/users/shamidanow/followers","following_url":"https://api.github.com/users/shamidanow/following{/other_user}","gists_url":"https://api.github.com/users/shamidanow/gists{/gist_id}","starred_url":"https://api.github.com/users/shamidanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamidanow/subscriptions","organizations_url":"https://api.github.com/users/shamidanow/orgs","repos_url":"https://api.github.com/users/shamidanow/repos","events_url":"https://api.github.com/users/shamidanow/events{/privacy}","received_events_url":"https://api.github.com/users/shamidanow/received_events","type":"User","site_admin":false},"repo":{"id":25765758,"name":"ASUPortalPHP","full_name":"shamidanow/ASUPortalPHP","owner":{"login":"shamidanow","id":9052480,"avatar_url":"https://avatars.githubusercontent.com/u/9052480?v=3","gravatar_id":"","url":"https://api.github.com/users/shamidanow","html_url":"https://github.com/shamidanow","followers_url":"https://api.github.com/users/shamidanow/followers","following_url":"https://api.github.com/users/shamidanow/following{/other_user}","gists_url":"https://api.github.com/users/shamidanow/gists{/gist_id}","starred_url":"https://api.github.com/users/shamidanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamidanow/subscriptions","organizations_url":"https://api.github.com/users/shamidanow/orgs","repos_url":"https://api.github.com/users/shamidanow/repos","events_url":"https://api.github.com/users/shamidanow/events{/privacy}","received_events_url":"https://api.github.com/users/shamidanow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shamidanow/ASUPortalPHP","description":"","fork":true,"url":"https://api.github.com/repos/shamidanow/ASUPortalPHP","forks_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/forks","keys_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/teams","hooks_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/hooks","issue_events_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/issues/events{/number}","events_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/events","assignees_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/assignees{/user}","branches_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/branches{/branch}","tags_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/tags","blobs_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/statuses/{sha}","languages_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/languages","stargazers_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/stargazers","contributors_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/contributors","subscribers_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/subscribers","subscription_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/subscription","commits_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/contents/{+path}","compare_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/merges","archive_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/downloads","issues_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/issues{/number}","pulls_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/pulls{/number}","milestones_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/milestones{/number}","notifications_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/labels{/name}","releases_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/releases{/id}","created_at":"2014-10-26T09:43:08Z","updated_at":"2015-04-27T11:37:01Z","pushed_at":"2015-10-14T21:56:44Z","git_url":"git://github.com/shamidanow/ASUPortalPHP.git","ssh_url":"git@github.com:shamidanow/ASUPortalPHP.git","clone_url":"https://github.com/shamidanow/ASUPortalPHP.git","svn_url":"https://github.com/shamidanow/ASUPortalPHP","homepage":null,"size":117634,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"ASUPortal:master","ref":"master","sha":"2467d03e064aebe160851a0328429c7dd55a75a0","user":{"login":"ASUPortal","id":8296512,"avatar_url":"https://avatars.githubusercontent.com/u/8296512?v=3","gravatar_id":"","url":"https://api.github.com/users/ASUPortal","html_url":"https://github.com/ASUPortal","followers_url":"https://api.github.com/users/ASUPortal/followers","following_url":"https://api.github.com/users/ASUPortal/following{/other_user}","gists_url":"https://api.github.com/users/ASUPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/ASUPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASUPortal/subscriptions","organizations_url":"https://api.github.com/users/ASUPortal/orgs","repos_url":"https://api.github.com/users/ASUPortal/repos","events_url":"https://api.github.com/users/ASUPortal/events{/privacy}","received_events_url":"https://api.github.com/users/ASUPortal/received_events","type":"User","site_admin":false},"repo":{"id":8646816,"name":"ASUPortalPHP","full_name":"ASUPortal/ASUPortalPHP","owner":{"login":"ASUPortal","id":8296512,"avatar_url":"https://avatars.githubusercontent.com/u/8296512?v=3","gravatar_id":"","url":"https://api.github.com/users/ASUPortal","html_url":"https://github.com/ASUPortal","followers_url":"https://api.github.com/users/ASUPortal/followers","following_url":"https://api.github.com/users/ASUPortal/following{/other_user}","gists_url":"https://api.github.com/users/ASUPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/ASUPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASUPortal/subscriptions","organizations_url":"https://api.github.com/users/ASUPortal/orgs","repos_url":"https://api.github.com/users/ASUPortal/repos","events_url":"https://api.github.com/users/ASUPortal/events{/privacy}","received_events_url":"https://api.github.com/users/ASUPortal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ASUPortal/ASUPortalPHP","description":"","fork":false,"url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP","forks_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/forks","keys_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/teams","hooks_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/hooks","issue_events_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/events{/number}","events_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/events","assignees_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/assignees{/user}","branches_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/branches{/branch}","tags_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/tags","blobs_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/statuses/{sha}","languages_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/languages","stargazers_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/stargazers","contributors_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/contributors","subscribers_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/subscribers","subscription_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/subscription","commits_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/contents/{+path}","compare_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/merges","archive_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/downloads","issues_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues{/number}","pulls_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls{/number}","milestones_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/milestones{/number}","notifications_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/labels{/name}","releases_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/releases{/id}","created_at":"2013-03-08T08:26:07Z","updated_at":"2015-09-08T16:29:27Z","pushed_at":"2015-10-14T22:00:34Z","git_url":"git://github.com/ASUPortal/ASUPortalPHP.git","ssh_url":"git@github.com:ASUPortal/ASUPortalPHP.git","clone_url":"https://github.com/ASUPortal/ASUPortalPHP.git","svn_url":"https://github.com/ASUPortal/ASUPortalPHP","homepage":"","size":123544,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":9,"forks":8,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118"},"html":{"href":"https://github.com/ASUPortal/ASUPortalPHP/pull/118"},"issue":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/118"},"comments":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/statuses/1cf1f7ec866d0f0e27742098ac8cc4f749978e35"}}}}