TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Controller\Action\Ajax\UninstallExtension Class Reference
Inheritance diagram for TYPO3\CMS\Install\Controller\Action\Ajax\UninstallExtension:
TYPO3\CMS\Install\Controller\Action\Ajax\AbstractAjaxAction TYPO3\CMS\Install\Controller\Action\AbstractAction TYPO3\CMS\Install\Controller\Action\ActionInterface

Protected Member Functions

 executeAction ()
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 initializeHandle ()
 
 executeAction ()
 
 isDbalEnabled ()
 
 getContext ()
 
 loadExtLocalconfDatabaseAndExtTables ()
 
 getHashedPassword ($password)
 

Additional Inherited Members

- Public Member Functions inherited from TYPO3\CMS\Install\Controller\Action\Ajax\AbstractAjaxAction
 handle ()
 
- Public Member Functions inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 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=[])
 
- Protected Attributes inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 $objectManager = null
 
 $view = null
 
 $controller = ''
 
 $action = ''
 
 $token = ''
 
 $postValues = []
 
 $lastError = []
 
 $messages = []
 

Detailed Description

Uninstall Extensions

Used for uninstalling an extension (or multiple) via an ajax request.

If you use this class you have to take care of clearing the cache afterwards, it's not done here because for fully clearing the cache you need a reload to take care of changed cache configurations due to no longer installed extensions. Use the clearCache ajax action afterwards.

Definition at line 30 of file UninstallExtension.php.

Member Function Documentation

◆ executeAction()

TYPO3\CMS\Install\Controller\Action\Ajax\UninstallExtension::executeAction ( )
protected

Uninstall one or multiple extensions Extension keys are read from get vars, more than one extension has to be comma separated

Returns
string "OK" on success, the error message otherwise

Definition at line 38 of file UninstallExtension.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GET(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded(), TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\unloadExtension().