|
eZ Publish
[4.2]
|
The class eZPackageInstallationHandler does. More...
Inheritance diagram for eZPackageInstallationHandler:Public Member Functions | |
| attribute ($name) | |
| attributes () | |
| commitStep ($package, $http, $step, &$persistentData, $tpl) | |
| commitStepMethodMap () | |
| eZPackageInstallationHandler ($package, $type, $installItem, $name=null, $steps=null) | |
| finalize ($package, $http, &$persistentData) | |
| generateStepMap ($package, &$persistentData) | |
| hasAttribute ($name) | |
| initializeStep ($package, $http, $step, &$persistentData, $tpl, $module) | |
| initializeStepMethodMap () | |
| packageType ($package, &$persistentData) | |
| reset () | |
| & | stepMap () |
| stepTemplate ($package, $installItem, $step) | |
| validateAndAdvanceStep ($package, $http, $currentStepID, &$stepMap, &$persistentData, &$errorList) | |
| validateStep ($package, $http, $currentStepID, &$stepMap, &$persistentData, &$errorList) | |
| validateStepMethodMap () | |
Static Public Member Functions | |
| static | instance ($package, $handlerName, $installItem) |
Private Member Functions | |
| customInstallHandlerInfo ($package, $installItem) | |
| rootDOMNode () | |
The class eZPackageInstallationHandler does.
Definition at line 41 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::attribute | ( | $ | name | ) |
Definition at line 126 of file ezpackageinstallationhandler.php.
Referenced by generateStepMap(), and stepTemplate().
| eZPackageInstallationHandler::attributes | ( | ) |
Definition at line 116 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::commitStep | ( | $ | package, |
| $ | http, | ||
| $ | step, | ||
| &$ | persistentData, | ||
| $ | tpl | ||
| ) |
This is called after a step has validated it's information. It can be used to put values in the $persistentData variable for later retrieval.
Definition at line 238 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::commitStepMethodMap | ( | ) |
Definition at line 147 of file ezpackageinstallationhandler.php.
Referenced by commitStep().
| eZPackageInstallationHandler::customInstallHandlerInfo | ( | $ | package, |
| $ | installItem | ||
| ) | [private] |
Support for custom installers (stored within the package)
Reimplemented in eZInstallScriptPackageInstaller.
Definition at line 381 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::eZPackageInstallationHandler | ( | $ | package, |
| $ | type, | ||
| $ | installItem, | ||
| $ | name = null, |
||
| $ | steps = null |
||
| ) |
Constructor
Definition at line 46 of file ezpackageinstallationhandler.php.
Referenced by eZContentObjectPackageInstaller\eZContentObjectPackageInstaller().
| eZPackageInstallationHandler::finalize | ( | $ | package, |
| $ | http, | ||
| &$ | persistentData | ||
| ) |
Finalizes the creation process with the gathered information. This is usually the function that creates the package and adds the proper elements.
Reimplemented in eZContentObjectPackageInstaller.
Definition at line 264 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::generateStepMap | ( | $ | package, |
| &$ | persistentData | ||
| ) |
Will go over the steps and make sure that:
It will also make sure that steps can be looked up by their ID.
Definition at line 67 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::hasAttribute | ( | $ | name | ) |
Definition at line 121 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::initializeStep | ( | $ | package, |
| $ | http, | ||
| $ | step, | ||
| &$ | persistentData, | ||
| $ | tpl, | ||
| $ | module | ||
| ) |
This is called the first time the step is entered (ie. not on validations) and can be used to fill in values in the $persistentData variable for use in the template or later retrieval.
Definition at line 179 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::initializeStepMethodMap | ( | ) |
Definition at line 137 of file ezpackageinstallationhandler.php.
Referenced by initializeStep().
| static eZPackageInstallationHandler::instance | ( | $ | package, |
| $ | handlerName, | ||
| $ | installItem | ||
| ) | [static] |
| handler | name' |
| install | Item |
Definition at line 274 of file ezpackageinstallationhandler.php.
Referenced by eZContentObjectPackageInstaller\initializeSiteAccess(), and eZContentObjectPackageInstaller\initializeTopNodes().
| eZPackageInstallationHandler::packageType | ( | $ | package, |
| &$ | persistentData | ||
| ) |
false. If the creator should have a specific package type this function should be reimplemented. See eZPackage::typeList() for more information on available types.Reimplemented in eZContentObjectPackageInstaller.
Definition at line 335 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::reset | ( | ) |
Used to reset the instalation handler if needed
Definition at line 254 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::rootDOMNode | ( | ) | [private] |
Get root dom node of current install item.
Definition at line 348 of file ezpackageinstallationhandler.php.
Referenced by eZContentObjectPackageInstaller\initializeSiteAccess(), and eZContentObjectPackageInstaller\initializeTopNodes().
| & eZPackageInstallationHandler::stepMap | ( | ) |
Definition at line 156 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::stepTemplate | ( | $ | package, |
| $ | installItem, | ||
| $ | step | ||
| ) |
Reimplemented in eZInstallScriptPackageInstaller.
Definition at line 161 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::validateAndAdvanceStep | ( | $ | package, |
| $ | http, | ||
| $ | currentStepID, | ||
| &$ | stepMap, | ||
| &$ | persistentData, | ||
| &$ | errorList | ||
| ) |
Definition at line 220 of file ezpackageinstallationhandler.php.
Referenced by validateStep().
| eZPackageInstallationHandler::validateStep | ( | $ | package, |
| $ | http, | ||
| $ | currentStepID, | ||
| &$ | stepMap, | ||
| &$ | persistentData, | ||
| &$ | errorList | ||
| ) |
This is called after a step is finished. Reimplement this function to validate the step values and give back errors.
false if the next step should not be fetched (ie. errors) or true if the all is OK and the next step should be fetched. It is also possible to return a step identifier, in which case this will be the next step. Definition at line 200 of file ezpackageinstallationhandler.php.
| eZPackageInstallationHandler::validateStepMethodMap | ( | ) |
Definition at line 142 of file ezpackageinstallationhandler.php.
Referenced by validateAndAdvanceStep().