|
| | __construct () |
| |
| | httpGET ($URL, $curl_options=array()) |
| |
| | httpPOST ($URL, $input=NULL) |
| |
| | httpPUT ($URL, $input=NULL) |
| |
| | httpPATCH ($URL, $input=NULL) |
| |
| | getRemoteFile ($URL, $file_name) |
| |
| | uploadFile ($URL, $data, $files) |
| |
| | httpDELETE ($URL, $input=NULL) |
| |
| | auth ($URL, $username, $password) |
| |
| | getError () |
| |
| | getErrorMessage () |
| |
| | getErrorType () |
| |
| | setError ($type, $message) |
| |
| | expectArray ($response) |
| |
| GalaxyHTTPRequest::__construct |
( |
| ) |
|
| GalaxyHTTPRequest::auth |
( |
|
$URL, |
|
|
|
$username, |
|
|
|
$password |
|
) |
| |
- Parameters
-
| unknown | $URL | |
| unknown | $username | |
| unknown | $password | |
| GalaxyHTTPRequest::expectArray |
( |
|
$response | ) |
|
Checks if the provided value is an array and sets an error if not.
This is a helper function to help children class deal with the case when Galaxy does not return a JSON array as expected. Sometimes when there is an error the error message is returned in a JSON array and can be handled by our getCURLResponse function. But otherwise that function can't distinguish between a string that is returned and an error. So, this function allows children class to check that the response is an array if they expect that it should be.
- Parameters
-
| GalaxyHTTPRequest::getError |
( |
| ) |
|
| GalaxyHTTPRequest::getErrorMessage |
( |
| ) |
|
| GalaxyHTTPRequest::getErrorType |
( |
| ) |
|
| GalaxyHTTPRequest::getRemoteFile |
( |
|
$URL, |
|
|
|
$file_name |
|
) |
| |
| GalaxyHTTPRequest::httpDELETE |
( |
|
$URL, |
|
|
|
$input = NULL |
|
) |
| |
Universal DELETE request
- Parameters
-
| $input | The input data to give to the url. |
| $URL | The path to perform the DELETE request. |
- Returns
- curl server response
| GalaxyHTTPRequest::httpGET |
( |
|
$URL, |
|
|
|
$curl_options = array() |
|
) |
| |
Performs a GET request.
- Parameters
-
| $URL | The URL for the GET. |
| $curl_options | Any additional information to retreive from the resource while the GET request. |
- Returns
- curl server response.
| GalaxyHTTPRequest::httpPATCH |
( |
|
$URL, |
|
|
|
$input = NULL |
|
) |
| |
Perform a PATCH request
- Parameters
-
| $URL | The URL for the PATCH request. |
| $input | The input data to give to the URL. |
- Returns
- curl server response.
| GalaxyHTTPRequest::httpPOST |
( |
|
$URL, |
|
|
|
$input = NULL |
|
) |
| |
Perform a POST request.
- Parameters
-
| $URL | The url for the POST. |
| $input | The input data to a given URL. |
- Returns
- curl server response.
| GalaxyHTTPRequest::httpPUT |
( |
|
$URL, |
|
|
|
$input = NULL |
|
) |
| |
Perform a PUT request
- Parameters
-
| $URL | The URL for the PUT |
| $input | The input data to give to the URL. |
- Returns
- An associative array containing the response from the Galaxy server or FALSE if an error occured. If FALSE then use the getError() function to retrieve the error message and type.
| GalaxyHTTPRequest::setError |
( |
|
$type, |
|
|
|
$message |
|
) |
| |
| GalaxyHTTPRequest::uploadFile |
( |
|
$URL, |
|
|
|
$data, |
|
|
|
$files |
|
) |
| |
Upload file request
- Parameters
-
| $data | The input data to give to the url. |
| $URL | The path to perform the DELETE request. |
| $files | The file(s) to post to the specified URL |
- Returns
- curl server response
The documentation for this class was generated from the following file: