![]() |
TYPO3
7.6
|
Public Member Functions | |
executeUpdateIfNeeded ($extensionKey) | |
checkUpdateScriptExists ($extensionKey) | |
Protected Member Functions | |
requireUpdateScript ($extensionKey) | |
determineUpdateClassName ($extensionKey) | |
Utility to find and execute class.ext_update.php scripts of extensions
Definition at line 23 of file UpdateScriptUtility.php.
checkUpdateScriptExists | ( | $extensionKey | ) |
Checks if an update class file exists.
Does not check if some update is needed.
string | $extensionKey | Extension key |
Definition at line 78 of file UpdateScriptUtility.php.
References UpdateScriptUtility\determineUpdateClassName(), and GeneralUtility\makeInstance().
|
protected |
Determine the real class name to use
string | $extensionKey |
ExtensionManagerException | If an update script is present but no ext_update class can be loaded |
Definition at line 95 of file UpdateScriptUtility.php.
References GeneralUtility\getFileAbsFileName(), GeneralUtility\getUrl(), and GeneralUtility\writeFileToTypo3tempDir().
Referenced by UpdateScriptUtility\checkUpdateScriptExists(), and UpdateScriptUtility\requireUpdateScript().
executeUpdateIfNeeded | ( | $extensionKey | ) |
Returns true, if ext_update class says it wants to run.
string | $extensionKey | extension key |
Definition at line 31 of file UpdateScriptUtility.php.
References GeneralUtility\makeInstance(), and UpdateScriptUtility\requireUpdateScript().
|
protected |
Require update script. Throws exception if update script does not exist, so checkUpdateScriptExists() should be called before
string | $extensionKey |
ExtensionManagerException |
Definition at line 51 of file UpdateScriptUtility.php.
References UpdateScriptUtility\determineUpdateClassName().
Referenced by UpdateScriptUtility\executeUpdateIfNeeded().