wCMF
3.6
|
Public Member Functions | |
initialize (&$request, &$response) | |
getWorkPackage ($number) | |
getDisplayText ($step) | |
initExport ($oids) | |
exportNodes ($oids) | |
finishExport ($oids) | |
endTags ($fileHandle, $curIndent, $documentInfo) | |
writeNode ($fileHandle, $oid, $depth, $documentInfo) | |
formatValue ($value) | |
Public Member Functions inherited from BatchController | |
initialize (&$request, &$response) | |
addWorkPackage ($name, $size, $oids, $callback, $args=null) | |
getWorkPackage ($number) | |
getNumberOfSteps () | |
getDisplayText ($step) | |
getSummaryText () | |
processPart () | |
Public Member Functions inherited from LongTaskController | |
initialize (&$request, &$response) | |
hasView () | |
executeKernel () | |
getStepNumber () | |
getNumberOfSteps () | |
getDisplayText ($step) | |
getSummaryText () | |
initializeTask () | |
processPart () | |
Public Member Functions inherited from Controller | |
Controller (&$delegate) | |
initialize (&$request, &$response) | |
validate () | |
hasView () | |
execute () | |
executeKernel () | |
getErrorMsg () | |
setErrorMsg ($msg) | |
appendErrorMsg ($msg) | |
& | getRequest () |
& | getResponse () |
& | getView () |
& | getDelegate () |
getViewTemplate ($controller, $context, $action) | |
getCacheId () | |
assignViewDefaults (&$view) | |
isLocalizedRequest () | |
Public Attributes | |
$ROOT_OIDS = 'XMLExportController.rootoids' | |
$ITERATOR_ID = 'XMLExportController.iteratorid' | |
$DOCUMENT_INFO = 'XMLExportController.documentinfo' | |
$_DOCFILE = "export.xml" | |
$_DOCTYPE = "" | |
$_DTD = "" | |
$_DOCROOTELEMENT = "Root" | |
$_DOCLINEBREAK = "\n" | |
$_DOCINDENT = " " | |
$_NODES_PER_CALL = 10 | |
Public Attributes inherited from BatchController | |
$WORK_PACKAGES_VARNAME = 'BatchController.workPackages' | |
$NUM_STEPS_VARNAME = 'BatchController.numSteps' | |
$_workPackages = array() | |
Public Attributes inherited from LongTaskController | |
$STEP_SESSION_VARNAME = 'LongTaskController.curStep' | |
$ONE_CALL_SESSION_VARNAME = 'LongTaskController.oneCall' | |
$_curStep = 1 | |
Public Attributes inherited from Controller | |
$_request = null | |
$_response = null | |
$_errorMsg = '' | |
$_view = null | |
$_delegate = null | |
XMLExportController exports the content tree into an XML file.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Input actions:
Output actions:
[in] | docfile | The name of the file to write to (path relative to script main location), default: 'export.xml' |
[in] | doctype | The document type (will be written into XML header), default: '' |
[in] | dtd | The dtd (will be written into XML header), default: '' |
[in] | docrootelement | The root element of the document (use this to enclose different root types if necessary), default: 'Root' |
[in] | doclinebreak | The linebreak character(s) to use, default: ' ' |
[in] | docindent | The indent character(s) to use, default: ' ' |
[in] | nodes_per_call | The number of nodes to process in one call, default: 10 |
Definition at line 47 of file class.XMLExportController.php.
XMLExportController::initialize | ( | & | $request, |
& | $response | ||
) |
Definition at line 70 of file class.XMLExportController.php.
References $_DOCFILE, $_DOCINDENT, $_DOCLINEBREAK, $_DOCROOTELEMENT, $_DOCTYPE, $_DTD, $_NODES_PER_CALL, and SessionData\getInstance().
XMLExportController::getWorkPackage | ( | $number | ) |
Definition at line 98 of file class.XMLExportController.php.
References Message\get().
XMLExportController::getDisplayText | ( | $step | ) |
Definition at line 108 of file class.XMLExportController.php.
XMLExportController::initExport | ( | $oids | ) |
Initialize the XML export (oids parameter will be ignored)
oids | The oids to process |
Definition at line 117 of file class.XMLExportController.php.
References BatchController\addWorkPackage(), FileUtil\fputsUnicode(), Message\get(), PersistenceFacade\getInstance(), InifileParser\getInstance(), and SessionData\getInstance().
XMLExportController::exportNodes | ( | $oids | ) |
Serialize all Nodes with given oids to XML
oids | The oids to process |
Definition at line 158 of file class.XMLExportController.php.
References BatchController\addWorkPackage(), Message\get(), SessionData\getInstance(), PersistentIterator\load(), and writeNode().
XMLExportController::finishExport | ( | $oids | ) |
Finish the XML export (oids parameter will be ignored)
oids | The oids to process |
Definition at line 240 of file class.XMLExportController.php.
References endTags(), FileUtil\fputsUnicode(), and SessionData\getInstance().
XMLExportController::endTags | ( | $fileHandle, | |
$curIndent, | |||
$documentInfo | |||
) |
Ends all tags up to $curIndent level
fileHandle | The file handle to write to |
curIndent | The depth of the node in the tree |
documentInfo | An assoziative array (see DOCUMENT_INFO) |
Definition at line 264 of file class.XMLExportController.php.
References FileUtil\fputsUnicode().
Referenced by finishExport(), and writeNode().
XMLExportController::writeNode | ( | $fileHandle, | |
$oid, | |||
$depth, | |||
$documentInfo | |||
) |
Serialize a Node to XML
fileHandle | The file handle to write to |
oid | The oid of the node |
depth | The depth of the node in the tree |
documentInfo | An assoziative array (see DOCUMENT_INFO) |
Definition at line 286 of file class.XMLExportController.php.
References BUILDDEPTH_SINGLE, DATATYPE_ATTRIBUTE, DATATYPE_ELEMENT, endTags(), formatValue(), FileUtil\fputsUnicode(), and PersistenceFacade\getInstance().
Referenced by exportNodes().
XMLExportController::formatValue | ( | $value | ) |
Format a value for XML output
value | The value to format |
Definition at line 348 of file class.XMLExportController.php.
Referenced by writeNode().
XMLExportController::$ROOT_OIDS = 'XMLExportController.rootoids' |
Definition at line 50 of file class.XMLExportController.php.
XMLExportController::$ITERATOR_ID = 'XMLExportController.iteratorid' |
Definition at line 51 of file class.XMLExportController.php.
XMLExportController::$DOCUMENT_INFO = 'XMLExportController.documentinfo' |
Definition at line 56 of file class.XMLExportController.php.
XMLExportController::$_DOCFILE = "export.xml" |
Definition at line 59 of file class.XMLExportController.php.
Referenced by initialize().
XMLExportController::$_DOCTYPE = "" |
Definition at line 60 of file class.XMLExportController.php.
Referenced by initialize().
XMLExportController::$_DTD = "" |
Definition at line 61 of file class.XMLExportController.php.
Referenced by initialize().
XMLExportController::$_DOCROOTELEMENT = "Root" |
Definition at line 62 of file class.XMLExportController.php.
Referenced by initialize().
XMLExportController::$_DOCLINEBREAK = "\n" |
Definition at line 63 of file class.XMLExportController.php.
Referenced by initialize().
XMLExportController::$_DOCINDENT = " " |
Definition at line 64 of file class.XMLExportController.php.
Referenced by initialize().
XMLExportController::$_NODES_PER_CALL = 10 |
Definition at line 65 of file class.XMLExportController.php.
Referenced by initialize().