{"action":"created","comment":{"url":"https://api.github.com/repos/webcursosuai/sync/pulls/comments/94268481","pull_request_review_id":14799437,"id":94268481,"diff_hunk":"@@ -17,43 +17,239 @@\n \r\n /**\r\n  *\r\n-*\r\n-* @package    local\r\n-* @subpackage sync\r\n-* @copyright  2016 Joaquin Rivano (jrivano@alumnos.uai.cl) \t\t\t\t\t\r\n-* @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\r\n-*/\r\n+ *\r\n+ * @package    local\r\n+ * @subpackage sync\r\n+ * @copyright  2016 Joaquin Rivano (jrivano@alumnos.uai.cl)\r\n+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\r\n+ */\r\n \r\n //Configuraciones globales\r\n-require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');\r\n-require_once ($CFG->dirroot . \"/repository/lib.php\");\r\n-require_once($CFG->dirroot . '/local/Sync/forms/Sync_form.php');\r\n-global $CFG, $DB, $OUTPUT,$COURSE, $USER, $PAGE;           \r\n+require_once(dirname(dirname(dirname(__FILE__))) . \"/config.php\");\r\n+require_once ($CFG->dirroot . \"/local/sync/locallib.php\");\r\n+require_once($CFG->libdir . '/tablelib.php');\r\n+require_once($CFG->dirroot . \"/local/sync/forms/edit_form.php\");\r\n+global $CFG, $DB, $OUTPUT,$COURSE, $USER, $PAGE;\r\n+\r\n+$page = optional_param('page', 0, PARAM_INT);\r","path":"record.php","position":28,"original_position":28,"commit_id":"9f9e7a2f6873d9c61fcde407a82e254e426ba836","original_commit_id":"9f9e7a2f6873d9c61fcde407a82e254e426ba836","user":{"login":"hansnok","id":10520992,"avatar_url":"https://avatars.githubusercontent.com/u/10520992?v=3","gravatar_id":"","url":"https://api.github.com/users/hansnok","html_url":"https://github.com/hansnok","followers_url":"https://api.github.com/users/hansnok/followers","following_url":"https://api.github.com/users/hansnok/following{/other_user}","gists_url":"https://api.github.com/users/hansnok/gists{/gist_id}","starred_url":"https://api.github.com/users/hansnok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansnok/subscriptions","organizations_url":"https://api.github.com/users/hansnok/orgs","repos_url":"https://api.github.com/users/hansnok/repos","events_url":"https://api.github.com/users/hansnok/events{/privacy}","received_events_url":"https://api.github.com/users/hansnok/received_events","type":"User","site_admin":false},"body":"dejar todos los optional_param y required_param juntos","created_at":"2016-12-31T03:41:18Z","updated_at":"2016-12-31T03:42:34Z","html_url":"https://github.com/webcursosuai/sync/pull/13#discussion_r94268481","pull_request_url":"https://api.github.com/repos/webcursosuai/sync/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/webcursosuai/sync/pulls/comments/94268481"},"html":{"href":"https://github.com/webcursosuai/sync/pull/13#discussion_r94268481"},"pull_request":{"href":"https://api.github.com/repos/webcursosuai/sync/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/webcursosuai/sync/pulls/13","id":99794694,"html_url":"https://github.com/webcursosuai/sync/pull/13","diff_url":"https://github.com/webcursosuai/sync/pull/13.diff","patch_url":"https://github.com/webcursosuai/sync/pull/13.patch","issue_url":"https://api.github.com/repos/webcursosuai/sync/issues/13","number":13,"state":"open","locked":false,"title":"Sync Table Update","user":{"login":"Joako55","id":12504284,"avatar_url":"https://avatars.githubusercontent.com/u/12504284?v=3","gravatar_id":"","url":"https://api.github.com/users/Joako55","html_url":"https://github.com/Joako55","followers_url":"https://api.github.com/users/Joako55/followers","following_url":"https://api.github.com/users/Joako55/following{/other_user}","gists_url":"https://api.github.com/users/Joako55/gists{/gist_id}","starred_url":"https://api.github.com/users/Joako55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joako55/subscriptions","organizations_url":"https://api.github.com/users/Joako55/orgs","repos_url":"https://api.github.com/users/Joako55/repos","events_url":"https://api.github.com/users/Joako55/events{/privacy}","received_events_url":"https://api.github.com/users/Joako55/received_events","type":"User","site_admin":false},"body":"flexible table,sorting, delete and edit action","created_at":"2016-12-31T02:01:37Z","updated_at":"2016-12-31T03:42:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"079b025e2ebae920440341a0bc9e63dca1a75149","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/webcursosuai/sync/pulls/13/commits","review_comments_url":"https://api.github.com/repos/webcursosuai/sync/pulls/13/comments","review_comment_url":"https://api.github.com/repos/webcursosuai/sync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webcursosuai/sync/issues/13/comments","statuses_url":"https://api.github.com/repos/webcursosuai/sync/statuses/9f9e7a2f6873d9c61fcde407a82e254e426ba836","head":{"label":"Joako55:master","ref":"master","sha":"9f9e7a2f6873d9c61fcde407a82e254e426ba836","user":{"login":"Joako55","id":12504284,"avatar_url":"https://avatars.githubusercontent.com/u/12504284?v=3","gravatar_id":"","url":"https://api.github.com/users/Joako55","html_url":"https://github.com/Joako55","followers_url":"https://api.github.com/users/Joako55/followers","following_url":"https://api.github.com/users/Joako55/following{/other_user}","gists_url":"https://api.github.com/users/Joako55/gists{/gist_id}","starred_url":"https://api.github.com/users/Joako55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joako55/subscriptions","organizations_url":"https://api.github.com/users/Joako55/orgs","repos_url":"https://api.github.com/users/Joako55/repos","events_url":"https://api.github.com/users/Joako55/events{/privacy}","received_events_url":"https://api.github.com/users/Joako55/received_events","type":"User","site_admin":false},"repo":{"id":76982429,"name":"sync","full_name":"Joako55/sync","owner":{"login":"Joako55","id":12504284,"avatar_url":"https://avatars.githubusercontent.com/u/12504284?v=3","gravatar_id":"","url":"https://api.github.com/users/Joako55","html_url":"https://github.com/Joako55","followers_url":"https://api.github.com/users/Joako55/followers","following_url":"https://api.github.com/users/Joako55/following{/other_user}","gists_url":"https://api.github.com/users/Joako55/gists{/gist_id}","starred_url":"https://api.github.com/users/Joako55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joako55/subscriptions","organizations_url":"https://api.github.com/users/Joako55/orgs","repos_url":"https://api.github.com/users/Joako55/repos","events_url":"https://api.github.com/users/Joako55/events{/privacy}","received_events_url":"https://api.github.com/users/Joako55/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Joako55/sync","description":null,"fork":true,"url":"https://api.github.com/repos/Joako55/sync","forks_url":"https://api.github.com/repos/Joako55/sync/forks","keys_url":"https://api.github.com/repos/Joako55/sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Joako55/sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Joako55/sync/teams","hooks_url":"https://api.github.com/repos/Joako55/sync/hooks","issue_events_url":"https://api.github.com/repos/Joako55/sync/issues/events{/number}","events_url":"https://api.github.com/repos/Joako55/sync/events","assignees_url":"https://api.github.com/repos/Joako55/sync/assignees{/user}","branches_url":"https://api.github.com/repos/Joako55/sync/branches{/branch}","tags_url":"https://api.github.com/repos/Joako55/sync/tags","blobs_url":"https://api.github.com/repos/Joako55/sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Joako55/sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Joako55/sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/Joako55/sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Joako55/sync/statuses/{sha}","languages_url":"https://api.github.com/repos/Joako55/sync/languages","stargazers_url":"https://api.github.com/repos/Joako55/sync/stargazers","contributors_url":"https://api.github.com/repos/Joako55/sync/contributors","subscribers_url":"https://api.github.com/repos/Joako55/sync/subscribers","subscription_url":"https://api.github.com/repos/Joako55/sync/subscription","commits_url":"https://api.github.com/repos/Joako55/sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/Joako55/sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/Joako55/sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/Joako55/sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/Joako55/sync/contents/{+path}","compare_url":"https://api.github.com/repos/Joako55/sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Joako55/sync/merges","archive_url":"https://api.github.com/repos/Joako55/sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Joako55/sync/downloads","issues_url":"https://api.github.com/repos/Joako55/sync/issues{/number}","pulls_url":"https://api.github.com/repos/Joako55/sync/pulls{/number}","milestones_url":"https://api.github.com/repos/Joako55/sync/milestones{/number}","notifications_url":"https://api.github.com/repos/Joako55/sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Joako55/sync/labels{/name}","releases_url":"https://api.github.com/repos/Joako55/sync/releases{/id}","deployments_url":"https://api.github.com/repos/Joako55/sync/deployments","created_at":"2016-12-20T18:41:24Z","updated_at":"2016-12-20T18:41:25Z","pushed_at":"2016-12-31T01:59:40Z","git_url":"git://github.com/Joako55/sync.git","ssh_url":"git@github.com:Joako55/sync.git","clone_url":"https://github.com/Joako55/sync.git","svn_url":"https://github.com/Joako55/sync","homepage":null,"size":79,"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":"webcursosuai:master","ref":"master","sha":"758e1738a782fbebea1cdb50a32d51409598fee3","user":{"login":"webcursosuai","id":16386283,"avatar_url":"https://avatars.githubusercontent.com/u/16386283?v=3","gravatar_id":"","url":"https://api.github.com/users/webcursosuai","html_url":"https://github.com/webcursosuai","followers_url":"https://api.github.com/users/webcursosuai/followers","following_url":"https://api.github.com/users/webcursosuai/following{/other_user}","gists_url":"https://api.github.com/users/webcursosuai/gists{/gist_id}","starred_url":"https://api.github.com/users/webcursosuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcursosuai/subscriptions","organizations_url":"https://api.github.com/users/webcursosuai/orgs","repos_url":"https://api.github.com/users/webcursosuai/repos","events_url":"https://api.github.com/users/webcursosuai/events{/privacy}","received_events_url":"https://api.github.com/users/webcursosuai/received_events","type":"Organization","site_admin":false},"repo":{"id":73572362,"name":"sync","full_name":"webcursosuai/sync","owner":{"login":"webcursosuai","id":16386283,"avatar_url":"https://avatars.githubusercontent.com/u/16386283?v=3","gravatar_id":"","url":"https://api.github.com/users/webcursosuai","html_url":"https://github.com/webcursosuai","followers_url":"https://api.github.com/users/webcursosuai/followers","following_url":"https://api.github.com/users/webcursosuai/following{/other_user}","gists_url":"https://api.github.com/users/webcursosuai/gists{/gist_id}","starred_url":"https://api.github.com/users/webcursosuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcursosuai/subscriptions","organizations_url":"https://api.github.com/users/webcursosuai/orgs","repos_url":"https://api.github.com/users/webcursosuai/repos","events_url":"https://api.github.com/users/webcursosuai/events{/privacy}","received_events_url":"https://api.github.com/users/webcursosuai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webcursosuai/sync","description":null,"fork":false,"url":"https://api.github.com/repos/webcursosuai/sync","forks_url":"https://api.github.com/repos/webcursosuai/sync/forks","keys_url":"https://api.github.com/repos/webcursosuai/sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webcursosuai/sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webcursosuai/sync/teams","hooks_url":"https://api.github.com/repos/webcursosuai/sync/hooks","issue_events_url":"https://api.github.com/repos/webcursosuai/sync/issues/events{/number}","events_url":"https://api.github.com/repos/webcursosuai/sync/events","assignees_url":"https://api.github.com/repos/webcursosuai/sync/assignees{/user}","branches_url":"https://api.github.com/repos/webcursosuai/sync/branches{/branch}","tags_url":"https://api.github.com/repos/webcursosuai/sync/tags","blobs_url":"https://api.github.com/repos/webcursosuai/sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webcursosuai/sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webcursosuai/sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/webcursosuai/sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webcursosuai/sync/statuses/{sha}","languages_url":"https://api.github.com/repos/webcursosuai/sync/languages","stargazers_url":"https://api.github.com/repos/webcursosuai/sync/stargazers","contributors_url":"https://api.github.com/repos/webcursosuai/sync/contributors","subscribers_url":"https://api.github.com/repos/webcursosuai/sync/subscribers","subscription_url":"https://api.github.com/repos/webcursosuai/sync/subscription","commits_url":"https://api.github.com/repos/webcursosuai/sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/webcursosuai/sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/webcursosuai/sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/webcursosuai/sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/webcursosuai/sync/contents/{+path}","compare_url":"https://api.github.com/repos/webcursosuai/sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webcursosuai/sync/merges","archive_url":"https://api.github.com/repos/webcursosuai/sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webcursosuai/sync/downloads","issues_url":"https://api.github.com/repos/webcursosuai/sync/issues{/number}","pulls_url":"https://api.github.com/repos/webcursosuai/sync/pulls{/number}","milestones_url":"https://api.github.com/repos/webcursosuai/sync/milestones{/number}","notifications_url":"https://api.github.com/repos/webcursosuai/sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webcursosuai/sync/labels{/name}","releases_url":"https://api.github.com/repos/webcursosuai/sync/releases{/id}","deployments_url":"https://api.github.com/repos/webcursosuai/sync/deployments","created_at":"2016-11-12T19:02:46Z","updated_at":"2016-12-28T14:26:34Z","pushed_at":"2016-12-31T02:01:38Z","git_url":"git://github.com/webcursosuai/sync.git","ssh_url":"git@github.com:webcursosuai/sync.git","clone_url":"https://github.com/webcursosuai/sync.git","svn_url":"https://github.com/webcursosuai/sync","homepage":null,"size":53,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webcursosuai/sync/pulls/13"},"html":{"href":"https://github.com/webcursosuai/sync/pull/13"},"issue":{"href":"https://api.github.com/repos/webcursosuai/sync/issues/13"},"comments":{"href":"https://api.github.com/repos/webcursosuai/sync/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/webcursosuai/sync/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/webcursosuai/sync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webcursosuai/sync/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/webcursosuai/sync/statuses/9f9e7a2f6873d9c61fcde407a82e254e426ba836"}}}}
{"actor":{"display_login":"hansnok"}}