{"action":"created","comment":{"url":"https://api.github.com/repos/coollog/sublite/pulls/comments/57821649","id":57821649,"diff_hunk":"@@ -0,0 +1,241 @@\n+<?php\n+  require_once($GLOBALS['dirpre'].'controllers/Controller.php');\n+\n+  interface StatsControllerAJAXInterface {\n+    public static function getRecruiterStats();\n+    public static function getStudentStats();\n+    public static function getSubletStats();\n+    public static function getSchoolStats();\n+    public static function getMessageStats();\n+    public static function getApplicationStats();\n+  }\n+\n+  class StatsControllerAJAX\n+    extends StatsController\n+    implements StatsControllerAJAXInterface\n+  {\n+\n+    public static function getRecruiterStats() {\n+\n+      global $MRecruiter, $MJob, $MCompany, $MApp;","path":"app/controllers/StatsControllerAJAX.php","position":20,"original_position":20,"commit_id":"82d1cfa01e6d99dec4b141fb03d6f9c6a93ed518","original_commit_id":"82d1cfa01e6d99dec4b141fb03d6f9c6a93ed518","user":{"login":"coollog","id":4852522,"avatar_url":"https://avatars.githubusercontent.com/u/4852522?v=3","gravatar_id":"","url":"https://api.github.com/users/coollog","html_url":"https://github.com/coollog","followers_url":"https://api.github.com/users/coollog/followers","following_url":"https://api.github.com/users/coollog/following{/other_user}","gists_url":"https://api.github.com/users/coollog/gists{/gist_id}","starred_url":"https://api.github.com/users/coollog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coollog/subscriptions","organizations_url":"https://api.github.com/users/coollog/orgs","repos_url":"https://api.github.com/users/coollog/repos","events_url":"https://api.github.com/users/coollog/events{/privacy}","received_events_url":"https://api.github.com/users/coollog/received_events","type":"User","site_admin":false},"body":"We should use the static class rather than the instances. I'll go ahead and change this.","created_at":"2016-03-30T00:12:46Z","updated_at":"2016-03-30T00:12:46Z","html_url":"https://github.com/coollog/sublite/pull/298#discussion_r57821649","pull_request_url":"https://api.github.com/repos/coollog/sublite/pulls/298","_links":{"self":{"href":"https://api.github.com/repos/coollog/sublite/pulls/comments/57821649"},"html":{"href":"https://github.com/coollog/sublite/pull/298#discussion_r57821649"},"pull_request":{"href":"https://api.github.com/repos/coollog/sublite/pulls/298"}}},"pull_request":{"url":"https://api.github.com/repos/coollog/sublite/pulls/298","id":64290243,"html_url":"https://github.com/coollog/sublite/pull/298","diff_url":"https://github.com/coollog/sublite/pull/298.diff","patch_url":"https://github.com/coollog/sublite/pull/298.patch","issue_url":"https://api.github.com/repos/coollog/sublite/issues/298","number":298,"state":"open","locked":false,"title":"Speedupstats","user":{"login":"cyrieu","id":4838303,"avatar_url":"https://avatars.githubusercontent.com/u/4838303?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrieu","html_url":"https://github.com/cyrieu","followers_url":"https://api.github.com/users/cyrieu/followers","following_url":"https://api.github.com/users/cyrieu/following{/other_user}","gists_url":"https://api.github.com/users/cyrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrieu/subscriptions","organizations_url":"https://api.github.com/users/cyrieu/orgs","repos_url":"https://api.github.com/users/cyrieu/repos","events_url":"https://api.github.com/users/cyrieu/events{/privacy}","received_events_url":"https://api.github.com/users/cyrieu/received_events","type":"User","site_admin":false},"body":"Made Stats page load with ajax, should reduce initial load up time, while also giving admins flexibility to choose which stats they want","created_at":"2016-03-28T05:18:31Z","updated_at":"2016-03-30T00:12:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fbc65436aeb4deee4dff8800cecedd02c4a7d2c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coollog/sublite/pulls/298/commits","review_comments_url":"https://api.github.com/repos/coollog/sublite/pulls/298/comments","review_comment_url":"https://api.github.com/repos/coollog/sublite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coollog/sublite/issues/298/comments","statuses_url":"https://api.github.com/repos/coollog/sublite/statuses/82d1cfa01e6d99dec4b141fb03d6f9c6a93ed518","head":{"label":"coollog:speedupstats","ref":"speedupstats","sha":"82d1cfa01e6d99dec4b141fb03d6f9c6a93ed518","user":{"login":"coollog","id":4852522,"avatar_url":"https://avatars.githubusercontent.com/u/4852522?v=3","gravatar_id":"","url":"https://api.github.com/users/coollog","html_url":"https://github.com/coollog","followers_url":"https://api.github.com/users/coollog/followers","following_url":"https://api.github.com/users/coollog/following{/other_user}","gists_url":"https://api.github.com/users/coollog/gists{/gist_id}","starred_url":"https://api.github.com/users/coollog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coollog/subscriptions","organizations_url":"https://api.github.com/users/coollog/orgs","repos_url":"https://api.github.com/users/coollog/repos","events_url":"https://api.github.com/users/coollog/events{/privacy}","received_events_url":"https://api.github.com/users/coollog/received_events","type":"User","site_admin":false},"repo":{"id":24682167,"name":"sublite","full_name":"coollog/sublite","owner":{"login":"coollog","id":4852522,"avatar_url":"https://avatars.githubusercontent.com/u/4852522?v=3","gravatar_id":"","url":"https://api.github.com/users/coollog","html_url":"https://github.com/coollog","followers_url":"https://api.github.com/users/coollog/followers","following_url":"https://api.github.com/users/coollog/following{/other_user}","gists_url":"https://api.github.com/users/coollog/gists{/gist_id}","starred_url":"https://api.github.com/users/coollog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coollog/subscriptions","organizations_url":"https://api.github.com/users/coollog/orgs","repos_url":"https://api.github.com/users/coollog/repos","events_url":"https://api.github.com/users/coollog/events{/privacy}","received_events_url":"https://api.github.com/users/coollog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coollog/sublite","description":"","fork":false,"url":"https://api.github.com/repos/coollog/sublite","forks_url":"https://api.github.com/repos/coollog/sublite/forks","keys_url":"https://api.github.com/repos/coollog/sublite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coollog/sublite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coollog/sublite/teams","hooks_url":"https://api.github.com/repos/coollog/sublite/hooks","issue_events_url":"https://api.github.com/repos/coollog/sublite/issues/events{/number}","events_url":"https://api.github.com/repos/coollog/sublite/events","assignees_url":"https://api.github.com/repos/coollog/sublite/assignees{/user}","branches_url":"https://api.github.com/repos/coollog/sublite/branches{/branch}","tags_url":"https://api.github.com/repos/coollog/sublite/tags","blobs_url":"https://api.github.com/repos/coollog/sublite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coollog/sublite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coollog/sublite/git/refs{/sha}","trees_url":"https://api.github.com/repos/coollog/sublite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coollog/sublite/statuses/{sha}","languages_url":"https://api.github.com/repos/coollog/sublite/languages","stargazers_url":"https://api.github.com/repos/coollog/sublite/stargazers","contributors_url":"https://api.github.com/repos/coollog/sublite/contributors","subscribers_url":"https://api.github.com/repos/coollog/sublite/subscribers","subscription_url":"https://api.github.com/repos/coollog/sublite/subscription","commits_url":"https://api.github.com/repos/coollog/sublite/commits{/sha}","git_commits_url":"https://api.github.com/repos/coollog/sublite/git/commits{/sha}","comments_url":"https://api.github.com/repos/coollog/sublite/comments{/number}","issue_comment_url":"https://api.github.com/repos/coollog/sublite/issues/comments{/number}","contents_url":"https://api.github.com/repos/coollog/sublite/contents/{+path}","compare_url":"https://api.github.com/repos/coollog/sublite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coollog/sublite/merges","archive_url":"https://api.github.com/repos/coollog/sublite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coollog/sublite/downloads","issues_url":"https://api.github.com/repos/coollog/sublite/issues{/number}","pulls_url":"https://api.github.com/repos/coollog/sublite/pulls{/number}","milestones_url":"https://api.github.com/repos/coollog/sublite/milestones{/number}","notifications_url":"https://api.github.com/repos/coollog/sublite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coollog/sublite/labels{/name}","releases_url":"https://api.github.com/repos/coollog/sublite/releases{/id}","deployments_url":"https://api.github.com/repos/coollog/sublite/deployments","created_at":"2014-10-01T14:45:04Z","updated_at":"2016-03-15T00:29:15Z","pushed_at":"2016-03-28T16:45:38Z","git_url":"git://github.com/coollog/sublite.git","ssh_url":"git@github.com:coollog/sublite.git","clone_url":"https://github.com/coollog/sublite.git","svn_url":"https://github.com/coollog/sublite","homepage":null,"size":61229,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":61,"forks":6,"open_issues":61,"watchers":5,"default_branch":"master"}},"base":{"label":"coollog:master","ref":"master","sha":"e87a9fcf8c5d2a2d79c33b320ca67e3f910f51a5","user":{"login":"coollog","id":4852522,"avatar_url":"https://avatars.githubusercontent.com/u/4852522?v=3","gravatar_id":"","url":"https://api.github.com/users/coollog","html_url":"https://github.com/coollog","followers_url":"https://api.github.com/users/coollog/followers","following_url":"https://api.github.com/users/coollog/following{/other_user}","gists_url":"https://api.github.com/users/coollog/gists{/gist_id}","starred_url":"https://api.github.com/users/coollog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coollog/subscriptions","organizations_url":"https://api.github.com/users/coollog/orgs","repos_url":"https://api.github.com/users/coollog/repos","events_url":"https://api.github.com/users/coollog/events{/privacy}","received_events_url":"https://api.github.com/users/coollog/received_events","type":"User","site_admin":false},"repo":{"id":24682167,"name":"sublite","full_name":"coollog/sublite","owner":{"login":"coollog","id":4852522,"avatar_url":"https://avatars.githubusercontent.com/u/4852522?v=3","gravatar_id":"","url":"https://api.github.com/users/coollog","html_url":"https://github.com/coollog","followers_url":"https://api.github.com/users/coollog/followers","following_url":"https://api.github.com/users/coollog/following{/other_user}","gists_url":"https://api.github.com/users/coollog/gists{/gist_id}","starred_url":"https://api.github.com/users/coollog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coollog/subscriptions","organizations_url":"https://api.github.com/users/coollog/orgs","repos_url":"https://api.github.com/users/coollog/repos","events_url":"https://api.github.com/users/coollog/events{/privacy}","received_events_url":"https://api.github.com/users/coollog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coollog/sublite","description":"","fork":false,"url":"https://api.github.com/repos/coollog/sublite","forks_url":"https://api.github.com/repos/coollog/sublite/forks","keys_url":"https://api.github.com/repos/coollog/sublite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coollog/sublite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coollog/sublite/teams","hooks_url":"https://api.github.com/repos/coollog/sublite/hooks","issue_events_url":"https://api.github.com/repos/coollog/sublite/issues/events{/number}","events_url":"https://api.github.com/repos/coollog/sublite/events","assignees_url":"https://api.github.com/repos/coollog/sublite/assignees{/user}","branches_url":"https://api.github.com/repos/coollog/sublite/branches{/branch}","tags_url":"https://api.github.com/repos/coollog/sublite/tags","blobs_url":"https://api.github.com/repos/coollog/sublite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coollog/sublite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coollog/sublite/git/refs{/sha}","trees_url":"https://api.github.com/repos/coollog/sublite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coollog/sublite/statuses/{sha}","languages_url":"https://api.github.com/repos/coollog/sublite/languages","stargazers_url":"https://api.github.com/repos/coollog/sublite/stargazers","contributors_url":"https://api.github.com/repos/coollog/sublite/contributors","subscribers_url":"https://api.github.com/repos/coollog/sublite/subscribers","subscription_url":"https://api.github.com/repos/coollog/sublite/subscription","commits_url":"https://api.github.com/repos/coollog/sublite/commits{/sha}","git_commits_url":"https://api.github.com/repos/coollog/sublite/git/commits{/sha}","comments_url":"https://api.github.com/repos/coollog/sublite/comments{/number}","issue_comment_url":"https://api.github.com/repos/coollog/sublite/issues/comments{/number}","contents_url":"https://api.github.com/repos/coollog/sublite/contents/{+path}","compare_url":"https://api.github.com/repos/coollog/sublite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coollog/sublite/merges","archive_url":"https://api.github.com/repos/coollog/sublite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coollog/sublite/downloads","issues_url":"https://api.github.com/repos/coollog/sublite/issues{/number}","pulls_url":"https://api.github.com/repos/coollog/sublite/pulls{/number}","milestones_url":"https://api.github.com/repos/coollog/sublite/milestones{/number}","notifications_url":"https://api.github.com/repos/coollog/sublite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coollog/sublite/labels{/name}","releases_url":"https://api.github.com/repos/coollog/sublite/releases{/id}","deployments_url":"https://api.github.com/repos/coollog/sublite/deployments","created_at":"2014-10-01T14:45:04Z","updated_at":"2016-03-15T00:29:15Z","pushed_at":"2016-03-28T16:45:38Z","git_url":"git://github.com/coollog/sublite.git","ssh_url":"git@github.com:coollog/sublite.git","clone_url":"https://github.com/coollog/sublite.git","svn_url":"https://github.com/coollog/sublite","homepage":null,"size":61229,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":61,"forks":6,"open_issues":61,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coollog/sublite/pulls/298"},"html":{"href":"https://github.com/coollog/sublite/pull/298"},"issue":{"href":"https://api.github.com/repos/coollog/sublite/issues/298"},"comments":{"href":"https://api.github.com/repos/coollog/sublite/issues/298/comments"},"review_comments":{"href":"https://api.github.com/repos/coollog/sublite/pulls/298/comments"},"review_comment":{"href":"https://api.github.com/repos/coollog/sublite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coollog/sublite/pulls/298/commits"},"statuses":{"href":"https://api.github.com/repos/coollog/sublite/statuses/82d1cfa01e6d99dec4b141fb03d6f9c6a93ed518"}}}}