[TASK] Update t3lib mentions
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Apr 2013 17:49:44 +0000 (19:49 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Apr 2013 18:26:29 +0000 (20:26 +0200)
Some core parts still mention t3lib classes after namespaces,
mostly in comments.

Related: #47138
Releases: 6.1

Change-Id: I990f50520609dc589ea52e945f838bfe72394aae
Reviewed-on: https://review.typo3.org/19806
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/workspaces/Classes/ExtDirect/WorkspaceSelectorToolbarItem.php
typo3/sysext/workspaces/Classes/Hook/BackendUtilityHook.php
typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
typo3/sysext/workspaces/Classes/Service/GridDataService.php
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php
typo3/sysext/workspaces/ext_localconf.php

index 547c626..8930ef3 100644 (file)
@@ -61,7 +61,7 @@ class WorkspaceSelectorToolbarItem implements \TYPO3\CMS\Backend\Toolbar\Toolbar
                $this->backendReference = $backendReference;
                $this->changeWorkspace = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('changeWorkspace');
                $this->changeWorkspacePreview = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('changeWorkspacePreview');
-               $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_pageRenderer');
+               $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Page\\PageRenderer');
                $this->backendReference->addJavaScript('TYPO3.Workspaces = { workspaceTitle : \'' . addslashes(\Tx_Workspaces_Service_Workspaces::getWorkspaceTitle($GLOBALS['BE_USER']->workspace)) . '\'};
 ');
        }
@@ -73,7 +73,7 @@ class WorkspaceSelectorToolbarItem implements \TYPO3\CMS\Backend\Toolbar\Toolbar
         * @return boolean  TRUE if user has access, FALSE if not
         */
        public function checkAccess() {
-               if (\t3lib_extMgm::isLoaded('workspaces')) {
+               if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('workspaces')) {
                        if ($this->checkAccess == NULL) {
                                $availableWorkspaces = \Tx_Workspaces_Service_Workspaces::getAvailableWorkspaces();
                                if (count($availableWorkspaces) > 0) {
index d70df5e..b832454 100644 (file)
@@ -43,7 +43,7 @@ class BackendUtilityHook implements \TYPO3\CMS\Core\SingletonInterface {
        }
 
        /**
-        * Hooks into the TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick and redirects to the workspace preview
+        * Hooks into the \TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick and redirects to the workspace preview
         * only if we're in a workspace and if the frontend-preview is disabled.
         *
         * @param $pageUid
index 2766a90..19b095b 100644 (file)
@@ -124,8 +124,6 @@ class DataHandlerHook {
        }
 
        /**
-        * Gets a new instance of t3lib_TCEmain.
-        *
         * @return \TYPO3\CMS\Core\DataHandling\DataHandler
         */
        protected function getTceMain() {
index 6e783b4..87401b0 100644 (file)
@@ -510,7 +510,6 @@ class GridDataService {
         * Gets all available system languages.
         *
         * @return array
-        * @see \TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getSystemLanguages
         */
        public function getSystemLanguages() {
                if (!isset($this->systemLanguages)) {
index 9c7adfa..2c8784a 100644 (file)
@@ -176,7 +176,7 @@ class WorkspaceService implements \TYPO3\CMS\Core\SingletonInterface {
         * @param       integer         Stage filter: -99 means no filtering, otherwise it will be used to select only elements with that stage. For publishing, that would be "10
         * @param       integer         Page id: Live page for which to find versions in workspace!
         * @param       integer         Recursion Level - select versions recursive - parameter is only relevant if $pageId != -1
-        * @param       string          How to collect records for "listing" or "modify" these tables. Support the permissions of each type of record (@see t3lib_userAuthGroup::check).
+        * @param       string          How to collect records for "listing" or "modify" these tables. Support the permissions of each type of record, see \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::check.
         * @param       integer         $language Select specific language only
         * @return      array           Array of all records uids etc. First key is table name, second key incremental integer. Records are associative arrays with uid and t3ver_oidfields. The pid of the online record is found as "livepid" the pid of the offline record is found in "wspid
         */
index 8a1bc58..e346ae6 100644 (file)
@@ -22,14 +22,13 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['proc
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['viewOnClickClass']['workspaces'] = 'EXT:workspaces/Classes/Service/Befunc.php:TYPO3\\CMS\\Workspaces\\Hook\\BackendUtilityHook';
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe']['workspaces'] = 'EXT:workspaces/Classes/Service/Fehooks.php:TYPO3\\CMS\\Workspaces\\Hook\\TypoScriptFrontendControllerHook->hook_eofe';
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck']['workspaces'] = 'EXT:workspaces/Classes/Service/Befunc.php:TYPO3\\CMS\\Workspaces\\Hook\\BackendUtilityHook->makeEditForm_accessCheck';
+
 // Register workspaces cache if not already done in localconf.php or a previously loaded extension.
-// We do not set frontend and backend: The cache manager uses t3lib_Cache\Frontend\VariableFrontend
-// as frontend and t3lib_cache_backend_DbBackend as backend by default if not set otherwise. This
-// is perfectly fine for the workspaces_cache.
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['workspaces_cache'])) {
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['workspaces_cache'] = array();
 }
+
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.workspaces.considerReferences = 1');
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/tree/pagetree/class.t3lib_tree_pagetree_dataprovider.php']['postProcessCollections'][] = 'EXT:workspaces/Classes/ExtDirect/PagetreeCollectionsProcessor.php:TYPO3\\CMS\\Workspaces\\ExtDirect\\PagetreeCollectionsProcessor';
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.workspaces.considerReferences = 1');
-?>
\ No newline at end of file
+?>