![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
logError () | |
![]() | |
handle () | |
![]() | |
injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) | |
injectView (\TYPO3\CMS\Install\View\FailsafeView $view) | |
handle () | |
setToken ($token) | |
setController ($controller) | |
setAction ($action) | |
setPostValues (array $postValues) | |
setLastError (array $lastError) | |
setMessages (array $messages=array()) | |
Protected Member Functions | |
executeAction () | |
deleteProtocolFile () | |
getExtensionsToLoad () | |
getExtensionsToExclude () | |
tryToLoadExtLocalconfAndExtTablesOfExtensions (array $extensions) | |
loadExtTablesForExtension ($extensionKey, array $extension) | |
loadExtLocalconfForExtension ($extensionKey, array $extension) | |
writeCurrentExtensionToFile ($extensionKey) | |
removeCurrentExtensionFromFile ($extensionKey) | |
Protected Attributes | |
$protocolFile = '' | |
$errorProtocolFile = '' | |
$logError = false | |
Load Extensions
The idea is to load ext_localconf and ext_tables of extensions one-by-one until one of those files throws a fatal. The javascript will then recognise the fatal and initiates another run that will leave out the fataling extension to check the rest.
Definition at line 28 of file ExtensionCompatibilityTester.php.
__construct | ( | ) |
Construct this class set default protocol file location
Definition at line 55 of file ExtensionCompatibilityTester.php.
|
protected |
Delete the protocol files if they exist
Definition at line 84 of file ExtensionCompatibilityTester.php.
Referenced by ExtensionCompatibilityTester\executeAction().
|
protected |
Main entry point for checking extensions to load, setting up the checks (deleting protocol), and returning OK if process run through without errors
Definition at line 68 of file ExtensionCompatibilityTester.php.
References GeneralUtility\_GET(), ExtensionCompatibilityTester\deleteProtocolFile(), ExtensionCompatibilityTester\getExtensionsToLoad(), and ExtensionCompatibilityTester\tryToLoadExtLocalconfAndExtTablesOfExtensions().
|
protected |
Gets extensions already known to be incompatible This class is recursively called, and this method is needed to not run into the same errors twice.
Definition at line 120 of file ExtensionCompatibilityTester.php.
References GeneralUtility\getUrl(), and GeneralUtility\trimExplode().
Referenced by ExtensionCompatibilityTester\getExtensionsToLoad().
|
protected |
Get extensions that should be loaded. Fills the TYPO3_LOADED_EXT array. Only considers local extensions
Definition at line 101 of file ExtensionCompatibilityTester.php.
References $GLOBALS, and ExtensionCompatibilityTester\getExtensionsToExclude().
Referenced by ExtensionCompatibilityTester\executeAction().
|
protected |
Loads ext_localconf.php for a single extension. Method is a modified copy of the original bootstrap method.
string | $extensionKey | |
\ArrayAccess | $extension |
Definition at line 184 of file ExtensionCompatibilityTester.php.
References $_EXTCONF, and $GLOBALS.
Referenced by ExtensionCompatibilityTester\tryToLoadExtLocalconfAndExtTablesOfExtensions().
|
protected |
Loads ext_tables.php for a single extension. Method is a modified copy of the original bootstrap method.
string | $extensionKey | |
\ArrayAccess | $extension |
Definition at line 157 of file ExtensionCompatibilityTester.php.
References $_EXTCONF, $GLOBALS, and ExtensionManagementUtility\loadNewTcaColumnsConfigFiles().
Referenced by ExtensionCompatibilityTester\tryToLoadExtLocalconfAndExtTablesOfExtensions().
logError | ( | ) |
Log last occurred error for logging.
Definition at line 236 of file ExtensionCompatibilityTester.php.
References AbstractAction\$lastError, GeneralUtility\getUrl(), and GeneralUtility\writeFile().
Referenced by ExtensionCompatibilityTester\removeCurrentExtensionFromFile(), and ExtensionCompatibilityTester\writeCurrentExtensionToFile().
|
protected |
Removes $extensionKey from protocol file.
string | $extensionKey |
Definition at line 221 of file ExtensionCompatibilityTester.php.
References GeneralUtility\getUrl(), ExtensionCompatibilityTester\logError(), GeneralUtility\trimExplode(), and GeneralUtility\writeFile().
Referenced by ExtensionCompatibilityTester\tryToLoadExtLocalconfAndExtTablesOfExtensions().
|
protected |
Tries to load the ext_localconf and ext_tables files of all non-core extensions Writes current extension name to file and deletes it again when inclusion was successful.
array | $extensions |
Definition at line 134 of file ExtensionCompatibilityTester.php.
References ExtensionCompatibilityTester\loadExtLocalconfForExtension(), ExtensionCompatibilityTester\loadExtTablesForExtension(), ExtensionCompatibilityTester\removeCurrentExtensionFromFile(), and ExtensionCompatibilityTester\writeCurrentExtensionToFile().
Referenced by ExtensionCompatibilityTester\executeAction().
|
protected |
Writes $extensionKey to the protocol file by adding it comma separated at the end of the file.
string | $extensionKey |
Definition at line 207 of file ExtensionCompatibilityTester.php.
References GeneralUtility\getUrl(), ExtensionCompatibilityTester\logError(), GeneralUtility\trimExplode(), and GeneralUtility\writeFile().
Referenced by ExtensionCompatibilityTester\tryToLoadExtLocalconfAndExtTablesOfExtensions().
|
protected |
Definition at line 42 of file ExtensionCompatibilityTester.php.
|
protected |
Definition at line 49 of file ExtensionCompatibilityTester.php.
|
protected |
Definition at line 35 of file ExtensionCompatibilityTester.php.