‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\EditDocumentController Class Reference

Public Member Functions

 __construct (protected readonly EventDispatcherInterface $eventDispatcher, protected readonly IconFactory $iconFactory, protected readonly PageRenderer $pageRenderer, protected readonly UriBuilder $uriBuilder, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly BackendEntryPointResolver $backendEntryPointResolver, private readonly FormDataCompiler $formDataCompiler,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 preInit (ServerRequestInterface $request)
 
 addSlugFieldsToColumnsOnly (array $queryParams)
 
 processData (ModuleTemplate $view, ServerRequestInterface $request)
 
 init (ServerRequestInterface $request)
 
 generatePreviewCode ()
 
 getPreviewUrlParameters (int $previewPageId)
 
 resolvePreviewRecordId (string $table, array $recordArray, array $previewConfiguration)
 
 getPreviewUrlAnchorSection ()
 
 getPreviewPageId ()
 
 canViewDoktype (array $currentPage)
 
 main (ModuleTemplate $view, ServerRequestInterface $request)
 
 resolveMetaInformation (ModuleTemplate $view)
 
string makeEditForm (ServerRequestInterface $request, ModuleTemplate $view)
 
 getInfobox (string $message, ?string $title=null)
 
 getButtons (ModuleTemplate $view, ServerRequestInterface $request)
 
 setIsSavedRecord ()
 
 isInconsistentLanguageHandlingAllowed ()
 
 setIsPageInFreeTranslationMode (?array $record, int $sysLanguageUid)
 
 getFreeTranslationMode (int $page, int $column, int $language)
 
 registerCloseButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group)
 
 registerSaveButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group)
 
 registerViewButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group)
 
 registerNewButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group, int $sysLanguageUid, int $l18nParent)
 
 registerDuplicationButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group, int $sysLanguageUid, int $l18nParent)
 
 registerDeleteButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group, ServerRequestInterface $request)
 
 registerHistoryButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group)
 
 registerColumnsOnlyButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group)
 
 registerOpenInNewWindowButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group, ServerRequestInterface $request)
 
 registerShortcutButtonToButtonBar (ButtonBar $buttonBar, string $position, int $group, ServerRequestInterface $request)
 
 getUrlQueryParamsForCurrentRequest (ServerRequestInterface $request)
 
 getConnectedContentElementTranslationsCount (int $page, int $column, int $language)
 
 getStandAloneContentElementTranslationsCount (int $page, int $column, int $language)
 
 getQueryBuilderForTranslationMode (int $page, int $column, int $language)
 
string compileForm (string $editForm)
 
 updateInlineView (?array $uc, DataHandler $dataHandler)
 
 getDisableDelete ()
 
 isRecordCurrentBackendUser ()
 
 getCloseUrl ()
 
 languageSwitch (ModuleTemplate $view, string $table, int $uid, ?int $pid=null)
 
 localizationRedirect (ServerRequestInterface $request)
 
array getLanguages (int $id, string $table)
 
 fixWSversioningInEditConf (?array $mapArray=null)
 
array false getRecordForEdit (string $table, int $theUid)
 
 compileStoreData (ServerRequestInterface $request)
 
 getTsConfigOption (string $table, string $key)
 
ResponseInterface null closeDocument (int $mode, ServerRequestInterface $request)
 
 getShortcutTitle (ServerRequestInterface $request)
 
 isSingleRecordView ()
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

const DOCUMENT_CLOSE_MODE_DEFAULT = 0
 
const DOCUMENT_CLOSE_MODE_REDIRECT = 1
 
const DOCUMENT_CLOSE_MODE_CLEAR_ALL = 3
 
const DOCUMENT_CLOSE_MODE_NO_REDIRECT = 4
 
array< string, array > $editconf = array( )
 
string null $columnsOnly
 
array null $defVals
 
array null $overrideVals
 
string null $returnUrl
 
string $retUrl
 
int $closeDoc
 
bool $doSave
 
array $data
 
array $cmd
 
array $mirror
 
bool $returnNewPageId = false
 
int $popViewId
 
string null $previewCode
 
string $recTitle
 
bool $noView
 
string $perms_clause
 
bool $returnEditConf
 
array $R_URL_parts
 
array $R_URL_getvars
 
string $R_URI
 
array $pageinfo
 
string $storeTitle = ''
 
array $storeArray
 
string $storeUrl
 
string $storeUrlMd5
 
array $docDat
 
array $docHandler
 
array $elementsData
 
array $firstEl
 
int $errorC
 
int $viewId
 
FormResultCompiler $formResultCompiler
 
int $dontStoreDocumentRef = 0
 
array $previewData = array( )
 
bool $isSavedRecord = false
 
bool $isPageInFreeTranslationMode = false
 

Detailed Description

Main backend controller almost always used if some database record is edited in the backend.

Main job of this controller is to evaluate and sanitize $request parameters, call the DataHandler if records should be created or updated and execute FormEngine for record rendering.

Definition at line 79 of file EditDocumentController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\EditDocumentController::__construct ( protected readonly EventDispatcherInterface  $eventDispatcher,
protected readonly IconFactory  $iconFactory,
protected readonly PageRenderer  $pageRenderer,
protected readonly UriBuilder  $uriBuilder,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly BackendEntryPointResolver  $backendEntryPointResolver,
private readonly FormDataCompiler  $formDataCompiler 
)

Definition at line 309 of file EditDocumentController.php.

Member Function Documentation

◆ addSlugFieldsToColumnsOnly()

TYPO3\CMS\Backend\Controller\EditDocumentController::addSlugFieldsToColumnsOnly ( array  $queryParams)
protected

◆ canViewDoktype()

TYPO3\CMS\Backend\Controller\EditDocumentController::canViewDoktype ( array  $currentPage)
protected

◆ closeDocument()

ResponseInterface null TYPO3\CMS\Backend\Controller\EditDocumentController::closeDocument ( int  $mode,
ServerRequestInterface  $request 
)
protected

Handling the closing of a document The argument $mode can be one of this values:

  • ‪0/1 will redirect to $this->retUrl [self::DOCUMENT_CLOSE_MODE_DEFAULT || self::DOCUMENT_CLOSE_MODE_REDIRECT]
  • ‪3 will clear the docHandler (thus closing all documents) [self::DOCUMENT_CLOSE_MODE_CLEAR_ALL]
  • ‪4 will do no redirect [self::DOCUMENT_CLOSE_MODE_NO_REDIRECT]
  • ‪other values will call setDocument with ->retUrl
Parameters
int$mode‪the close mode: one of self::DOCUMENT_CLOSE_MODE_*
ServerRequestInterface$request‪Incoming request
Returns
‪ResponseInterface|null Redirect response if needed

Definition at line 2263 of file EditDocumentController.php.

References TYPO3\CMS\Backend\Controller\EditDocumentController\$retUrl, TYPO3\CMS\Backend\Controller\EditDocumentController\$storeUrlMd5, and TYPO3\CMS\Backend\Controller\EditDocumentController\getBackendUser().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), and TYPO3\CMS\Backend\Controller\EditDocumentController\processData().

◆ compileForm()

string TYPO3\CMS\Backend\Controller\EditDocumentController::compileForm ( string  $editForm)
protected

Put together the various elements (buttons, selectors, form) into a table

Parameters
string$editForm‪HTML form.
Returns
‪string Composite HTML

Definition at line 1727 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\main().

◆ compileStoreData()

TYPO3\CMS\Backend\Controller\EditDocumentController::compileStoreData ( ServerRequestInterface  $request)
protected

Populates the variables $this->storeArray, $this->storeUrl, $this->storeUrlMd5 to prepare 'open documents' urls

Definition at line 2222 of file EditDocumentController.php.

References TYPO3\CMS\Core\Utility\HttpUtility\buildQueryString().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), and TYPO3\CMS\Backend\Controller\EditDocumentController\processData().

◆ fixWSversioningInEditConf()

TYPO3\CMS\Backend\Controller\EditDocumentController::fixWSversioningInEditConf ( ?array  $mapArray = null)
protected

Fix $this->editconf if versioning applies to any of the records

Parameters
array | null$mapArray‪Mapping between old and new ids if auto-versioning has been performed.

Definition at line 2134 of file EditDocumentController.php.

References TYPO3\CMS\Backend\Controller\EditDocumentController\$cmd, $GLOBALS, TYPO3\CMS\Backend\Controller\EditDocumentController\getRecordForEdit(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), and TYPO3\CMS\Backend\Controller\EditDocumentController\processData().

◆ generatePreviewCode()

◆ getBackendUser()

◆ getButtons()

TYPO3\CMS\Backend\Controller\EditDocumentController::getButtons ( ModuleTemplate  $view,
ServerRequestInterface  $request 
)
protected

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

Definition at line 1198 of file EditDocumentController.php.

References $GLOBALS, TYPO3\CMS\Webhooks\Message\$record, TYPO3\CMS\Backend\Template\Components\ButtonBar\BUTTON_POSITION_LEFT, TYPO3\CMS\Backend\Template\Components\ButtonBar\BUTTON_POSITION_RIGHT, TYPO3\CMS\Backend\Template\ModuleTemplate\getDocHeaderComponent(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerCloseButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerColumnsOnlyButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerDeleteButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerDuplicationButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerHistoryButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerNewButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerOpenInNewWindowButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerSaveButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerShortcutButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\registerViewButtonToButtonBar(), TYPO3\CMS\Backend\Controller\EditDocumentController\setIsPageInFreeTranslationMode(), and TYPO3\CMS\Backend\Controller\EditDocumentController\setIsSavedRecord().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\main().

◆ getCloseUrl()

TYPO3\CMS\Backend\Controller\EditDocumentController::getCloseUrl ( )
protected

Returns the URL (usually for the "returnUrl") which closes the current window. Used when editing a record in a popup.

Definition at line 1822 of file EditDocumentController.php.

References TYPO3\CMS\Core\Utility\PathUtility\getPublicResourceWebPath().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\registerOpenInNewWindowButtonToButtonBar(), and TYPO3\CMS\Backend\Controller\EditDocumentController\registerShortcutButtonToButtonBar().

◆ getConnectedContentElementTranslationsCount()

TYPO3\CMS\Backend\Controller\EditDocumentController::getConnectedContentElementTranslationsCount ( int  $page,
int  $column,
int  $language 
)
protected

◆ getDisableDelete()

TYPO3\CMS\Backend\Controller\EditDocumentController::getDisableDelete ( )
protected

Returns if delete for the current table is disabled by configuration. For sys_file_metadata in default language delete is always disabled.

Definition at line 1794 of file EditDocumentController.php.

References TYPO3\CMS\Backend\Controller\EditDocumentController\getTsConfigOption().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\registerDeleteButtonToButtonBar().

◆ getFreeTranslationMode()

TYPO3\CMS\Backend\Controller\EditDocumentController::getFreeTranslationMode ( int  $page,
int  $column,
int  $language 
)
protected

◆ getInfobox()

TYPO3\CMS\Backend\Controller\EditDocumentController::getInfobox ( string  $message,
?string  $title = null 
)
protected

◆ getLanguages()

array TYPO3\CMS\Backend\Controller\EditDocumentController::getLanguages ( int  $id,
string  $table 
)
protected

Returns languages available for record translations on given page.

Parameters
int$idPage id: If zero, all available system languages will be returned. If set to another value, only languages, a page translation exists for, will be returned.
string$table‪For pages we want all languages, for other records the languages of the page translations
Returns
‪array Array with languages (uid, title, ISOcode, flagIcon)

Definition at line 2075 of file EditDocumentController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\EditDocumentController\getBackendUser(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\languageSwitch().

◆ getLanguageService()

◆ getPreviewPageId()

◆ getPreviewUrlAnchorSection()

TYPO3\CMS\Backend\Controller\EditDocumentController::getPreviewUrlAnchorSection ( )
protected

◆ getPreviewUrlParameters()

TYPO3\CMS\Backend\Controller\EditDocumentController::getPreviewUrlParameters ( int  $previewPageId)
protected

◆ getQueryBuilderForTranslationMode()

TYPO3\CMS\Backend\Controller\EditDocumentController::getQueryBuilderForTranslationMode ( int  $page,
int  $column,
int  $language 
)
protected

◆ getRecordForEdit()

array false TYPO3\CMS\Backend\Controller\EditDocumentController::getRecordForEdit ( string  $table,
int  $theUid 
)
protected

Get record for editing.

Parameters
string$table‪Table name
int$theUid‪Record UID
Returns
‪array|false Returns record to edit, false if none

Definition at line 2180 of file EditDocumentController.php.

References TYPO3\CMS\Backend\Controller\EditDocumentController\getBackendUser().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\fixWSversioningInEditConf().

◆ getShortcutTitle()

◆ getStandAloneContentElementTranslationsCount()

TYPO3\CMS\Backend\Controller\EditDocumentController::getStandAloneContentElementTranslationsCount ( int  $page,
int  $column,
int  $language 
)
protected

◆ getTsConfigOption()

◆ getUrlQueryParamsForCurrentRequest()

TYPO3\CMS\Backend\Controller\EditDocumentController::getUrlQueryParamsForCurrentRequest ( ServerRequestInterface  $request)
protected

◆ init()

◆ isInconsistentLanguageHandlingAllowed()

TYPO3\CMS\Backend\Controller\EditDocumentController::isInconsistentLanguageHandlingAllowed ( )
protected

◆ isRecordCurrentBackendUser()

TYPO3\CMS\Backend\Controller\EditDocumentController::isRecordCurrentBackendUser ( )
protected

Return true in case the current record is the current backend user

Definition at line 1812 of file EditDocumentController.php.

References TYPO3\CMS\Backend\Controller\EditDocumentController\getBackendUser().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\registerDeleteButtonToButtonBar().

◆ isSingleRecordView()

TYPO3\CMS\Backend\Controller\EditDocumentController::isSingleRecordView ( )
protected

◆ languageSwitch()

TYPO3\CMS\Backend\Controller\EditDocumentController::languageSwitch ( ModuleTemplate  $view,
string  $table,
int  $uid,
?int  $pid = null 
)
protected

Make selector box for creating new translation for a record or switching to edit the record in an existing language. Displays only languages which are available for the current page.

Parameters
string$table‪Table name
int$uid‪Uid for which to create a new language
int | null$pid‪Pid of the record

Definition at line 1835 of file EditDocumentController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\EditDocumentController\$retUrl, TYPO3\CMS\Webhooks\Message\$uid, TYPO3\CMS\Backend\Controller\EditDocumentController\getBackendUser(), TYPO3\CMS\Backend\Template\ModuleTemplate\getDocHeaderComponent(), TYPO3\CMS\Backend\Controller\EditDocumentController\getLanguages(), TYPO3\CMS\Backend\Controller\EditDocumentController\getLanguageService(), TYPO3\CMS\Core\Database\Connection\PARAM_INT, and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\main().

◆ localizationRedirect()

TYPO3\CMS\Backend\Controller\EditDocumentController::localizationRedirect ( ServerRequestInterface  $request)
protected

◆ main()

◆ mainAction()

◆ makeEditForm()

◆ preInit()

◆ processData()

◆ registerCloseButtonToButtonBar()

◆ registerColumnsOnlyButtonToButtonBar()

◆ registerDeleteButtonToButtonBar()

◆ registerDuplicationButtonToButtonBar()

◆ registerHistoryButtonToButtonBar()

◆ registerNewButtonToButtonBar()

◆ registerOpenInNewWindowButtonToButtonBar()

◆ registerSaveButtonToButtonBar()

◆ registerShortcutButtonToButtonBar()

◆ registerViewButtonToButtonBar()

◆ resolveMetaInformation()

TYPO3\CMS\Backend\Controller\EditDocumentController::resolveMetaInformation ( ModuleTemplate  $view)
protected

◆ resolvePreviewRecordId()

TYPO3\CMS\Backend\Controller\EditDocumentController::resolvePreviewRecordId ( string  $table,
array  $recordArray,
array  $previewConfiguration 
)
protected

◆ setIsPageInFreeTranslationMode()

TYPO3\CMS\Backend\Controller\EditDocumentController::setIsPageInFreeTranslationMode ( ?array  $record,
int  $sysLanguageUid 
)
protected

◆ setIsSavedRecord()

TYPO3\CMS\Backend\Controller\EditDocumentController::setIsSavedRecord ( )
protected

Set the boolean to check if the record is saved

Definition at line 1261 of file EditDocumentController.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\getButtons().

◆ updateInlineView()

TYPO3\CMS\Backend\Controller\EditDocumentController::updateInlineView ( ?array  $uc,
DataHandler  $dataHandler 
)
protected

Update expanded/collapsed states on new inline records if any within backendUser->uc.

Parameters
array | null$uc‪The uc array to be processed and saved - uc[inlineView][...]
DataHandler$dataHandler‪Instance of DataHandler that saved data before

Definition at line 1754 of file EditDocumentController.php.

References TYPO3\CMS\Backend\Controller\EditDocumentController\getBackendUser().

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\processData().

Member Data Documentation

◆ $closeDoc

int TYPO3\CMS\Backend\Controller\EditDocumentController::$closeDoc
protected

Close document command. One of the DOCUMENT_CLOSE_MODE_* constants above

Definition at line 130 of file EditDocumentController.php.

◆ $cmd

array TYPO3\CMS\Backend\Controller\EditDocumentController::$cmd
protected

Main DataHandler cmdmap array

Definition at line 150 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\fixWSversioningInEditConf().

◆ $columnsOnly

string null TYPO3\CMS\Backend\Controller\EditDocumentController::$columnsOnly
protected

Comma list of field names to edit. If specified, only those fields will be rendered. Otherwise all (available) fields in the record are shown according to the TCA type.

Definition at line 98 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\makeEditForm().

◆ $data

array TYPO3\CMS\Backend\Controller\EditDocumentController::$data
protected

Main DataHandler datamap array

Definition at line 144 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\addSlugFieldsToColumnsOnly().

◆ $defVals

array null TYPO3\CMS\Backend\Controller\EditDocumentController::$defVals
protected

Default values for fields

[table][field]

Definition at line 104 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\makeEditForm().

◆ $docDat

array TYPO3\CMS\Backend\Controller\EditDocumentController::$docDat
protected

Backend user session data of this module

Definition at line 250 of file EditDocumentController.php.

◆ $docHandler

array TYPO3\CMS\Backend\Controller\EditDocumentController::$docHandler
protected

An array of the "open documents" - keys are md5 hashes (see $storeUrlMd5) identifying the various documents on the GET parameter list needed to open it. The values are arrays with 0,1,2 keys with information about the document (see compileStoreData()). The docHandler variable is stored in the $docDat session data, key "0".

Definition at line 259 of file EditDocumentController.php.

◆ $dontStoreDocumentRef

int TYPO3\CMS\Backend\Controller\EditDocumentController::$dontStoreDocumentRef = 0
protected

Used internally to disable the storage of the document reference (eg. new records)

Definition at line 294 of file EditDocumentController.php.

◆ $doSave

bool TYPO3\CMS\Backend\Controller\EditDocumentController::$doSave
protected

If true, the processing of incoming data will be performed as if a save-button is pressed. Used in the forms as a hidden field which can be set through JavaScript if the form is somehow submitted by JavaScript.

Definition at line 138 of file EditDocumentController.php.

◆ $editconf

array<string,array> TYPO3\CMS\Backend\Controller\EditDocumentController::$editconf = array( )
protected

An array looking approx like [tablename][list-of-ids]=command, eg. "&edit[pages][123]=edit".

Definition at line 91 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\preInit(), and TYPO3\CMS\Backend\Controller\EditDocumentController\processData().

◆ $elementsData

array TYPO3\CMS\Backend\Controller\EditDocumentController::$elementsData
protected

Array of the elements to create edit forms for.

Definition at line 265 of file EditDocumentController.php.

◆ $errorC

int TYPO3\CMS\Backend\Controller\EditDocumentController::$errorC
protected

Counter, used to count the number of errors (when users do not have edit permissions)

Definition at line 277 of file EditDocumentController.php.

◆ $firstEl

array TYPO3\CMS\Backend\Controller\EditDocumentController::$firstEl
protected

Pointer to the first element in $elementsData

Definition at line 271 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\main().

◆ $formResultCompiler

FormResultCompiler TYPO3\CMS\Backend\Controller\EditDocumentController::$formResultCompiler
protected

Definition at line 288 of file EditDocumentController.php.

◆ $isPageInFreeTranslationMode

bool TYPO3\CMS\Backend\Controller\EditDocumentController::$isPageInFreeTranslationMode = false
protected

Definition at line 307 of file EditDocumentController.php.

◆ $isSavedRecord

bool TYPO3\CMS\Backend\Controller\EditDocumentController::$isSavedRecord = false
protected

True if a record has been saved

Definition at line 305 of file EditDocumentController.php.

◆ $mirror

array TYPO3\CMS\Backend\Controller\EditDocumentController::$mirror
protected

DataHandler 'mirror' input

Definition at line 156 of file EditDocumentController.php.

◆ $noView

bool TYPO3\CMS\Backend\Controller\EditDocumentController::$noView
protected

If set, then no save & view button is printed

Definition at line 185 of file EditDocumentController.php.

◆ $overrideVals

array null TYPO3\CMS\Backend\Controller\EditDocumentController::$overrideVals
protected

Array of values to force being set as hidden fields in FormEngine

[table][field]

Definition at line 110 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\preInit().

◆ $pageinfo

array TYPO3\CMS\Backend\Controller\EditDocumentController::$pageinfo
protected

Definition at line 218 of file EditDocumentController.php.

◆ $perms_clause

string TYPO3\CMS\Backend\Controller\EditDocumentController::$perms_clause
protected

Definition at line 189 of file EditDocumentController.php.

◆ $popViewId

int TYPO3\CMS\Backend\Controller\EditDocumentController::$popViewId
protected

ID for displaying the page in the frontend, "save and view"

Definition at line 169 of file EditDocumentController.php.

◆ $previewCode

string null TYPO3\CMS\Backend\Controller\EditDocumentController::$previewCode
protected

Definition at line 173 of file EditDocumentController.php.

◆ $previewData

array TYPO3\CMS\Backend\Controller\EditDocumentController::$previewData = array( )
protected

Stores information needed to preview the currently saved record

Definition at line 300 of file EditDocumentController.php.

◆ $R_URI

string TYPO3\CMS\Backend\Controller\EditDocumentController::$R_URI
protected

Set to the URL of this script including variables which is needed to re-display the form.

Definition at line 214 of file EditDocumentController.php.

◆ $R_URL_getvars

array TYPO3\CMS\Backend\Controller\EditDocumentController::$R_URL_getvars
protected

Contains $request query parameters. This array is the foundation for creating the R_URI internal var which becomes the url to which forms are submitted

Definition at line 208 of file EditDocumentController.php.

◆ $R_URL_parts

array TYPO3\CMS\Backend\Controller\EditDocumentController::$R_URL_parts
protected

parse_url() of current requested URI, contains ['path'] and ['query'] parts.

Definition at line 201 of file EditDocumentController.php.

◆ $recTitle

string TYPO3\CMS\Backend\Controller\EditDocumentController::$recTitle
protected

Alternative title for the document handler.

Definition at line 179 of file EditDocumentController.php.

◆ $retUrl

string TYPO3\CMS\Backend\Controller\EditDocumentController::$retUrl
protected

Prepared return URL. Contains the URL that we should return to from FormEngine if close button is clicked. Usually passed along as 'returnUrl', but falls back to "dummy" controller.

Definition at line 125 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\closeDocument(), TYPO3\CMS\Backend\Controller\EditDocumentController\init(), TYPO3\CMS\Backend\Controller\EditDocumentController\languageSwitch(), and TYPO3\CMS\Backend\Controller\EditDocumentController\registerDeleteButtonToButtonBar().

◆ $returnEditConf

bool TYPO3\CMS\Backend\Controller\EditDocumentController::$returnEditConf
protected

If true, $this->editconf array is added a redirect response, used by Wizard/AddController

Definition at line 195 of file EditDocumentController.php.

◆ $returnNewPageId

bool TYPO3\CMS\Backend\Controller\EditDocumentController::$returnNewPageId = false
protected

Boolean: If set, then the GET var "&id=" will be added to the retUrl string so that the NEW id of something is returned to the script calling the form.

Definition at line 163 of file EditDocumentController.php.

◆ $returnUrl

string null TYPO3\CMS\Backend\Controller\EditDocumentController::$returnUrl
protected

If set, this value will be set in $this->retUrl as "returnUrl", if not, $this->retUrl will link to dummy controller

Definition at line 117 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\localizationRedirect(), TYPO3\CMS\Backend\Controller\EditDocumentController\main(), and TYPO3\CMS\Backend\Controller\EditDocumentController\registerDeleteButtonToButtonBar().

◆ $storeArray

array TYPO3\CMS\Backend\Controller\EditDocumentController::$storeArray
protected

Contains an array with key/value pairs of GET parameters needed to reach the current document displayed - used in the 'open documents' toolbar.

Definition at line 232 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\main().

◆ $storeTitle

string TYPO3\CMS\Backend\Controller\EditDocumentController::$storeTitle = ''
protected

Is loaded with the "title" of the currently "open document" used for the open document toolbar

Definition at line 225 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\main(), and TYPO3\CMS\Backend\Controller\EditDocumentController\registerDeleteButtonToButtonBar().

◆ $storeUrl

string TYPO3\CMS\Backend\Controller\EditDocumentController::$storeUrl
protected

$this->storeArray imploded to url

Definition at line 238 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\main().

◆ $storeUrlMd5

string TYPO3\CMS\Backend\Controller\EditDocumentController::$storeUrlMd5
protected

md5 hash of storeURL, used to identify a single open document in backend user uc

Definition at line 244 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\closeDocument(), and TYPO3\CMS\Backend\Controller\EditDocumentController\main().

◆ $viewId

int TYPO3\CMS\Backend\Controller\EditDocumentController::$viewId
protected

Is set to the pid value of the last shown record - thus indicating which page to show when clicking the SAVE/VIEW button

Definition at line 284 of file EditDocumentController.php.

Referenced by TYPO3\CMS\Backend\Controller\EditDocumentController\getPreviewPageId().

◆ DOCUMENT_CLOSE_MODE_CLEAR_ALL

const TYPO3\CMS\Backend\Controller\EditDocumentController::DOCUMENT_CLOSE_MODE_CLEAR_ALL = 3
protected

Definition at line 84 of file EditDocumentController.php.

◆ DOCUMENT_CLOSE_MODE_DEFAULT

const TYPO3\CMS\Backend\Controller\EditDocumentController::DOCUMENT_CLOSE_MODE_DEFAULT = 0
protected

Definition at line 81 of file EditDocumentController.php.

◆ DOCUMENT_CLOSE_MODE_NO_REDIRECT

const TYPO3\CMS\Backend\Controller\EditDocumentController::DOCUMENT_CLOSE_MODE_NO_REDIRECT = 4
protected

Definition at line 85 of file EditDocumentController.php.

◆ DOCUMENT_CLOSE_MODE_REDIRECT

const TYPO3\CMS\Backend\Controller\EditDocumentController::DOCUMENT_CLOSE_MODE_REDIRECT = 1
protected

Definition at line 83 of file EditDocumentController.php.