PHP 클래스 chobie\Jira\Api\Client\PHPClient

상속: implements chobie\Jira\Api\Client\ClientInterface
파일 보기 프로젝트 열기: chobie/jira-api-restclient

보호된 프로퍼티들

프로퍼티 타입 설명
$httpsSupport boolean HTTPS support enabled.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
doSendRequest ( string $url, array $context ) : array Sends the request.
isHttpsSupported ( ) : boolean Returns status of HTTP support.

메소드 상세

__construct() 공개 메소드

Create a traditional php client.
public __construct ( )

doSendRequest() 보호된 메소드

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

errorHandler() 공개 메소드

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

isHttpsSupported() 보호된 메소드

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

sendRequest() 공개 메소드

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.
리턴 array | string

프로퍼티 상세

$httpsSupport 보호되어 있는 프로퍼티

HTTPS support enabled.
protected bool $httpsSupport
리턴 boolean