Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
create ($user, $repo, $name, array $config, array $events=array('push'), $active=true) | |
delete ($user, $repo, $id) | |
edit ($user, $repo, $id, $name, array $config, array $events=array('push'), array $addEvents=array(), array $removeEvents=array(), $active=true) | |
get ($user, $repo, $id) | |
getList ($user, $repo, $page=0, $limit=0) | |
test ($user, $repo, $id) | |
Fonctions membres publiques inherited from JGithubObject | |
__construct (JRegistry $options=null, JGithubHttp $client=null) |
Attributs protégés | |
$events | |
Attributs protégés inherited from JGithubObject | |
$options | |
$client |
Additional Inherited Members | |
Fonctions membres protégées inherited from JGithubObject | |
fetchUrl ($path, $page=0, $limit=0) | |
processResponse (JHttpResponse $response, $expectedCode=200) |
JGithubHooks::create | ( | $user, | |
$repo, | |||
$name, | |||
array | $config, | ||
array | $events = array('push') , |
||
$active = true |
|||
) |
Method to create a hook on a repository.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $name | The name of the service being called. |
array | $config | Array containing the config for the service. |
array | $events | The events the hook will be triggered for. |
boolean | $active | Flag to determine if the hook is active |
DomainException | |
RuntimeException |
Définition à la ligne 48 du fichier hooks.php.
JGithubHooks::delete | ( | $user, | |
$repo, | |||
$id | |||
) |
Method to delete a hook
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $id | ID of the hook to delete. |
DomainException |
Définition à la ligne 84 du fichier hooks.php.
JGithubHooks::edit | ( | $user, | |
$repo, | |||
$id, | |||
$name, | |||
array | $config, | ||
array | $events = array('push') , |
||
array | $addEvents = array() , |
||
array | $removeEvents = array() , |
||
$active = true |
|||
) |
Method to edit a hook.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $id | ID of the hook to edit. |
string | $name | The name of the service being called. |
array | $config | Array containing the config for the service. |
array | $events | The events the hook will be triggered for. This resets the currently set list |
array | $addEvents | Events to add to the hook. |
array | $removeEvents | Events to remove from the hook. |
boolean | $active | Flag to determine if the hook is active |
DomainException | |
RuntimeException |
Définition à la ligne 114 du fichier hooks.php.
JGithubHooks::get | ( | $user, | |
$repo, | |||
$id | |||
) |
Method to get details about a single hook for the repository.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $id | ID of the hook to retrieve |
DomainException |
Définition à la ligne 171 du fichier hooks.php.
JGithubHooks::getList | ( | $user, | |
$repo, | |||
$page = 0 , |
|||
$limit = 0 |
|||
) |
Method to list hooks for a repository.
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $page | Page to request |
integer | $limit | Number of results to return per page |
DomainException |
Définition à la ligne 194 du fichier hooks.php.
JGithubHooks::test | ( | $user, | |
$repo, | |||
$id | |||
) |
Method to test a hook against the latest repository commit
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
integer | $id | ID of the hook to delete |
DomainException |
Définition à la ligne 216 du fichier hooks.php.
|
protected |