Liste de tous les membres
Fonctions membres publiques |
| create ($files, $public=false, $description=null) |
| createComment ($gistId, $body) |
| delete ($gistId) |
| deleteComment ($commentId) |
| edit ($gistId, $files=null, $public=null, $description=null) |
| editComment ($commentId, $body) |
| fork ($gistId) |
| get ($gistId) |
| getComment ($commentId) |
| getComments ($gistId, $page=0, $limit=0) |
| getList ($page=0, $limit=0) |
| getListByUser ($user, $page=0, $limit=0) |
| getListPublic ($page=0, $limit=0) |
| getListStarred ($page=0, $limit=0) |
| isStarred ($gistId) |
| star ($gistId) |
| unstar ($gistId) |
| __construct (JRegistry &$options=null, JGithubHttp $client=null) |
Documentation des fonctions membres
JGithubGists::buildFileData |
( |
array |
$files | ) |
|
|
protected |
Method to fetch a data array for transmitting to the GitHub API for a list of files based on an input array of file paths or filename and content pairs.
- Paramètres:
-
array | $files | The list of file paths or filenames and content. |
- Renvoie:
- array
- Depuis:
- 11.3
Références $data, $file, $key, et elseif.
JGithubGists::create |
( |
|
$files, |
|
|
|
$public = false , |
|
|
|
$description = null |
|
) |
| |
Method to create a gist.
- Paramètres:
-
mixed | $files | Either an array of file paths or a single file path as a string. |
boolean | $public | True if the gist should be public. |
string | $description | The optional description of the gist. |
- Renvoie:
- object
- Depuis:
- 11.3
Références $data, $files, et $path.
JGithubGists::createComment |
( |
|
$gistId, |
|
|
|
$body |
|
) |
| |
Method to create a comment on a gist.
- Paramètres:
-
integer | $gistId | The gist number. |
string | $body | The comment body text. |
- Renvoie:
- object
- Depuis:
- 11.3
Références $data, et $path.
JGithubGists::delete |
( |
|
$gistId | ) |
|
Method to delete a gist.
- Paramètres:
-
integer | $gistId | The gist number. |
- Renvoie:
- void
- Depuis:
- 11.3
Références $path.
JGithubGists::deleteComment |
( |
|
$commentId | ) |
|
Method to delete a comment on a gist.
- Paramètres:
-
integer | $commentId | The id of the comment to delete. |
- Renvoie:
- void
- Depuis:
- 11.3
Références $path.
JGithubGists::edit |
( |
|
$gistId, |
|
|
|
$files = null , |
|
|
|
$public = null , |
|
|
|
$description = null |
|
) |
| |
Method to update a gist.
- Paramètres:
-
integer | $gistId | The gist number. |
mixed | $files | Either an array of file paths or a single file path as a string. |
boolean | $public | True if the gist should be public. |
string | $description | The description of the gist. |
- Renvoie:
- object
- Depuis:
- 11.3
Références $data, $files, et $path.
JGithubGists::editComment |
( |
|
$commentId, |
|
|
|
$body |
|
) |
| |
Method to update a comment on a gist.
- Paramètres:
-
integer | $commentId | The id of the comment to update. |
string | $body | The new body text for the comment. |
- Renvoie:
- object
- Depuis:
- 11.3
Références $data, et $path.
JGithubGists::fork |
( |
|
$gistId | ) |
|
Method to fork a gist.
- Paramètres:
-
integer | $gistId | The gist number. |
- Renvoie:
- object
- Depuis:
- 11.3
Références $path.
JGithubGists::get |
( |
|
$gistId | ) |
|
Method to get a single gist.
- Paramètres:
-
integer | $gistId | The gist number. |
- Renvoie:
- object
- Depuis:
- 11.3
Références $path.
JGithubGists::getComment |
( |
|
$commentId | ) |
|
Method to get a specific comment on a gist.
- Paramètres:
-
integer | $commentId | The comment id to get. |
- Renvoie:
- object
- Depuis:
- 11.3
Références $path.
JGithubGists::getComments |
( |
|
$gistId, |
|
|
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to get the list of comments on a gist.
- Paramètres:
-
integer | $gistId | The gist number. |
integer | $page | The page number from which to get items. |
integer | $limit | The number of items on a page. |
- Renvoie:
- array
- Depuis:
- 11.3
Références $limit, et $path.
JGithubGists::getList |
( |
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to list gists. If a user is authenticated it will return the user's gists, otherwise it will return all public gists.
- Paramètres:
-
integer | $page | The page number from which to get items. |
integer | $limit | The number of items on a page. |
- Renvoie:
- array
- Depuis:
- 11.3
Références $limit, et $path.
JGithubGists::getListByUser |
( |
|
$user, |
|
|
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to get a list of gists belonging to a given user.
- Paramètres:
-
string | $user | The name of the GitHub user from which to list gists. |
integer | $page | The page number from which to get items. |
integer | $limit | The number of items on a page. |
- Renvoie:
- array
- Depuis:
- 11.3
Références $limit, $path, et $user.
JGithubGists::getListPublic |
( |
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to get a list of all public gists.
- Paramètres:
-
integer | $page | The page number from which to get items. |
integer | $limit | The number of items on a page. |
- Renvoie:
- array
- Depuis:
- 11.3
Références $limit, et $path.
JGithubGists::getListStarred |
( |
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to get a list of the authenticated users' starred gists.
- Paramètres:
-
integer | $page | The page number from which to get items. |
integer | $limit | The number of items on a page. |
- Renvoie:
- array
- Depuis:
- 11.3
Références $limit, et $path.
JGithubGists::isStarred |
( |
|
$gistId | ) |
|
Method to check if a gist has been starred.
- Paramètres:
-
integer | $gistId | The gist number. |
- Renvoie:
- boolean True if the gist is starred.
- Depuis:
- 11.3
Références $path, et elseif.
JGithubGists::star |
( |
|
$gistId | ) |
|
Method to star a gist.
- Paramètres:
-
integer | $gistId | The gist number. |
- Renvoie:
- void
- Depuis:
- 11.3
Références $path.
JGithubGists::unstar |
( |
|
$gistId | ) |
|
Method to star a gist.
- Paramètres:
-
integer | $gistId | The gist number. |
- Renvoie:
- void
- Depuis:
- 11.3
Références $path.
La documentation de cette classe a été générée à partir du fichier suivant :