TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Version\Controller\VersionModuleController Class Reference
Inheritance diagram for TYPO3\CMS\Version\Controller\VersionModuleController:
TYPO3\CMS\Backend\Module\BaseScriptClass

Public Member Functions

 __construct ()
 
 menuConfig ()
 
 main ()
 
 printContent ()
 
 versioningMgm ()
 
 pageSubContent ($pid, $c=0)
 
 lookForOwnVersions ($table, $uid)
 
 adminLinks ($table, $row)
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 init ()
 
 menuConfig ()
 
 mergeExternalItems ($modName, $menuKey, $menuArr)
 
 handleExternalFunctionValue ($MM_key='function', $MS_value=null)
 
 getExternalItemConfig ($modName, $menuKey, $value='')
 
 checkExtObj ()
 
 checkSubExtObj ()
 
 extObjHeader ()
 

Public Attributes

 $MCONF = []
 
 $MOD_MENU = []
 
 $MOD_SETTINGS = []
 
 $doc
 
 $content
 
 $showWorkspaceCol = 0
 
 $formatWorkspace_cache = []
 
 $formatCount_cache = []
 
 $targets = []
 
 $pageModule = ''
 
 $publishAccess = false
 
 $stageIndex = []
 
 $recIndex = []
 
- Public Attributes inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 $MCONF = []
 
 $id
 
 $CMD
 
 $perms_clause
 
 $MOD_MENU
 
 $MOD_SETTINGS = []
 
 $modTSconfig
 
 $modMenu_type = ''
 
 $modMenu_dontValidateList = ''
 
 $modMenu_setDefaultList = ''
 
 $extClassConf
 
 $content = ''
 
 $doc
 
 $extObj
 

Protected Member Functions

 getButtons ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 getLanguageService ()
 
 getBackendUser ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 

Protected Attributes

 $moduleName = 'web_txversionM1'
 
 $moduleTemplate
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 $pageRenderer = null
 

Detailed Description

Versioning module, including workspace management

Definition at line 29 of file VersionModuleController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Version\Controller\VersionModuleController::__construct ( )

Initialize language files

Definition at line 127 of file VersionModuleController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Function Documentation

◆ adminLinks()

◆ getButtons()

TYPO3\CMS\Version\Controller\VersionModuleController::getButtons ( )
protected

Create the panel of buttons for submitting the form or otherwise perform operations.

Returns
array All available buttons as an assoc. array

Definition at line 242 of file VersionModuleController.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\BEgetRootLine(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\Utility\BackendUtility\viewOnClick().

Referenced by TYPO3\CMS\Version\Controller\VersionModuleController\main().

◆ lookForOwnVersions()

TYPO3\CMS\Version\Controller\VersionModuleController::lookForOwnVersions (   $table,
  $uid 
)

Look for number of versions of a record

Parameters
string$tableTable name
int$uidRecord uid
Returns
int Number of versions for record, FALSE if none.

Definition at line 508 of file VersionModuleController.php.

References $uid, and TYPO3\CMS\Backend\Utility\BackendUtility\selectVersionsOfRecord().

Referenced by TYPO3\CMS\Version\Controller\VersionModuleController\pageSubContent().

◆ main()

◆ mainAction()

TYPO3\CMS\Version\Controller\VersionModuleController::mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request and gathers all data.

Parameters
ServerRequestInterface$requestthe current request
ResponseInterface$responsethe prepared response
Returns
ResponseInterface the response with the content

Definition at line 568 of file VersionModuleController.php.

References TYPO3\CMS\Backend\Module\BaseScriptClass\init(), and TYPO3\CMS\Version\Controller\VersionModuleController\main().

◆ menuConfig()

TYPO3\CMS\Version\Controller\VersionModuleController::menuConfig ( )

Initialize menu configuration

Returns
void

Definition at line 139 of file VersionModuleController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), and TYPO3\CMS\Backend\Utility\BackendUtility\getModuleData().

◆ pageSubContent()

TYPO3\CMS\Version\Controller\VersionModuleController::pageSubContent (   $pid,
  $c = 0 
)

◆ printContent()

TYPO3\CMS\Version\Controller\VersionModuleController::printContent ( )

Outputs accumulated module content to browser.

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8

Definition at line 231 of file VersionModuleController.php.

References TYPO3\CMS\Version\Controller\VersionModuleController\$content, and TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ versioningMgm()

Member Data Documentation

◆ $content

◆ $doc

TYPO3\CMS\Version\Controller\VersionModuleController::$doc

Definition at line 57 of file VersionModuleController.php.

◆ $formatCount_cache

TYPO3\CMS\Version\Controller\VersionModuleController::$formatCount_cache = []

Definition at line 79 of file VersionModuleController.php.

◆ $formatWorkspace_cache

TYPO3\CMS\Version\Controller\VersionModuleController::$formatWorkspace_cache = []

Definition at line 74 of file VersionModuleController.php.

◆ $MCONF

TYPO3\CMS\Version\Controller\VersionModuleController::$MCONF = []

Definition at line 36 of file VersionModuleController.php.

◆ $MOD_MENU

TYPO3\CMS\Version\Controller\VersionModuleController::$MOD_MENU = []

Definition at line 43 of file VersionModuleController.php.

◆ $MOD_SETTINGS

TYPO3\CMS\Version\Controller\VersionModuleController::$MOD_SETTINGS = []

Definition at line 50 of file VersionModuleController.php.

◆ $moduleName

TYPO3\CMS\Version\Controller\VersionModuleController::$moduleName = 'web_txversionM1'
protected

◆ $moduleTemplate

TYPO3\CMS\Version\Controller\VersionModuleController::$moduleTemplate
protected

Definition at line 122 of file VersionModuleController.php.

◆ $pageModule

TYPO3\CMS\Version\Controller\VersionModuleController::$pageModule = ''

◆ $publishAccess

TYPO3\CMS\Version\Controller\VersionModuleController::$publishAccess = false

Definition at line 98 of file VersionModuleController.php.

◆ $recIndex

TYPO3\CMS\Version\Controller\VersionModuleController::$recIndex = []

Definition at line 108 of file VersionModuleController.php.

◆ $showWorkspaceCol

TYPO3\CMS\Version\Controller\VersionModuleController::$showWorkspaceCol = 0

Definition at line 69 of file VersionModuleController.php.

◆ $stageIndex

TYPO3\CMS\Version\Controller\VersionModuleController::$stageIndex = []

Definition at line 103 of file VersionModuleController.php.

◆ $targets

TYPO3\CMS\Version\Controller\VersionModuleController::$targets = []

Definition at line 84 of file VersionModuleController.php.