JGithub
Joomla Platform class for interacting with a GitHub server instance.
| package |
Joomla.Platform |
|---|---|
| subpackage |
GitHub |
| since |
11.3 |
Methods
__construct
Constructor.
__construct(\JRegistry $options = null, \JGithubHttp $client = null)
| since |
11.3 |
|---|
Arguments
- $options
\JRegistryGitHub options object.- $client
\JGithubHttpThe HTTP client object.
__get
Magic method to lazily create API objects
__get(string $name) : \JGithubObject
| since |
11.3 |
|---|
Arguments
- $name
stringName of property to retrieve
Response
\JGithubObjectGitHub API object (gists, issues, pulls, etc).
getOption
Get an option from the JGitHub instance.
getOption(string $key) : mixed
| since |
11.3 |
|---|
Arguments
- $key
stringThe name of the option to get.
Response
mixedThe option value.
setOption
Set an option for the JGitHub instance.
setOption(string $key, mixed $value) : \JGitHub
| since |
11.3 |
|---|
Arguments
- $key
stringThe name of the option to set.- $value
mixedThe option value to set.
Response
\JGitHubThis object for method chaining.