TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Workspaces\Hook\BackendUtilityHook Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Hook\BackendUtilityHook:
TYPO3\CMS\Core\SingletonInterface Tx_Workspaces_Service_Befunc

Public Member Functions

 preProcess (&$pageUid, $backPath, $rootLine, $anchorSection, &$viewScript, $additionalGetVars, $switchFocus)
 

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

 getWorkspaceService ()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Befunc service

Author
Workspaces Team (http://forge.typo3.org/projects/show/typo3v4-workspaces)

Definition at line 21 of file BackendUtilityHook.php.

Member Function Documentation

◆ getInstance()

static TYPO3\CMS\Workspaces\Hook\BackendUtilityHook::getInstance ( )
static

Gets a singleton instance of this object.

Returns

Definition at line 28 of file BackendUtilityHook.php.

◆ getWorkspaceService()

TYPO3\CMS\Workspaces\Hook\BackendUtilityHook::getWorkspaceService ( )
protected

◆ preProcess()

TYPO3\CMS\Workspaces\Hook\BackendUtilityHook::preProcess ( $pageUid,
  $backPath,
  $rootLine,
  $anchorSection,
$viewScript,
  $additionalGetVars,
  $switchFocus 
)

Hooks into the ::viewOnClick and redirects to the workspace preview only if we're in a workspace and if the frontend-preview is disabled.

Parameters
$pageUid
$backPath
$rootLine
$anchorSection
$viewScript
$additionalGetVars
$switchFocus
Returns
void

Definition at line 45 of file BackendUtilityHook.php.

References $GLOBALS, and TYPO3\CMS\Workspaces\Hook\BackendUtilityHook\getWorkspaceService().