diff --git a/.gitignore b/.gitignore index a8d6c8e247a..a7a381348b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,9 @@ -composer.lock -composer.phar -vendor/* +# a Courtesy of Respect/Foundation +.foundation +*.tgz +*.phar +*.lock +*tmp +scratch/* +test/reports +vendor diff --git a/README.markdown b/README.markdown index 9adf5050173..212a8fdf385 100755 --- a/README.markdown +++ b/README.markdown @@ -50,7 +50,7 @@ From this object, you can access to all GitHub apis, listed below. ## Navigation -[Users][] | [Issues][] | [Commits][] | [Objects][] | [Repos][] | [Pull Requests][] | [Request any Route][] | [Authentication & Security][] | [Customize php-github-api][] | [Run Test Suite][] +[Users][] | [Issues][] | [Commits][] | [Objects][] | [Repos][] | [Pull Requests][] | [Gists][] | [Request any Route][] | [Authentication & Security][] | [Customize php-github-api][] | [Run Test Suite][] ## Users @@ -556,8 +556,6 @@ To include non GitHub users, add a third parameter to true: ``` - - ## Pull Requests Go back to the Navigation @@ -629,6 +627,97 @@ Requires authentication. The issue ID is provided instead of title and body. This returns the details of the pull request. + +## Gists +Go back to the Navigation + +Creating, editing, deleting and listing gists. Wraps [GitHub Gists API](http://developer.github.com/v3/gists/). + +#### List gists of a specific user + +```php + $gists = $github->getGistApi()->getListByUser( 'ornicar' ); +``` + +#### List all public gists. + +```php + $gists = $github->getGistApi()->getPublicList(); +``` + +#### List the authenticated user’s starred gists. + +```php + $gists = $github->getGistApi()->getStarredList(); +``` + +Requires authentication. + +#### List the authenticated user’s gists or if called anonymously, this will return all public gists. + +```php + $gists = $github->getGistApi()->getList(); +``` + +#### Get a single gist + +```php + $gist = $github->getGistApi()->getGist( 1 ); +``` + +#### Create a gist + +```php + $files = array( 'filename.txt' => array( 'content' => 'txt file content' )); + $gist = $github->getGistApi()->create( $files, true, 'This is an optional description' ); +``` + +Creates and returns a public gist. + +#### Update a gist + +You can update ``description``. + +```php + $files = array(); + $gist = $github->getGistApi()->update( 1234, $files, 'This is a new description' ); +``` + +You can update ``content`` of a previous file's version. + +```php + $files = array( 'filename.txt' => array( 'content' => 'updated txt file content' )); + $gist = $github->getGistApi()->update( 1234, $files ); +``` + +You can update the ``filename`` of a previous file's version. + +```php + $files = array( 'filename.txt' => array( 'filename' => 'new-filename.txt' )); + $gist = $github->getGistApi()->update( 1234, $files ); +``` + +You can add a new file to the gist. + +```php + $files = array( 'new-filename.php' => array( 'content' => 'a new file content' )); + $gist = $github->getGistApi()->update( 1234, $files ); +``` + +You can remove a file from the gist. + +```php + $files = array( 'filename.txt' => null ); + $gist = $github->getGistApi()->update( 1234, $files ); +``` + +#### Delete a gist + +```php + $gist = $github->getGistApi()->remove( 1234 ); +``` + + ## Request any Route Go back to the Navigation @@ -770,6 +859,7 @@ Thanks to GitHub for the high quality API and documentation. [Commits]: #commits [Objects]: #objects [Repos]: #repos +[Gists]: #gists [Pull Requests]: #pull_requests [Request any Route]: #request_any_route [Authentication & Security]: #authentication_and_security diff --git a/doc/classes/Github.Api.Api.html b/doc/classes/Github.Api.Api.html new file mode 100644 index 00000000000..ba55cfc6bbe --- /dev/null +++ b/doc/classes/Github.Api.Api.html @@ -0,0 +1,236 @@ + +
+ + + +Abstract class for Api classes
+author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
---|---|
author | +Joseph Bielawski | +
__construct(Github\Client $client)+ +
\Client
+delete($path, array $parameters, $requestOptions)+ +
+
+
+get($path, array $parameters, $requestOptions)+ +
+
+
+patch($path, array $parameters, $requestOptions)+ +
+
+
+post($path, array $parameters, $requestOptions)+ +
+
+
+put($path, array $parameters, $requestOptions)+ +
+
+
+$client : \Client+ +
Api interface
+author | +Joseph Bielawski | +
---|
Getting information on specific commits, +the diffs they introduce, the files they've changed.
+link | +http://developer.github.com/v3/repos/commits/ | +
---|---|
author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
author | +Joseph Bielawski | +
getBranchCommits(string $username, string $repo, string $branch) : array+ +
link | +http://developer.github.com/v3/repos/commits/ | +
---|
string
the username
string
the repo
string
the branch
array
list of users foundgetCommit(string $username, string $repo, string $sha) : array+ +
link | +http://developer.github.com/v3/repos/commits/#get-a-single-commit | +
---|
string
the username
string
the repo
string
the commit sha
array
data from commitgetFileCommits(string $username, string $repo, string $branch, string $path) : array+ +
link | +http://developer.github.com/v3/repos/commits/ | +
---|
string
the username
string
the repo
string
the branch
string
the path
array
list of users foundgetBranchSha(string $username, string $repoName, string $branchName) : null | string+ +
link | +http://developer.github.com/v3/git/refs/#get-a-reference | +
---|
string
+string
+string
+null
string
+create()
getGist()
getList()
getListByUser()
getPublicList()
getStarredList()
remove()
update()
Creating, editing, deleting and listing gists
+link | +http://developer.github.com/v3/gists/ | +
---|---|
author | +Edoardo Rivello <edoardo.rivello at gmail dot com> | +
license | +MIT License | +
create(array $files, bool $public, string $description) : array+ +
link | +http://developer.github.com/v3/gists/ | +
---|
array
files that make up this gist
bool
1 for public, 0 for private
string
optional gist description
array
returns gist datagetGist(string $id) : array+ +
link | +http://developer.github.com/v3/gists/ | +
---|
string
the gist id
array
data from gistgetList() : array+ +
getListByUser(string $username) : array+ +
link | +http://developer.github.com/v3/gists/ | +
---|
string
the username
array
list of gist foundgetPublicList() : array+ +
getStarredList() : array+ +
remove(int $id) : \Response+ +
link | +http://developer.github.com/v3/gists/ | +
---|
int
the gist id
\Response
update(string $id, array $files, string $description) : array+ +
link | +http://developer.github.com/v3/gists/ | +
---|
string
the gist id
array
files that make up this gist
string
optional gist description
array
informations about the gistaddComment()
addLabel()
close()
getComment()
getComments()
getLabel()
getLabels()
getList()
open()
reOpen()
removeLabel()
search()
searchLabel()
show()
update()
Listing issues, searching, editing and closing your projects issues.
+link | +http://develop.github.com/p/issues.html | +
---|---|
author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
license | +MIT License | +
addComment(string $username, string $repo, string $number, string $body) : array+ +
link | +http://developer.github.com/v3/issues/comments/ | +
---|
string
the username
string
the repo
string
the issue number
string
the comment body
array
the created commentaddLabel(string $username, string $repo, string $labelName, string $labelColor) : array+ +
link | +http://developer.github.com/v3/issues/labels/ | +
---|
string
the username
string
the repo
string
the label name
string
the label color
array
list of issue labelsclose(string $username, string $repo, string $number) : array+ +
link | +http://developer.github.com/v3/issues/ | +
---|
string
the username
string
the repo
string
the issue number
array
information about the issuegetComment(string $username, string $repo, string $id) : array+ +
link | +http://developer.github.com/v3/issues/comments/ | +
---|
string
the username
string
the repo
string
the comment id
array
list of issue commentsgetComments(string $username, string $repo, string $number) : array+ +
link | +http://developer.github.com/v3/issues/comments/ | +
---|
string
the username
string
the repo
string
the issue number
array
list of issue commentsgetLabel(string $username, string $repo, string $name) : array+ +
link | +http://developer.github.com/v3/issues/labels/ | +
---|
string
the username
string
the repo
string
the label name
array
list of project labelsgetLabels(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/issues/labels/ | +
---|
string
the username
string
the repo
array
list of project labelsgetList(string $username, string $repo, string $state, array $parameters) : array+ +
link | +http://developer.github.com/v3/issues/ | +
---|
string
the username
string
the repo
string
the issue state, can be open or closed
array
the additional parameters like milestone, assignee, lables, sort, direction
array
list of issues foundopen(string $username, string $repo, string $title, string $body) : array+ +
The issue is assigned to the authenticated user. Requires authentication.
+link | +http://developer.github.com/v3/issues/ | +
---|
string
the username
string
the repo
string
the new issue title
string
the new issue body
array
information about the issuereOpen(string $username, string $repo, string $number) : array+ +
link | +http://developer.github.com/v3/issues/ | +
---|
string
the username
string
the repo
string
the issue number
array
informations about the issueremoveLabel(string $username, string $repo, string $labelName) : array+ +
link | +http://developer.github.com/v3/issues/labels/ | +
---|
string
the username
string
the repo
string
the label name
array
list of issue labelssearch(string $username, string $repo, string $state, string $keyword) : array+ +
link | +http://developer.github.com/v3/search/#search-issues | +
---|
string
the username
string
the repo
string
the issue state, can be open or closed
string
the keyword to filter issues by
array
list of issues foundsearchLabel(string $username, string $repo, string $label) : array+ +
string
the username
string
the repo
string
the label to filter issues by
array
list of issues foundshow(string $username, string $repo, string $number) : array+ +
link | +http://developer.github.com/v3/issues/ | +
---|
string
the username
string
the repo
string
the issue number
array
information about the issueupdate(string $username, string $repo, string $number, array $data) : array+ +
link | +http://developer.github.com/v3/issues/ | +
---|
string
the username
string
the repo
string
the issue number
array
key=>value user attributes to update. key can be title or body
+array
information about the issueMarkdown Rendering API
+link | +http://developer.github.com/v3/markdown/ | +
---|---|
author | +Joseph Bielawski | +
render(string $text, string $mode, string $context) : string+ +
string
+string
+string
+string
renderRaw(string $file) : string+ +
string
+string
getRawData()
listBlobs()
showBlob()
showTree()
Getting full versions of specific files and trees in your Git repositories.
+link | +http://develop.github.com/p/object.html | +
---|---|
author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
license | +MIT License | +
getRawData(string $username, string $repo, string $objectSHA) : string+ +
string
the username
string
the repo
string
the object sha can be either a blob SHA1, a tree SHA1 or a commit SHA1
string
raw text content of the blob, tree or commit objectlistBlobs(string $username, string $repo, string $treeSHA) : array+ +
string
the username
string
the repo
string
the tree sha
array
data blobs of treeshowBlob(string $username, string $repo, string $treeSHA, string $path) : array+ +
string
the username
string
the repo
string
the tree sha
string
the path
array
data blob of tree and pathshowTree(string $username, string $repo, string $treeSHA, $recursive) : array+ +
string
the username
string
the repo
string
the tree sha
+array
root tree of the projectaddTeam()
getAllRepos()
getPublicMember()
getPublicMembers()
getPublicRepos()
getTeam()
getTeams()
show()
ADMIN
PULL
PUSH
Searching organizations, getting organization information +and managing authenticated organization account information.
+link | +http://develop.github.com/p/orgs.html | +
---|---|
author | +Antoine Berranger <antoine at ihqs dot net> | +
license | +MIT License | +
addTeam(string $organization, string $team, string $permission, array $repositories) : array+ +
link | +http://developer.github.com/v3/orgs/teams/#create-team | +
---|
string
the organization name
string
name of the new team
string
its permission [PULL|PUSH|ADMIN]
+array
(optional) its repositories names
+\InvalidArgumentException |
++ |
---|
array
the teamsgetAllRepos(string $name, string $type) : array+ +
link | +http://developer.github.com/v3/repos/#list-organization-repositories | +
---|
string
the user name
string
the type of repositories
array
the repositoriesgetPublicMember(string $name, string $user) : array+ +
link | +http://developer.github.com/v3/orgs/members/#get-member | +
---|
string
the organization name
string
the user
array
the membersgetPublicMembers(string $name) : array+ +
link | +http://developer.github.com/v3/orgs/members/#list-members | +
---|
string
the organization name
array
the membersgetPublicRepos(string $name) : array+ +
link | +http://developer.github.com/v3/repos/#list-organization-repositories | +
---|
string
the organization name
array
the repositoriesgetTeam(string $name, string $id) : array+ +
link | +http://developer.github.com/v3/orgs/teams/#get-team | +
---|
string
the organization name
string
id of team
array
the teamgetTeams(string $name) : array+ +
link | +http://developer.github.com/v3/orgs/teams/#list-teams | +
---|
string
the organization name
array
the teamsshow(string $name) : array+ +
string
the organization to show
array
informations about the organizationADMIN+ +
PULL+ +
PUSH+ +
API for accessing Pull Requests from your Git/Github repositories.
+link | +http://develop.github.com/p/pulls.html | +
---|---|
author | +Nicolas Pastorino <nicolas.pastorino at gmail dot com> | +
license | +MIT License | +
create(string $username, string $repo, string $base, string $head, string $title, string $body, string $issueNumber) : array+ +
link | +http://developer.github.com/v3/pulls/ | +
---|
string
the username
string
the repo
string
A String of the branch or commit SHA that you want your changes to be pulled to.
string
A String of the branch or commit SHA of your changes. Typically this will be a branch. If the branch is in a fork of the original repository, specify the username first: "my-user:some-branch".
+string
The String title of the Pull Request. Used in pair with $body.
+string
The String body of the Pull Request. Used in pair with $title.
+string
The issue number. Used when title and body is not set.
array
array of pull requests for the projectlistPullRequests(string $username, string $repo, string $state) : array+ +
link | +http://developer.github.com/v3/pulls/ | +
---|
string
the username
string
the repo
string
the state of the fetched pull requests. The API seems to automatically default to 'open'
+array
array of pull requests for the projectshow(string $username, string $repo, string $id) : array+ +
link | +http://developer.github.com/v3/pulls/ | +
---|
string
the username
string
the repo
string
the ID of the pull request for which details are retrieved
array
array of pull requests for the projectaddDeployKey()
addRepoCollaborator()
addRepoHook()
create()
deleteRepoDownload()
deleteRepoHook()
fork()
getDeployKeys()
getPushableRepos()
getRepoBranches()
getRepoCollaborator()
getRepoCollaborators()
getRepoContents()
getRepoContributors()
getRepoDownloads()
getRepoHook()
getRepoHooks()
getRepoLanguages()
getRepoNetwork()
getRepoTags()
getRepoTeams()
getRepoWatchers()
getUserRepos()
removeDeployKey()
removeRepoCollaborator()
search()
setPrivate()
setPublic()
setRepoInfo()
show()
testRepoHook()
unwatch()
updateRepoHook()
watch()
Searching repositories, getting repository information +and managing repository information for authenticated users.
+link | +http://develop.github.com/p/repos.html | +
---|---|
author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
license | +MIT License | +
addDeployKey(string $username, string $repo, string $title, string $key) : array+ +
link | +http://developer.github.com/v3/repos/keys/ | +
---|
string
the user who owns the repo
string
the name of the repo
string
the title of the key
string
the public key data
array
the list of deploy keysaddRepoCollaborator(string $username, string $repo, string $user) : array+ +
link | +http://developer.github.com/v3/repos/collaborators/ | +
---|
string
the user who owns the repo
string
the name of the repo
string
the user who should be added as a collaborator
array
list of the repo collaboratorsaddRepoHook(string $username, string $repo, string $name, array $config, array $events, boolean $active) : array+ +
link | +http://developer.github.com/v3/repos/hooks/#edit-a-hook | +
---|
string
the username
string
the repo
string
the name of the service that is being called. @see https://api.github.com/hooks for the possible names.
+array
an array containing key/value pairs to provide settings for this hook
+array
Determines what events the hook is triggered for. Default: ["push"].
+boolean
Determines whether the hook is actually triggered on pushes.
array
information about the issuecreate(string $name, string $description, string $homepage, bool $public) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
name of the repository
string
repo description
string
homepage url
bool
1 for public, 0 for private
array
returns repo datadeleteRepoDownload(string $username, string $repo, integer $id) : array+ +
link | +http://developer.github.com/v3/repos/downloads/#delete-a-download | +
---|
string
the user who owns the repo
string
the name of the repo
integer
the id of the download file
array
deleteRepoHook(string $username, string $repo, integer $id) : array+ +
link | +http://developer.github.com/v3/repos/hooks/#delete-a-hook | +
---|
string
the user who owns the repo
string
the name of the repo
integer
the id of the hook
array
fork(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/forks/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
informations about the newly forked repogetDeployKeys(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/keys/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
the list of deploy keysgetPushableRepos() : array+ +
array
list of repositoriesgetRepoBranches(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the username
string
the name of the repo
array
list of the repo branchesgetRepoCollaborator(string $username, string $repo, string $user) : array+ +
link | +http://developer.github.com/v3/repos/collaborators/ | +
---|
string
the user who owns the repo
string
the name of the repo
string
the user which we seek
array
list of the repo collaboratorsgetRepoCollaborators(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/collaborators/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
list of the repo collaboratorsgetRepoContents(string $username, string $repo, string $path) : array+ +
link | +http://developer.github.com/v3/repos/contents/ | +
---|
string
the user who owns the repo
string
the name of the repo
string
path to file or directory
array
information for file | information for each item in directorygetRepoContributors(string $username, string $repo, boolean $includingAnonymous) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
boolean
by default, the list only shows GitHub users. You can include non-users too by setting this to true
+array
list of the repo contributorsgetRepoDownloads(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository | +
---|
string
the user who owns the repo
string
the name of the repo
array
getRepoHook(string $username, string $repo, integer $id) : array+ +
link | +http://developer.github.com/v3/repos/hooks/#get-single-hook | +
---|
string
the user who owns the repo
string
the name of the repo
integer
the id of the hook
array
getRepoHooks(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/hooks/#list | +
---|
string
the user who owns the repo
string
the name of the repo
array
getRepoLanguages(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
list of the languagesgetRepoNetwork(string $username, string $repo) : array+ +
string
the user who owns the repo
string
the name of the repo
array
list of the repo forksgetRepoTags(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
list of the repo tagsgetRepoTeams(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
list of the languagesgetRepoWatchers(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/watching/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
list of the repo watchersgetUserRepos(string $username) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the username
array
list of the user reposremoveDeployKey(string $username, string $repo, string $id) : array+ +
link | +http://developer.github.com/v3/repos/keys/ | +
---|
string
the user who owns the repo
string
the name of the repo
string
the the id of the key to remove
array
the list of deploy keysremoveRepoCollaborator(string $repo, string $username, string $user) : array+ +
link | +http://developer.github.com/v3/repos/collaborators/ | +
---|
string
the name of the repo
string
the user who owns the repo
string
the user who should be removed as a collaborator
array
list of the repo collaboratorssearch(string $keyword, string $language, integer $startPage) : array+ +
link | +http://developer.github.com/v3/search/#search-repositories | +
---|
string
the search query
string
takes the same values as the language drop down on http://github.com/search
+integer
the page number
array
list of founded repositoriessetPrivate(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
informations about the reposetPublic(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
informations about the reposetRepoInfo(string $username, string $repo, array $values) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
the key => value pairs to post
+array
informations about the reposhow(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
informations about the repotestRepoHook(string $username, string $repo, integer $id) : array+ +
link | +http://developer.github.com/v3/repos/hooks/#test-a-hook | +
---|
string
the user who owns the repo
string
the name of the repo
integer
the id of the hook
array
unwatch(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/watching/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
informations about the repoupdateRepoHook(string $username, string $repo, string $id, array $data) : array+ +
link | +http://developer.github.com/v3/repos/hooks/#edit-a-hook | +
---|
string
the username
string
the repo
string
the hook id
array
key=>value user attributes to update.
+array
information about the issuewatch(string $username, string $repo) : array+ +
link | +http://developer.github.com/v3/repos/watching/ | +
---|
string
the user who owns the repo
string
the name of the repo
array
informations about the repoaddEmail()
addKey()
follow()
getEmails()
getFollowers()
getFollowing()
getKeys()
getWatchedRepos()
removeEmail()
removeKey()
search()
show()
unFollow()
update()
Searching users, getting user information +and managing authenticated user account information.
+link | +http://develop.github.com/p/users.html | +
---|---|
author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
license | +MIT License | +
addEmail($email) : array+ +
+array
list of authenticated user emailsaddKey($title, $key) : array+ +
+
+array
list of public keys of the userfollow(string $username) : array+ +
http://developer.github.com/v3/users/followers/
+string
the username to follow
array
list of followed usersgetEmails() : array+ +
array
list of authenticated user emailsgetFollowers(string $username) : array+ +
string
the username
array
list of following usersgetFollowing(string $username) : array+ +
string
the username
array
list of followed usersgetKeys() : array+ +
array
list of public keys of the usergetWatchedRepos(string $username) : array+ +
string
the username
array
list of watched reposremoveEmail($email) : array+ +
+array
list of authenticated user emailsremoveKey($id) : array+ +
+array
list of public keys of the usersearch(string $keyword) : array+ +
link | +http://developer.github.com/v3/search/#search-users | +
---|
string
the keyword to search
array
list of users foundshow(string $username) : array+ +
string
the username to show
array
informations about the userunFollow(string $username) : array+ +
http://developer.github.com/v3/users/followers/
+string
the username to unfollow
array
list of followed usersupdate(array $data) : array+ +
http://developer.github.com/v3/users/
+array
key=>value user attributes to update. key can be name, email, blog, company or location
+array
informations about the user__construct()
authenticate()
clearHeaders()
deAuthenticate()
delete()
get()
getApi()
getCommitApi()
getGistApi()
getHttpClient()
getIssueApi()
getMarkdownApi()
getObjectApi()
getOrganizationApi()
getPullRequestApi()
getRateLimit()
getRepoApi()
getUserApi()
patch()
post()
put()
setApi()
setHeaders()
setHttpClient()
$apis
$httpClient
$headers
AUTH_HTTP_PASSWORD
AUTH_HTTP_TOKEN
AUTH_URL_TOKEN
Simple yet very cool PHP Github client
+author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
---|---|
author | +Joseph Bielawski <stloyd@gmail.com> +Website: http://github.com/KnpLabs/php-github-api | +
__construct(Github\HttpClient\HttpClientInterface $httpClient)+ +
\HttpClientInterface
custom http client
authenticate(string $login, string $secret, null | string $method)+ +
string
GitHub username
string
GitHub private token or Github password if $method == AUTH_HTTP_PASSWORD
+nullstring
One of the AUTH_* class constants
+clearHeaders()+ +
deAuthenticate()+ +
delete(string $path, array $parameters, array $requestOptions) : array+ +
string
the GitHub path
array
DELETE parameters
array
reconfigure the request
array
data returnedget(string $path, array $parameters, array $requestOptions) : array+ +
string
the GitHub path
array
GET parameters
array
reconfigure the request
array
data returnedgetApi(string $name) : \ApiInterface+ +
string
the API name
\ApiInterface
the API instancegetCommitApi() : \Api\Commit+ +
\Api\Commit
the commit APIgetGistApi() : \Api\Gist+ +
\Api\Gist
the gist APIgetHttpClient() : \HttpClientInterface+ +
\HttpClientInterface
a request instancegetIssueApi() : \Api\Issue+ +
\Api\Issue
the issue APIgetMarkdownApi() : \Api\Markdown+ +
\Api\Markdown
the markdown APIgetObjectApi() : \Api\Object+ +
\Api\Object
the object APIgetOrganizationApi() : \Api\Organization+ +
\Api\Organization
the object APIgetPullRequestApi() : \Api\PullRequest+ +
\Api\PullRequest
the pull request APIgetRateLimit() : mixed+ +
mixed
getRepoApi() : \Api\Repo+ +
\Api\Repo
the repo APIgetUserApi() : \Api\User+ +
\Api\User
the user APIpatch(string $path, array $parameters, array $requestOptions) : array+ +
string
the GitHub path
array
Patch parameters
array
reconfigure the request
array
data returnedpost(string $path, array $parameters, array $requestOptions) : array+ +
string
the GitHub path
array
POST parameters
array
reconfigure the request
array
data returnedput(string $path, array $requestOptions) : array+ +
string
the GitHub path
array
reconfigure the request
array
data returnedsetApi(string $name, Github\Api\ApiInterface $instance) : \Client+ +
string
the API name
+\Client
setHeaders(array $headers)+ +
array
+setHttpClient(Github\HttpClient\HttpClientInterface $httpClient)+ +
\HttpClientInterface
The httpClient instance
$apis : array+ +
$httpClient : \HttpClientInterface+ +
$headers : array+ +
AUTH_HTTP_PASSWORD+ +
AUTH_HTTP_TOKEN+ +
AUTH_URL_TOKEN+ +
ApiLimitExceedException
+author | +Joseph Bielawski | +
---|
__construct($limit)+ +
+__toString()+ +
inherited_from | +Exception::__toString() | +
---|
getCode()+ +
inherited_from | +Exception::getCode() | +
---|
getFile()+ +
inherited_from | +Exception::getFile() | +
---|
getLine()+ +
inherited_from | +Exception::getLine() | +
---|
getMessage()+ +
inherited_from | +Exception::getMessage() | +
---|
getPrevious()+ +
inherited_from | +Exception::getPrevious() | +
---|
getTrace()+ +
inherited_from | +Exception::getTrace() | +
---|
getTraceAsString()+ +
inherited_from | +Exception::getTraceAsString() | +
---|
InvalidArgumentException
+author | +Joseph Bielawski | +
---|
__construct()+ +
inherited_from | +Exception::__construct() | +
---|
__toString()+ +
inherited_from | +Exception::__toString() | +
---|
getCode()+ +
inherited_from | +Exception::getCode() | +
---|
getFile()+ +
inherited_from | +Exception::getFile() | +
---|
getLine()+ +
inherited_from | +Exception::getLine() | +
---|
getMessage()+ +
inherited_from | +Exception::getMessage() | +
---|
getPrevious()+ +
inherited_from | +Exception::getPrevious() | +
---|
getTrace()+ +
inherited_from | +Exception::getTrace() | +
---|
getTraceAsString()+ +
inherited_from | +Exception::getTraceAsString() | +
---|
__construct()
delete()
get()
patch()
post()
put()
request()
setHeaders()
setOption()
checkApiLimit()
decodeResponse()
doRequest()
$remainingCalls
$browser
$headers
$history
$options
Performs requests on GitHub API. API documentation should be self-explanatory.
+author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
---|---|
author | +Joseph Bielawski | +
__construct(array $options, Buzz\Browser $browser)+ +
array
Http client options
null\Browser
Buzz client
delete($path, array $parameters, array $options)+ +
+
+
+get($path, array $parameters, array $options)+ +
+
+
+patch($path, array $parameters, array $options)+ +
+
+
+post($path, array $parameters, array $options)+ +
+
+
+put($path, array $options)+ +
+
+request(string $path, array $parameters, string $httpMethod, array $options) : array+ +
string
Request API path
array
Parameters
string
HTTP method to use
array
Request options
array
DatasetHeaders(array $headers)+ +
+setOption($name, $value)+ +
+
+checkApiLimit(Buzz\Message\MessageInterface $response)+ +
+decodeResponse($response)+ +
+doRequest(string $url, array $parameters, string $httpMethod, array $options) : array+ +
string
Request url
array
Parameters
string
HTTP method to use
array
Request options
array
HTTP response$remainingCalls : integer+ +
$browser : \Browser+ +
$headers : array+ +
$history : array+ +
Performs requests on GitHub API. API documentation should be self-explanatory.
+author | +Thibault Duplessis <thibault.duplessis at gmail dot com> | +
---|---|
author | +Joseph Bielawski | +
delete(string $path, array $parameters, array $options) : array+ +
string
Request path
array
DELETE Parameters
array
Reconfigure the request for this call only
array
Dataget(string $path, array $parameters, array $options) : array+ +
string
Request path
array
GET Parameters
array
Reconfigure the request for this call only
array
Datapatch(string $path, array $parameters, array $options) : array+ +
string
Request path
array
PATCH Parameters
array
Reconfigure the request for this call only
array
Datapost(string $path, array $parameters, array $options) : array+ +
string
Request path
array
POST Parameters
array
Reconfigure the request for this call only
array
Dataput(string $path, array $options) : array+ +
string
Request path
array
Reconfigure the request for this call only
array
DatasetHeaders(array $headers)+ +
array
+setOption(string $name, mixed $value) : \HttpClientInterface+ +
string
The option name
mixed
The value
\HttpClientInterface
The current object instance__construct(string $method, array $options)+ +
string
+array
+\InvalidArgumentException |
++ |
---|
postSend(Buzz\Message\RequestInterface $request, Buzz\Message\MessageInterface $response)+ +
+
+preSend(Buzz\Message\RequestInterface $request)+ +
+$method : string+ +
Type | +Line | +Description | +
---|---|---|
error | +25 | +No short description for method __construct() | +
error | +25 | +The type hint of the argument is incorrect for the type definition of the @param tag with argument $client in __construct() | +
error | +33 | +Argument $path is missing from the Docblock of get() | +
error | +33 | +Argument $parameters is missing from the Docblock of get() | +
error | +33 | +Argument $requestOptions is missing from the Docblock of get() | +
error | +41 | +Argument $path is missing from the Docblock of post() | +
error | +41 | +Argument $parameters is missing from the Docblock of post() | +
error | +41 | +Argument $requestOptions is missing from the Docblock of post() | +
error | +49 | +Argument $path is missing from the Docblock of patch() | +
error | +49 | +Argument $parameters is missing from the Docblock of patch() | +
error | +49 | +Argument $requestOptions is missing from the Docblock of patch() | +
error | +57 | +Argument $path is missing from the Docblock of put() | +
error | +57 | +Argument $parameters is missing from the Docblock of put() | +
error | +57 | +Argument $requestOptions is missing from the Docblock of put() | +
error | +65 | +Argument $path is missing from the Docblock of delete() | +
error | +65 | +Argument $parameters is missing from the Docblock of delete() | +
error | +65 | +Argument $requestOptions is missing from the Docblock of delete() | +
Type | +Line | +Description | +
---|---|---|
error | +20 | +No short description for method render() | +
error | +42 | +No short description for method renderRaw() | +
Type | +Line | +Description | +
---|---|---|
error | +24 | +Name of argument $recursive does not match with the DocBlock's name $resursive in showTree() | +
notice | +24 | +Parameter $resursive could not be found in showTree() | +
notice | +43 | +Parameter $path could not be found in listBlobs() | +
Type | +Line | +Description | +
---|---|---|
error | +234 | +Name of argument $repo does not match with the DocBlock's name $username in removeRepoCollaborator() | +
error | +234 | +Name of argument $username does not match with the DocBlock's name $repo in removeRepoCollaborator() | +
Type | +Line | +Description | +
---|---|---|
error | +128 | +Argument $title is missing from the Docblock of addKey() | +
error | +128 | +Argument $key is missing from the Docblock of addKey() | +
error | +138 | +Argument $id is missing from the Docblock of removeKey() | +
error | +158 | +Argument $email is missing from the Docblock of addEmail() | +
error | +168 | +Argument $email is missing from the Docblock of removeEmail() | +
Type | +Line | +Description | +
---|---|---|
error | +63 | +The type hint of the argument is incorrect for the type definition of the @param tag with argument $httpClient in __construct() | +
error | +181 | +The type hint of the argument is incorrect for the type definition of the @param tag with argument $httpClient in setHttpClient() | +
error | +315 | +No short description for method getRateLimit() | +
error | +328 | +Name of argument $instance does not match with the DocBlock's name $api in setApi() | +
error | +328 | +The type hint of the argument is incorrect for the type definition of the @param tag with argument $instance in setApi() | +
notice | +328 | +Parameter $api could not be found in setApi() | +
error | +357 | +No short description for method setHeaders() | +
Type | +Line | +Description | +
---|---|---|
error | +12 | +No DocBlock was found for method __construct() | +
Type | +Line | +Description | +
---|---|---|
critical | +23 | +No short description for property $remainingCalls | +
critical | +47 | +No short description for property $history | +
critical | +52 | +No short description for property $headers | +
critical | +57 | +No short description for property $browser | +
error | +65 | +The type hint of the argument is incorrect for the type definition of the @param tag with argument $browser in __construct() | +
error | +89 | +Argument $headers is missing from the Docblock of setHeaders() | +
error | +97 | +Argument $name is missing from the Docblock of setOption() | +
error | +97 | +Argument $value is missing from the Docblock of setOption() | +
error | +107 | +Argument $path is missing from the Docblock of get() | +
error | +107 | +Argument $parameters is missing from the Docblock of get() | +
error | +107 | +Argument $options is missing from the Docblock of get() | +
error | +115 | +Argument $path is missing from the Docblock of post() | +
error | +115 | +Argument $parameters is missing from the Docblock of post() | +
error | +115 | +Argument $options is missing from the Docblock of post() | +
error | +123 | +Argument $path is missing from the Docblock of patch() | +
error | +123 | +Argument $parameters is missing from the Docblock of patch() | +
error | +123 | +Argument $options is missing from the Docblock of patch() | +
error | +131 | +Argument $path is missing from the Docblock of delete() | +
error | +131 | +Argument $parameters is missing from the Docblock of delete() | +
error | +131 | +Argument $options is missing from the Docblock of delete() | +
error | +139 | +Argument $path is missing from the Docblock of put() | +
error | +139 | +Argument $options is missing from the Docblock of put() | +
error | +197 | +Argument $response is missing from the Docblock of decodeResponse() | +
error | +211 | +Argument $response is missing from the Docblock of checkApiLimit() | +
Type | +Line | +Description | +
---|---|---|
error | +13 | +No DocBlock was found for \Github\HttpClient\Listener\AuthListener | +
critical | +18 | +No short description for property $method | +
critical | +22 | +No short description for property $options | +
error | +30 | +No short description for method __construct() | +
error | +43 | +Argument $request is missing from the Docblock of preSend() | +
error | +72 | +Argument $request is missing from the Docblock of postSend() | +
error | +72 | +Argument $response is missing from the Docblock of postSend() | +
=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, +CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, +g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, +text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, +setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= +h[3];l=0;for(m=h.length;l =0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== +"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, +h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l ";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& +q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; +if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); +(function(){var g=s.createElement("div");g.innerHTML="";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: +function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q =0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f
0)for(var j=d;j 0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= +{},i;if(f&&a.length){e=0;for(var o=a.length;e -1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== +"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", +d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? +a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== +1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"+d+">"},F={option:[1,""],legend:[1,""],thead:[1," ","
"],tr:[2,"","
"],td:[3,""],col:[2,"
"," "],area:[1,""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
"," ",""];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, +""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); +return this}else{e=0;for(var j=d.length;e 0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", +""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===" "&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= +c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? +c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= +function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= +Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, +"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= +a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= +a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/ + + + + + +
++ ++ +++ ++++ +No markers have been found in this project.++ The following markers were found: ++ ++