Property | Type | Description | |
---|---|---|---|
$_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 |
Method | Description | |
---|---|---|
__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. |
public __construct ( $context, $user = null ) | ||
$context | Context | |
$user | User optional |
public addError ( $assocType, $assocId, $errorMsg ) | ||
$assocType | integer ASSOC_TYPE_... | |
$assocId | integer | |
$errorMsg | string |
public addProcessedObjectId ( $assocType, $assocId ) | ||
$assocType | integer ASSOC_TYPE_... | |
$assocId | integer |
public getContext ( ) : Context | ||
return | Context |
public getFileDBId ( $fileId, $revisionId ) : integer | ||
$fileId | integer | |
$revisionId | integer | |
return | integer |
public getFileDBIds ( ) : array | ||
return | array |
public getProcessedObjectsIds ( $assocType ) : array | ||
$assocType | integer ASSOC_TYPE_... | |
return | array | Associative array (assoc object Id => array of errors) |
public getRepresentationNodeName ( ) |
public getSchemaFilename ( ) : string | ||
return | string |
public getSubmission ( ) : Submission | ||
return | Submission |
public getSubmissionNodeName ( ) : string | ||
return | string |
public getSubmissionsNodeName ( ) : string | ||
return | string |
public removeImportedObjects ( $assocType ) | ||
$assocType | integer ASSOC_TYPE_... |
public setContext ( $context ) | ||
$context | Context |
public setFileDBId ( $fileId, $revisionId, $DBId ) | ||
$fileId | integer | |
$revisionId | integer | |
$DBId | integer |
public setFileDBIds ( $fileDBIds ) | ||
$fileDBIds | array |
public setSubmission ( $submission ) | ||
$submission | Submission |
public $_fileDBIds |
public $_processedObjectsIds |