PHP 클래스 GitHubReposContents, github-php-client

상속: extends GitHubService
파일 보기 프로젝트 열기: tan-tan-kanarek/github-php-client

공개 메소드들

메소드 설명
createFile ( $owner, $repo, $path, $msg, $content, $branch = 'master' ) : GitHubRepoCommit Create a file
deleteFile ( $owner, $repo, $path, $msg, $content, $sha, $branch = 'master' ) : GitHubRepoCommit Delete a file
getContents ( $owner, $repo, $path, $ref = null ) : GitHubContent Get the content
getTheReadme ( $owner, $repo, $ref = null ) : GitHubReadmeContent Get the README
updateFile ( $owner, $repo, $path, $msg, $content, $sha, $branch = 'master' ) : GitHubRepoCommit Update a file

메소드 상세

createFile() 공개 메소드

Create a file
public createFile ( $owner, $repo, $path, $msg, $content, $branch = 'master' ) : GitHubRepoCommit
$path string Required. The content path.
$content string Required. The new file content, Base64 encoded.
$branch string The branch name. Default: the repository’s default branch (usually master)
리턴 GitHubRepoCommit

deleteFile() 공개 메소드

Delete a file
public deleteFile ( $owner, $repo, $path, $msg, $content, $sha, $branch = 'master' ) : GitHubRepoCommit
$path string Required. The content path.
$sha string Required. The blob SHA of the file being replaced.
$branch string The branch name. Default: the repository’s default branch (usually master)
리턴 GitHubRepoCommit

getContents() 공개 메소드

Get the content
public getContents ( $owner, $repo, $path, $ref = null ) : GitHubContent
$ref string (Optional) - The String name of the Commit/Branch/Tag. Defaults to `master`.
리턴 GitHubContent

getTheReadme() 공개 메소드

Get the README
public getTheReadme ( $owner, $repo, $ref = null ) : GitHubReadmeContent
$ref string (Optional) - The String name of the Commit/Branch/Tag. Defaults to `master`.
리턴 GitHubReadmeContent

updateFile() 공개 메소드

Update a file
public updateFile ( $owner, $repo, $path, $msg, $content, $sha, $branch = 'master' ) : GitHubRepoCommit
$path string Required. The content path.
$content string Required. The updated file content, Base64 encoded.
$sha string Required. The blob SHA of the file being replaced.
$branch string The branch name. Default: the repository’s default branch (usually master)
리턴 GitHubRepoCommit