Public Member Functions | |
setVerifyAttributeAccess ($verifyAttributeAccess) | |
setCvsEnclosure ($cvsEnclosure) | |
setCollectionDocument (\DocCollection $collectionDocument) | |
setOutputFilePath ($outputFilePath) | |
setExportStatusId ($exportStatusId) | |
setProfileAccountType ($profileAccountType) | |
getOutputFilePath () | |
setCvsSeparator ($cvsSeparator) | |
setExportDocumentNumericIdentiers ($exportDocumentNumericIdentiers) | |
setExportFiles ($exportFiles) | |
setExportProfil ($exportProfil) | |
setOutputFileEncoding ($outputFileEncding) | |
setOutputFormat ($outputFormat) | |
setUseUserColumnParameter ($useUserColumnParameter) | |
export () | |
setDocumentlist (\DocumentList $documentList) | |
recordStatus ($msg, $endStatus=false) | |
Data Fields | |
const | utf8Encoding = "utf-8" |
const | latinEncoding = "iso8859-15" |
const | csvRawOutputFormat = "I" |
const | csvRawOnlyDataOutputFormat = "R" |
const | csvDisplayValueOutputFormat = "F" |
const | xmlArchiveOutputFormat = "X" |
const | xmlFileOutputFormat = "Y" |
Protected Member Functions | |
addDocumentToExport ($documentId) | |
csvFamilyExport (\DocFam $family) | |
writeFamilies () | |
zipFiles ($directory, array $infos) | |
zipXml ($directory) | |
catXml ($directory) | |
Static Protected Member Functions | |
static | cleanFileName ($fileName) |
Protected Attributes | |
$exportProfil = false | |
$exportFiles = false | |
$exportDocumentNumericIdentiers = false | |
$outputFileEncoding = self::utf8Encoding | |
$useUserColumnParameter = false | |
$outputFormat = self::csvRawOutputFormat | |
$verifyAttributeAccess = false | |
$cvsSeparator = ";" | |
$cvsEnclosure = "" | |
$profileAccountType = ExportDocument::useAclAccountType | |
$outputFilePath = '' | |
$exportStatusId = '' | |
$collectionDocument = null | |
$documentList = null | |
$outHandler = null | |
$moreDocuments = array() | |
$familyData = array() | |
Definition at line 8 of file Class.ExportCollection.php.
|
protected |
Record document relative to family
string | $documentId |
Definition at line 331 of file Class.ExportCollection.php.
|
protected |
concatenate Xml files included in directory into single XML file
string | $directory |
Exception |
Definition at line 622 of file Class.ExportCollection.php.
|
staticprotected |
Replace special character for a file name
string | $fileName |
Definition at line 581 of file Class.ExportCollection.php.
|
protected |
Record family data which are write by writeFamilies
\DocFam | $family |
Definition at line 340 of file Class.ExportCollection.php.
export | ( | ) |
Export Document LIst
Exception |
Definition at line 202 of file Class.ExportCollection.php.
getOutputFilePath | ( | ) |
recordStatus | ( | $msg, | |
$endStatus = false |
|||
) |
Write message to session var. Used by interfaces to see progress
string | $msg | |
bool | $endStatus |
Definition at line 307 of file Class.ExportCollection.php.
setCollectionDocument | ( | \DocCollection | $collectionDocument | ) |
Use document collection (folder or searcch) to export documents
\DocCollection | $collectionDocument |
Definition at line 77 of file Class.ExportCollection.php.
setCvsEnclosure | ( | $cvsEnclosure | ) |
string | $cvsEnclosure |
Definition at line 68 of file Class.ExportCollection.php.
setCvsSeparator | ( | $cvsSeparator | ) |
Set CSV separator character
string | $cvsSeparator |
Exception |
Definition at line 122 of file Class.ExportCollection.php.
setDocumentlist | ( | \DocumentList | $documentList | ) |
Set documentList to export
\DocumentList | $documentList |
Definition at line 231 of file Class.ExportCollection.php.
setExportDocumentNumericIdentiers | ( | $exportDocumentNumericIdentiers | ) |
Only in csv, and no profil, export numeric identifier if no logical name Else identifier is not exported
boolean | $exportDocumentNumericIdentiers |
Definition at line 134 of file Class.ExportCollection.php.
setExportFiles | ( | $exportFiles | ) |
Indicate if export also attached files
boolean | $exportFiles |
Definition at line 142 of file Class.ExportCollection.php.
setExportProfil | ( | $exportProfil | ) |
Indicate if Profile data must be exported also
boolean | $exportProfil |
Definition at line 150 of file Class.ExportCollection.php.
setExportStatusId | ( | $exportStatusId | ) |
Set identifier key to write status
string | $exportStatusId |
Definition at line 96 of file Class.ExportCollection.php.
setOutputFileEncoding | ( | $outputFileEncding | ) |
Set encoding format default is UTF-8
string | $outputFileEncding |
Exception |
Definition at line 159 of file Class.ExportCollection.php.
setOutputFilePath | ( | $outputFilePath | ) |
File to record result of export (must be writable) The file will be overwrite if exists
string | $outputFilePath |
Definition at line 87 of file Class.ExportCollection.php.
setOutputFormat | ( | $outputFormat | ) |
Indicate file output format
string | $outputFormat |
Exception |
Definition at line 175 of file Class.ExportCollection.php.
setProfileAccountType | ( | $profileAccountType | ) |
Type of acl reference when export profile
string | $profileAccountType |
Definition at line 104 of file Class.ExportCollection.php.
setUseUserColumnParameter | ( | $useUserColumnParameter | ) |
Only for csv mode. Set true if need to export only column set by applicative parameter "FREEDOM_EXPORTCOLS"
boolean | $useUserColumnParameter |
Definition at line 193 of file Class.ExportCollection.php.
setVerifyAttributeAccess | ( | $verifyAttributeAccess | ) |
If true, attribute with "I" visibility are not returned
boolean | $verifyAttributeAccess |
Definition at line 61 of file Class.ExportCollection.php.
|
protected |
write family data
Definition at line 477 of file Class.ExportCollection.php.
|
protected |
Definition at line 509 of file Class.ExportCollection.php.
|
protected |
zip Xml files included in directory
string | $directory |
Exception |
Definition at line 605 of file Class.ExportCollection.php.
|
protected |
Definition at line 46 of file Class.ExportCollection.php.
|
protected |
Definition at line 35 of file Class.ExportCollection.php.
|
protected |
Definition at line 34 of file Class.ExportCollection.php.
|
protected |
Definition at line 50 of file Class.ExportCollection.php.
|
protected |
Definition at line 17 of file Class.ExportCollection.php.
|
protected |
Definition at line 15 of file Class.ExportCollection.php.
|
protected |
Definition at line 13 of file Class.ExportCollection.php.
|
protected |
Definition at line 42 of file Class.ExportCollection.php.
|
protected |
Definition at line 56 of file Class.ExportCollection.php.
|
protected |
Definition at line 55 of file Class.ExportCollection.php.
|
protected |
Definition at line 54 of file Class.ExportCollection.php.
|
protected |
Definition at line 21 of file Class.ExportCollection.php.
|
protected |
Definition at line 38 of file Class.ExportCollection.php.
|
protected |
Definition at line 31 of file Class.ExportCollection.php.
|
protected |
Definition at line 36 of file Class.ExportCollection.php.
|
protected |
Definition at line 23 of file Class.ExportCollection.php.
|
protected |
Definition at line 32 of file Class.ExportCollection.php.
const csvDisplayValueOutputFormat = "F" |
Definition at line 27 of file Class.ExportCollection.php.
const csvRawOnlyDataOutputFormat = "R" |
Definition at line 26 of file Class.ExportCollection.php.
const csvRawOutputFormat = "I" |
Definition at line 25 of file Class.ExportCollection.php.
const latinEncoding = "iso8859-15" |
Definition at line 20 of file Class.ExportCollection.php.
const utf8Encoding = "utf-8" |
Definition at line 19 of file Class.ExportCollection.php.
const xmlArchiveOutputFormat = "X" |
Definition at line 28 of file Class.ExportCollection.php.
const xmlFileOutputFormat = "Y" |
Definition at line 29 of file Class.ExportCollection.php.