PHP 클래스 PKPImportExportDeployment, pkp-lib

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

공개 프로퍼티들

프로퍼티 타입 설명
$_context The current import/export context
$_fileDBIds Connection between the file and revision IDs from the XML import file and the DB file IDs
$_processedObjectsIds The processed import objects IDs
$_submission The current import/export submission
$_user The current import/export user

공개 메소드들

메소드 설명
__construct ( $context, $user = null ) Constructor
addError ( $assocType, $assocId, $errorMsg ) Add the error message to the processed object ID.
addProcessedObjectId ( $assocType, $assocId ) Add the processed object ID.
getContext ( ) : Context Get the import/export context.
getFileDBId ( $fileId, $revisionId ) : integer Get the file DB Id.
getFileDBIds ( ) : array Get the array of the inserted file DB Ids.
getNamespace ( ) : string Get the namespace URN
getProcessedObjectsIds ( $assocType ) : array Get the processed objects IDs.
getRepresentationNodeName ( ) Get the representation node name
getSchemaFilename ( ) : string Get the schema filename.
getSubmission ( ) : Submission Get the import/export submission.
getSubmissionNodeName ( ) : string Get the submission node name
getSubmissionsNodeName ( ) : string Get the submissions node name
getUser ( ) : User Get the import/export user.
removeImportedObjects ( $assocType ) Remove the processed objects.
setContext ( $context ) Set the import/export context.
setFileDBId ( $fileId, $revisionId, $DBId ) Set the file DB Id.
setFileDBIds ( $fileDBIds ) Set the array of the inserted file DB Ids.
setSubmission ( $submission ) Set the import/export submission.
setUser ( $user ) Set the import/export user.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $context, $user = null )
$context Context
$user User optional

addError() 공개 메소드

Add the error message to the processed object ID.
public addError ( $assocType, $assocId, $errorMsg )
$assocType integer ASSOC_TYPE_...
$assocId integer
$errorMsg string

addProcessedObjectId() 공개 메소드

Add the processed object ID.
public addProcessedObjectId ( $assocType, $assocId )
$assocType integer ASSOC_TYPE_...
$assocId integer

getContext() 공개 메소드

Get the import/export context.
public getContext ( ) : Context
리턴 Context

getFileDBId() 공개 메소드

Get the file DB Id.
public getFileDBId ( $fileId, $revisionId ) : integer
$fileId integer
$revisionId integer
리턴 integer

getFileDBIds() 공개 메소드

Get the array of the inserted file DB Ids.
public getFileDBIds ( ) : array
리턴 array

getNamespace() 공개 메소드

Get the namespace URN
public getNamespace ( ) : string
리턴 string

getProcessedObjectsIds() 공개 메소드

Get the processed objects IDs.
public getProcessedObjectsIds ( $assocType ) : array
$assocType integer ASSOC_TYPE_...
리턴 array Associative array (assoc object Id => array of errors)

getRepresentationNodeName() 공개 메소드

Get the representation node name

getSchemaFilename() 공개 메소드

Get the schema filename.
public getSchemaFilename ( ) : string
리턴 string

getSubmission() 공개 메소드

Get the import/export submission.
public getSubmission ( ) : Submission
리턴 Submission

getSubmissionNodeName() 공개 메소드

Get the submission node name
public getSubmissionNodeName ( ) : string
리턴 string

getSubmissionsNodeName() 공개 메소드

Get the submissions node name
public getSubmissionsNodeName ( ) : string
리턴 string

getUser() 공개 메소드

Get the import/export user.
public getUser ( ) : User
리턴 User

removeImportedObjects() 공개 메소드

Remove the processed objects.
public removeImportedObjects ( $assocType )
$assocType integer ASSOC_TYPE_...

setContext() 공개 메소드

Set the import/export context.
public setContext ( $context )
$context Context

setFileDBId() 공개 메소드

Set the file DB Id.
public setFileDBId ( $fileId, $revisionId, $DBId )
$fileId integer
$revisionId integer
$DBId integer

setFileDBIds() 공개 메소드

Set the array of the inserted file DB Ids.
public setFileDBIds ( $fileDBIds )
$fileDBIds array

setSubmission() 공개 메소드

Set the import/export submission.
public setSubmission ( $submission )
$submission Submission

setUser() 공개 메소드

Set the import/export user.
public setUser ( $user )
$user User

프로퍼티 상세

$_context 공개적으로 프로퍼티

The current import/export context
public $_context

$_fileDBIds 공개적으로 프로퍼티

Connection between the file and revision IDs from the XML import file and the DB file IDs
public $_fileDBIds

$_processedObjectsIds 공개적으로 프로퍼티

The processed import objects IDs
public $_processedObjectsIds

$_submission 공개적으로 프로퍼티

The current import/export submission
public $_submission

$_user 공개적으로 프로퍼티

The current import/export user
public $_user