TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
VersionModuleController Class Reference
Inheritance diagram for VersionModuleController:
BaseScriptClass

Public Member Functions

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

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 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 ()
 
 getLanguageService ()
 
- Protected Member Functions inherited from BaseScriptClass
 getLanguageService ()
 
 getBackendUser ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 

Protected Attributes

 $moduleName = 'web_txversionM1'
 
 $moduleTemplate
 
- Protected Attributes inherited from BaseScriptClass
 $pageRenderer = null
 

Detailed Description

Versioning module, including workspace management

Definition at line 32 of file VersionModuleController.php.

Constructor & Destructor Documentation

__construct ( )

Initialize language files

Definition at line 130 of file VersionModuleController.php.

References $GLOBALS, VersionModuleController\getLanguageService(), and GeneralUtility\makeInstance().

Member Function Documentation

adminLinks (   $table,
  $row 
)
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 234 of file VersionModuleController.php.

References $GLOBALS, BackendUtility\BEgetRootLine(), GeneralUtility\getIndpEnv(), VersionModuleController\getLanguageService(), Icon\SIZE_SMALL, and BackendUtility\viewOnClick().

Referenced by VersionModuleController\main().

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 522 of file VersionModuleController.php.

References BackendUtility\selectVersionsOfRecord().

Referenced by VersionModuleController\pageSubContent().

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 583 of file VersionModuleController.php.

References BaseScriptClass\init(), and VersionModuleController\main().

menuConfig ( )

Initialize menu configuration

Returns
void

Definition at line 142 of file VersionModuleController.php.

References GeneralUtility\_GP(), and BackendUtility\getModuleData().

pageSubContent (   $pid,
  $c = 0 
)

Recursively look for children for page version with $pid

Parameters
int$pidUID of page record for which to look up sub-elements following that version
int$cCounter, do not set (limits to 100 levels)
Returns
string Table with content if any

Definition at line 450 of file VersionModuleController.php.

References VersionModuleController\$content, $GLOBALS, VersionModuleController\adminLinks(), VersionModuleController\getLanguageService(), BackendUtility\getRecordTitle(), VersionModuleController\lookForOwnVersions(), GeneralUtility\makeInstance(), ArrayUtility\removeArrayEntryByValue(), and Icon\SIZE_SMALL.

Referenced by VersionModuleController\versioningMgm().

Member Data Documentation

$doc

Definition at line 60 of file VersionModuleController.php.

$formatCount_cache = []

Definition at line 82 of file VersionModuleController.php.

$formatWorkspace_cache = []

Definition at line 77 of file VersionModuleController.php.

$MCONF = []

Definition at line 39 of file VersionModuleController.php.

$MOD_MENU = []

Definition at line 46 of file VersionModuleController.php.

$MOD_SETTINGS = []

Definition at line 53 of file VersionModuleController.php.

$moduleName = 'web_txversionM1'
protected

Definition at line 118 of file VersionModuleController.php.

Referenced by VersionModuleController\main().

$moduleTemplate
protected

Definition at line 125 of file VersionModuleController.php.

$pageModule = ''

Definition at line 94 of file VersionModuleController.php.

Referenced by VersionModuleController\adminLinks().

$publishAccess = false

Definition at line 101 of file VersionModuleController.php.

$recIndex = []

Definition at line 111 of file VersionModuleController.php.

$showWorkspaceCol = 0

Definition at line 72 of file VersionModuleController.php.

$stageIndex = []

Definition at line 106 of file VersionModuleController.php.

$targets = []

Definition at line 87 of file VersionModuleController.php.