PHP Class chobie\Jira\Api\Client\PHPClient

Inheritance: implements chobie\Jira\Api\Client\ClientInterface
Show file Open project: chobie/jira-api-restclient

Protected Properties

Property Type Description
$httpsSupport boolean HTTPS support enabled.

Public Methods

Method Description
__construct ( ) Create a traditional php client.
errorHandler ( integer $errno, string $errstr ) : void Remembers last error.
sendRequest ( string $method, string $url, array | string $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string Sends request to the API server.

Protected Methods

Method Description
doSendRequest ( string $url, array $context ) : array Sends the request.
isHttpsSupported ( ) : boolean Returns status of HTTP support.

Method Details

__construct() public method

Create a traditional php client.
public __construct ( )

doSendRequest() protected method

Sends the request.
protected doSendRequest ( string $url, array $context ) : array
$url string URL.
$context array Context.
return array

errorHandler() public method

Remembers last error.
public errorHandler ( integer $errno, string $errstr ) : void
$errno integer Error number.
$errstr string Error message.
return void

isHttpsSupported() protected method

Returns status of HTTP support.
protected isHttpsSupported ( ) : boolean
return boolean

sendRequest() public method

Sends request to the API server.
public sendRequest ( string $method, string $url, array | string $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string
$method string Request method.
$url string URL.
$data array | string Request data.
$endpoint string Endpoint.
$credential chobie\Jira\Api\Authentication\AuthenticationInterface Credential.
$is_file boolean This is a file upload request.
$debug boolean Debug this request.
return array | string

Property Details

$httpsSupport protected property

HTTPS support enabled.
protected bool $httpsSupport
return boolean