![]() |
![]() |

Public Member Functions | |
| initialize (&$request, &$response) | |
| addWorkPackage ($name, $size, $oids, $callback, $args=null) | |
| getWorkPackage ($number) | |
| getNumberOfSteps () | |
| getDisplayText ($step) | |
| processPart () | |
Data Fields | |
| $WORK_PACKAGES_VARNAME = 'BatchController.workPackages' | |
| $NUM_STEPS_VARNAME = 'BatchController.numSteps' | |
| $_workPackages = array() | |
wCMF - wemove Content Management Framework Copyright (C) 2005-2009 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:
Definition at line 38 of file class.BatchController.php.
| initialize | ( | &$ | request, | |
| &$ | response | |||
| ) |
Reimplemented from LongTaskController.
Reimplemented in BackupController, MySQLBackupController, PageExportController, and XMLExportController.
Definition at line 49 of file class.BatchController.php.
References addWorkPackage(), PersistenceFacade::getInstance(), SessionData::getInstance(), getWorkPackage(), and WCMFException::throwEx().

| addWorkPackage | ( | $ | name, | |
| $ | size, | |||
| $ | oids, | |||
| $ | callback, | |||
| $ | args = null | |||
| ) |
Add a work package to session. This package will be devided into sub packages of given size.
| name | Display name of the package (will be supplemented by startNumber-endNumber, e.g. '1-7', '8-14', ...) | |
| size | Size of one sub package. This defines how many of the oids will be passed to the callback in one call (e.g. '7' means pass 7 oids per call) | |
| oids | An array of oids (or other application specific package identifiers) that will be distributed into sub packages of given size |
| callback | The name of method to call for this package type |
| args | Assoziative array of additional callback arguments (application specific) [default: null] |
Definition at line 99 of file class.BatchController.php.
References SessionData::getInstance(), and WCMFException::throwEx().
Referenced by XMLExportController::exportNodes(), XMLExportController::initExport(), and initialize().

| getWorkPackage | ( | $ | number | ) |
Get definitions of work packages.
| number | The number of the work package (first number is 0, number is incremented on every call) |
Reimplemented in BackupController, SimpleBatchController, and XMLExportController.
Definition at line 153 of file class.BatchController.php.
References WCMFException::throwEx().
Referenced by initialize().

| getNumberOfSteps | ( | ) |
Reimplemented from LongTaskController.
Definition at line 160 of file class.BatchController.php.
References SessionData::getInstance().

| getDisplayText | ( | $ | step | ) |
Reimplemented from LongTaskController.
Reimplemented in XMLExportController.
Definition at line 168 of file class.BatchController.php.
References Message::get().

| processPart | ( | ) |
Reimplemented from LongTaskController.
Reimplemented in PageExportController.
Definition at line 175 of file class.BatchController.php.
References LongTaskController::getStepNumber(), and WCMFException::throwEx().

| $WORK_PACKAGES_VARNAME = 'BatchController.workPackages' |
Definition at line 41 of file class.BatchController.php.
| $NUM_STEPS_VARNAME = 'BatchController.numSteps' |
Definition at line 42 of file class.BatchController.php.
| $_workPackages = array() |
Definition at line 44 of file class.BatchController.php.
|
This page generated via doxygen 1.5.8 Mon Mar 30 01:58:42 2009. Copyright © 2009 wemove digital solutions GmbH. |
|