PHP 클래스 eZ\Publish\Core\REST\Client\HttpClient\Authentication\IntegrationTestAuthenticator

Note: DO NOT USE THIS IN PRODUCTION.
상속: implements eZ\Publish\Core\REST\Client\HttpClient, implements eZ\Publish\Core\REST\Client\Sessionable
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$innerClient eZ\Publish\Core\REST\Client\HttpClient Inner HTTP client, performing the actual requests.
$sessionId string Session ID.
$userId mixed User ID to be sent to the server.

공개 메소드들

메소드 설명
__construct ( eZ\Publish\Core\REST\Client\HttpClient $innerClient, mixed $userId = 14 ) Creates a new Integration Test Authenticator.
request ( string $method, string $path, Message $message = null ) : Message Execute a HTTP request to the remote server.
setSession ( string $id ) Set the session ID to use.
setUserId ( mixed $userId ) Sets the user ID submitted to the server.

메소드 상세

__construct() 공개 메소드

Creates a new Integration Test Authenticator.
public __construct ( eZ\Publish\Core\REST\Client\HttpClient $innerClient, mixed $userId = 14 )
$innerClient eZ\Publish\Core\REST\Client\HttpClient
$userId mixed

request() 공개 메소드

Returns the result from the remote server. The client sets the correct headers for Basic Auth into the $message transmitted to the inner client.
public request ( string $method, string $path, Message $message = null ) : Message
$method string
$path string
$message eZ\Publish\Core\REST\Common\Message
리턴 eZ\Publish\Core\REST\Common\Message

setSession() 공개 메소드

Set the session ID to use.
public setSession ( string $id )
$id string

setUserId() 공개 메소드

Sets the user ID submitted to the server.
public setUserId ( mixed $userId )
$userId mixed

프로퍼티 상세

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

Inner HTTP client, performing the actual requests.
protected HttpClient,eZ\Publish\Core\REST\Client $innerClient
리턴 eZ\Publish\Core\REST\Client\HttpClient

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

Session ID.
protected string $sessionId
리턴 string

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

User ID to be sent to the server.
protected mixed $userId
리턴 mixed