// Adds the regular item
$LL = $this->includeLL();
// "Versioning" element added:
- $url = \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('version') . 'cm1/index.php?table=' . rawurlencode($table) . '&uid=' . $uid;
- $localItems[] = $backRef->linkItem($GLOBALS['LANG']->getLLL('title', $LL), $backRef->excludeIcon('<img src="' . $backRef->backPath . \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('version') . 'cm1/cm_icon.gif" width="15" height="12" border="0" align="top" alt="" />'), $backRef->urlRefForCM($url), 1);
+ $url = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('version') . 'cm1/index.php?table=' . rawurlencode($table) . '&uid=' . $uid;
+ $localItems[] = $backRef->linkItem($GLOBALS['LANG']->getLLL('title', $LL), $backRef->excludeIcon('<img src="' . $backRef->backPath . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('version') . 'cm1/cm_icon.gif" width="15" height="12" border="0" align="top" alt="" />'), $backRef->urlRefForCM($url), 1);
// "Send to review" element added:
/*
$url = t3lib_extMgm::extRelPath('version').'cm1/index.php?id='.($table=='pages'?$uid:$backRef->rec['pid']).'&table='.rawurlencode($table).'&uid='.$uid.'&sendToReview=1';
$elementName = $id ? $table . ':' . $id : $table;
if (is_array($workspaceRec)) {
// Get the new stage title from workspaces library, if workspaces extension is installed
- if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('workspaces')) {
+ if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('workspaces')) {
$stageService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Workspaces\\Service\\StagesService');
$newStage = $stageService->getStageTitle((int) $stageId);
} else {
'###USER_USERNAME###' => $tcemainObj->BE_USER->user['username']
);
// add marker for preview links if workspace extension is loaded
- if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('workspaces')) {
+ if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('workspaces')) {
$this->workspaceService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_Workspaces_Service_Workspaces');
// only generate the link if the marker is in the template - prevents database from getting to much entries
if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($emailConfig['message'], 'LLL:')) {
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/Hook/PreviewHook.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Hook/PreviewHook.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/Hook/PreviewHook.php';
?>
\ No newline at end of file
*/
public function execute() {
// Load the workspace library class and instatiate it
- require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'ws/class.wslib.php';
+ require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'ws/class.wslib.php';
$autopubObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Version\\Utility\\WorkspacesUtility');
// Publish the workspaces that need to be
$autopubObj->autoPublishWorkspaces();
$opt[] = '<option value="' . htmlspecialchars(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $vRow['uid']))) . '"' . ($id == $vRow['uid'] ? ' selected="selected"' : '') . '>' . htmlspecialchars($label) . '</option>';
}
// Add management link:
- $management = '<input type="button" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.mgm', TRUE) . '" onclick="window.location.href=\'' . htmlspecialchars(($GLOBALS['BACK_PATH'] . \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('version') . 'cm1/index.php?table=pages&uid=' . $onlineId)) . '\';" />';
+ $management = '<input type="button" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.mgm', TRUE) . '" onclick="window.location.href=\'' . htmlspecialchars(($GLOBALS['BACK_PATH'] . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('version') . 'cm1/index.php?table=pages&uid=' . $onlineId)) . '\';" />';
// Create onchange handler:
$onChange = 'window.location.href=this.options[this.selectedIndex].value;';
// Controls:
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/ClickMenu/VersionClickMenu.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/ClickMenu/VersionClickMenu.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/ClickMenu/VersionClickMenu.php';
?>
\ No newline at end of file
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/View/VersionView.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/View/VersionView.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/View/VersionView.php';
?>
\ No newline at end of file
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/Hook/IconUtilityHook.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Hook/IconUtilityHook.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/Hook/IconUtilityHook.php';
?>
\ No newline at end of file
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/Hook/DataHandlerHook.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Hook/DataHandlerHook.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/Hook/DataHandlerHook.php';
?>
\ No newline at end of file
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/DataHandler/CommandMap.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/DataHandler/CommandMap.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/DataHandler/CommandMap.php';
?>
\ No newline at end of file
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/Controller/VersionModuleController.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Controller/VersionModuleController.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/Controller/VersionModuleController.php';
// Make instance:
$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Version\\Controller\\VersionModuleController');
$SOBE->init();
<?php
// DO NOT CHANGE THIS FILE! It is automatically generated by extdeveval::buildAutoloadRegistry.
// This file was generated on 2010-11-13 17:45
-$extensionPath = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version');
+$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version');
return array(
'tx_version_tcemain_commandmap' => $extensionPath . 'class.tx_version_tcemain_commandmap.php',
'tx_version_cm1' => $extensionPath . 'cm1/index.php',
die('Access denied.');
}
// register the hook to actually do the work within TCEmain
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['version'] = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version', 'class.tx_version_tcemain.php:&TYPO3\\CMS\\Version\\Hook\\DataHandlerHook');
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass']['version'] = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version', 'class.tx_version_tcemain.php:&TYPO3\\CMS\\Version\\Hook\\DataHandlerHook');
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['version'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version', 'class.tx_version_tcemain.php:&TYPO3\\CMS\\Version\\Hook\\DataHandlerHook');
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass']['version'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version', 'class.tx_version_tcemain.php:&TYPO3\\CMS\\Version\\Hook\\DataHandlerHook');
// Register hook for overriding the icon status overlay
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_iconworks.php']['overrideIconOverlay']['version'] = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version', 'class.tx_version_iconworks.php:&TYPO3\\CMS\\Version\\Hook\\IconUtilityHook');
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_iconworks.php']['overrideIconOverlay']['version'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version', 'class.tx_version_iconworks.php:&TYPO3\\CMS\\Version\\Hook\\IconUtilityHook');
// Register hook to check for the preview mode in the FE
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['connectToDB']['version_preview'] = 'EXT:version/Classes/Preview.php:TYPO3\\CMS\\Version\\Hook\\PreviewHook->checkForPreview';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['postBeUser']['version_preview'] = 'EXT:version/Classes/Preview.php:TYPO3\\CMS\\Version\\Hook\\PreviewHook->initializePreviewUser';
if (TYPO3_MODE == 'BE') {
// add default notification options to every page
- \TYPO3\CMS\Core\Extension\ExtensionManager::addPageTSconfig('
+ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSconfig('
tx_version.workspaces.stageNotificationEmail.subject = LLL:EXT:version/Resources/Private/Language/locallang_emails.xml:subject
tx_version.workspaces.stageNotificationEmail.message = LLL:EXT:version/Resources/Private/Language/locallang_emails.xml:message
# tx_version.workspaces.stageNotificationEmail.additionalHeaders =
die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
- if (!\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('workspaces')) {
+ if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('workspaces')) {
$GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
'name' => 'TYPO3\\CMS\\Version\\ClickMenu\\VersionClickMenu',
- 'path' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'class.tx_version_cm1.php'
+ 'path' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_version_cm1.php'
);
}
}
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/Task/AutoPublishTask.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Task/AutoPublishTask.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/Task/AutoPublishTask.php';
?>
\ No newline at end of file
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/Utility/WorkspacesUtility.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Utility/WorkspacesUtility.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/Utility/WorkspacesUtility.php';
?>
\ No newline at end of file
* and will be removed by 7.0. The class was renamed and is now located at:
* typo3/sysext/version/Classes/Controller/WorkspaceModuleController.php
*/
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Controller/WorkspaceModuleController.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('version') . 'Classes/Controller/WorkspaceModuleController.php';
// Make instance:
$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Version\\Controller\\WorkspaceModuleController');
$SOBE->execute();