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
\JRegistry
GitHub options object.- $client
\JGithubHttp
The HTTP client object.
__get
Magic method to lazily create API objects
__get(string $name) : \JGithubObject
since |
11.3 |
---|
Arguments
- $name
string
Name of property to retrieve
Response
\JGithubObject
GitHub API object (gists, issues, pulls, etc).
getOption
Get an option from the JGitHub instance.
getOption(string $key) : mixed
since |
11.3 |
---|
Arguments
- $key
string
The name of the option to get.
Response
mixed
The option value.
setOption
Set an option for the JGitHub instance.
setOption(string $key, mixed $value) : \JGitHub
since |
11.3 |
---|
Arguments
- $key
string
The name of the option to set.- $value
mixed
The option value to set.
Response
\JGitHub
This object for method chaining.