PHP 클래스 MedraWebservice, ojs

파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_auth HTTP authentication credentials.
$_endpoint The mEDRA web service endpoint.

공개 메소드들

메소드 설명
__construct ( $endpoint, $login, $password ) Constructor
_doRequest ( $action, $arg, $attachment = null ) : boolean | string Do the actual web service request.
_escapeXmlEntities ( $string ) Escape XML entities.
_getContentId ( $prefix ) : string Create a globally unique MIME content ID.
_getMimePart ( $contentId, $content ) : string Create a mime part with the given content.
upload ( $xml ) mEDRA upload operation.
viewMetadata ( $doi ) mEDRA viewMetadata operation

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $endpoint, $login, $password )
$endpoint string The mEDRA web service endpoint.
$login string
$password string

_doRequest() 공개 메소드

Do the actual web service request.
public _doRequest ( $action, $arg, $attachment = null ) : boolean | string
$action string
$arg string
$attachment array
리턴 boolean | string True for success, an error message otherwise.

_escapeXmlEntities() 공개 메소드

Escape XML entities.
public _escapeXmlEntities ( $string )
$string string

_getContentId() 공개 메소드

Create a globally unique MIME content ID.
public _getContentId ( $prefix ) : string
$prefix string
리턴 string

_getMimePart() 공개 메소드

Create a mime part with the given content.
public _getMimePart ( $contentId, $content ) : string
$contentId string
$content string
리턴 string

upload() 공개 메소드

mEDRA upload operation.
public upload ( $xml )
$xml

viewMetadata() 공개 메소드

mEDRA viewMetadata operation
public viewMetadata ( $doi )

프로퍼티 상세

$_auth 공개적으로 프로퍼티

HTTP authentication credentials.
public $_auth

$_endpoint 공개적으로 프로퍼티

The mEDRA web service endpoint.
public $_endpoint