|
| getListOwn ($type='all', $sort='full_name', $direction='') |
|
| getListUser ($user, $type='all', $sort='full_name', $direction='') |
|
| getListOrg ($org, $type='all') |
|
| getList ($id=0) |
|
| create ($name, $org='', $description='', $homepage='', $private=false, $hasIssues=false, $hasWiki=false, $hasDownloads=false, $teamId=0, $autoInit=false, $gitignoreTemplate='') |
|
| get ($owner, $repo) |
|
| edit ($owner, $repo, $name, $description='', $homepage='', $private=false, $hasIssues=false, $hasWiki=false, $hasDownloads=false, $defaultBranch='') |
|
| getListContributors ($owner, $repo, $anon=false) |
|
| getListLanguages ($owner, $repo) |
|
| getListTeams ($owner, $repo) |
|
| getListTags ($owner, $repo) |
|
| getListBranches ($owner, $repo) |
|
| getBranch ($owner, $repo, $branch) |
|
| delete ($owner, $repo) |
|
| __get ($name) |
|
| __construct (Registry $options=null, JGithubHttp $client=null) |
|
◆ create()
create |
( |
|
$name, |
|
|
|
$org = '' , |
|
|
|
$description = '' , |
|
|
|
$homepage = '' , |
|
|
|
$private = false , |
|
|
|
$hasIssues = false , |
|
|
|
$hasWiki = false , |
|
|
|
$hasDownloads = false , |
|
|
|
$teamId = 0 , |
|
|
|
$autoInit = false , |
|
|
|
$gitignoreTemplate = '' |
|
) |
| |
Create a new repository for the authenticated user or an organization. OAuth users must supply repo scope.
- Paramètres
-
string | $name | The repository name. |
string | $org | The organization name (if needed). |
string | $description | The repository description. |
string | $homepage | The repository homepage. |
boolean | $private | Set true to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. |
boolean | $hasIssues | Set true to enable issues for this repository, false to disable them. |
boolean | $hasWiki | Set true to enable the wiki for this repository, false to disable it. |
boolean | $hasDownloads | Set true to enable downloads for this repository, false to disable them. |
integer | $teamId | The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization. |
boolean | $autoInit | true to create an initial commit with empty README. |
string | $gitignoreTemplate | Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, “Haskell” Ignored if auto_init parameter is not provided. |
- Renvoie
- object
Références $data, $description, $name, $path, et json_encode.
◆ delete()
Delete a Repository.
Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
- Renvoie
- object
Références $path.
◆ edit()
edit |
( |
|
$owner, |
|
|
|
$repo, |
|
|
|
$name, |
|
|
|
$description = '' , |
|
|
|
$homepage = '' , |
|
|
|
$private = false , |
|
|
|
$hasIssues = false , |
|
|
|
$hasWiki = false , |
|
|
|
$hasDownloads = false , |
|
|
|
$defaultBranch = '' |
|
) |
| |
Edit a repository.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
string | $name | The repository name. |
string | $description | The repository description. |
string | $homepage | The repository homepage. |
boolean | $private | Set true to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. |
boolean | $hasIssues | Set true to enable issues for this repository, false to disable them. |
boolean | $hasWiki | Set true to enable the wiki for this repository, false to disable it. |
boolean | $hasDownloads | Set true to enable downloads for this repository, false to disable them. |
string | $defaultBranch | Update the default branch for this repository |
- Renvoie
- object
Références $data, $description, $name, $path, et json_encode.
◆ get()
Get a repository.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
- Renvoie
- object
Références $path.
◆ getBranch()
getBranch |
( |
|
$owner, |
|
|
|
$repo, |
|
|
|
$branch |
|
) |
| |
Get a Branch.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
string | $branch | Branch name. |
- Renvoie
- object
Références $path.
◆ getList()
List all repositories.
This provides a dump of every repository, in the order that they were created.
- Paramètres
-
integer | $id | The integer ID of the last Repository that you’ve seen. |
- Exceptions
-
- Renvoie
- object
Références $id, et $path.
◆ getListBranches()
getListBranches |
( |
|
$owner, |
|
|
|
$repo |
|
) |
| |
List Branches.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
- Renvoie
- object
Références $path.
◆ getListContributors()
getListContributors |
( |
|
$owner, |
|
|
|
$repo, |
|
|
|
$anon = false |
|
) |
| |
List contributors.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
boolean | $anon | Set to 1 or true to include anonymous contributors in results. |
- Renvoie
- object
Références $path.
◆ getListLanguages()
getListLanguages |
( |
|
$owner, |
|
|
|
$repo |
|
) |
| |
List languages.
List languages for the specified repository. The value on the right of a language is the number of bytes of code written in that language.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
- Renvoie
- object
Références $path.
◆ getListOrg()
getListOrg |
( |
|
$org, |
|
|
|
$type = 'all' |
|
) |
| |
List organization repositories.
List repositories for the specified org.
- Paramètres
-
string | $org | The name of the organization. |
string | $type | Sort type. all, public, private, forks, sources, member. Default: all. |
- Exceptions
-
- Renvoie
- object
Références $path, et $type.
◆ getListOwn()
getListOwn |
( |
|
$type = 'all' , |
|
|
|
$sort = 'full_name' , |
|
|
|
$direction = '' |
|
) |
| |
List your repositories.
List repositories for the authenticated user.
- Paramètres
-
string | $type | Sort type. all, owner, public, private, member. Default: all. |
string | $sort | Sort field. created, updated, pushed, full_name, default: full_name. |
string | $direction | Sort direction. asc or desc, default: when using full_name: asc, otherwise desc. |
- Exceptions
-
- Renvoie
- object
Références $direction, $path, et $type.
◆ getListTags()
getListTags |
( |
|
$owner, |
|
|
|
$repo |
|
) |
| |
List Tags.
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
- Renvoie
- object
Références $path.
◆ getListTeams()
getListTeams |
( |
|
$owner, |
|
|
|
$repo |
|
) |
| |
List Teams
- Paramètres
-
string | $owner | Repository owner. |
string | $repo | Repository name. |
- Renvoie
- object
Références $path.
◆ getListUser()
getListUser |
( |
|
$user, |
|
|
|
$type = 'all' , |
|
|
|
$sort = 'full_name' , |
|
|
|
$direction = '' |
|
) |
| |
List user repositories.
List public repositories for the specified user.
- Paramètres
-
string | $user | The user name. |
string | $type | Sort type. all, owner, member. Default: all. |
string | $sort | Sort field. created, updated, pushed, full_name, default: full_name. |
string | $direction | Sort direction. asc or desc, default: when using full_name: asc, otherwise desc. |
- Exceptions
-
- Renvoie
- object
Références $direction, $path, $type, et $user.
◆ $name
◆ $packages
$packages = array('collaborators', 'comments', 'commits', 'contents', 'downloads', 'forks', 'hooks', 'keys', 'merging', 'statuses') |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :