PHP 클래스 eZ\Publish\Core\REST\Client\IntegrationTestRepository

Note: NEVER USE THIS IN PRODUCTION!
또한 보기: eZ\Publish\API\Repository\Repository
상속: extends Repository, implements eZ\Publish\Core\REST\Client\Sessionable
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( eZ\Publish\Core\REST\Client\HttpClient $client, Dispatcher $inputDispatcher, Visitor $outputVisitor, eZ\Publish\Core\REST\Common\RequestParser $requestParser, array $fieldTypes, IntegrationTestAuthenticator $authenticator ) Instantiates the REST Client repository.
getCurrentUser ( ) : eZ\Publish\API\Repository\Values\User\User Get current user.
setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user ) : void Sets the current user to the given $user.
setSession ( $id ) Set session ID.

메소드 상세

__construct() 공개 메소드

Instantiates the REST Client repository.
public __construct ( eZ\Publish\Core\REST\Client\HttpClient $client, Dispatcher $inputDispatcher, Visitor $outputVisitor, eZ\Publish\Core\REST\Common\RequestParser $requestParser, array $fieldTypes, IntegrationTestAuthenticator $authenticator )
$client eZ\Publish\Core\REST\Client\HttpClient
$inputDispatcher eZ\Publish\Core\REST\Common\Input\Dispatcher
$outputVisitor eZ\Publish\Core\REST\Common\Output\Visitor
$requestParser eZ\Publish\Core\REST\Common\RequestParser
$fieldTypes array
$authenticator eZ\Publish\Core\REST\Client\HttpClient\Authentication\IntegrationTestAuthenticator

getCurrentUser() 공개 메소드

Get current user.
public getCurrentUser ( ) : eZ\Publish\API\Repository\Values\User\User
리턴 eZ\Publish\API\Repository\Values\User\User

setCurrentUser() 공개 메소드

Sets the current user to the given $user.
public setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user ) : void
$user eZ\Publish\API\Repository\Values\User\UserReference
리턴 void

setSession() 공개 메소드

Only for testing
public setSession ( $id )