Property | Type | Description | |
---|---|---|---|
$_auth | HTTP authentication credentials. | ||
$_endpoint | The mEDRA web service endpoint. |
Method | Description | |
---|---|---|
__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 |
public __construct ( $endpoint, $login, $password ) | ||
$endpoint | string The mEDRA web service endpoint. | |
$login | string | |
$password | string |
public _doRequest ( $action, $arg, $attachment = null ) : boolean | string | ||
$action | string | |
$arg | string | |
$attachment | array | |
return | boolean | string | True for success, an error message otherwise. |
public _escapeXmlEntities ( $string ) | ||
$string | string |
public _getContentId ( $prefix ) : string | ||
$prefix | string | |
return | string |
public _getMimePart ( $contentId, $content ) : string | ||
$contentId | string | |
$content | string | |
return | string |