TYPO3
7.6
|
Public Member Functions | |
__construct () | |
preInit () | |
doProcessData () | |
init () | |
printContent () | |
compileForm ($editForm) | |
shortCutLink () | |
openInNewWindowLink () | |
languageSwitch ($table, $uid, $pid=null) | |
localizationRedirect ($justLocalized) | |
getLanguages ($id) | |
fixWSversioningInEditConf ($mapArray=false) | |
getRecordForEdit ($table, $theUid) | |
editRegularContentFromId () | |
compileStoreDat () | |
getNewIconMode ($table, $key= 'saveDocNew') | |
closeDocument ($code=0) | |
setDocument ($currentDocFromHandlerMD5= '', $retUrl= '') | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
Public Member Functions inherited from AbstractModule | |
__construct () | |
processRequest (ServerRequestInterface $request, ResponseInterface $response) | |
Protected Member Functions | |
getSignalSlotDispatcher () | |
emitFunctionAfterSignal ($signalName) | |
generatePreviewCode () | |
parseAdditionalGetParameters (array &$parameters, array $typoScript) | |
getButtons () | |
getBackendUser () | |
getLanguageService () | |
getDatabaseConnection () | |
Protected Attributes | |
$workspace | |
$formResultCompiler | |
$signalSlotDispatcher | |
$previewData = [] | |
Protected Attributes inherited from AbstractModule | |
$moduleTemplate | |
$request | |
Script Class: Drawing the editing form for editing records in TYPO3. Notice: It does NOT use tce_db.php to submit data to, rather it handles submissions itself
Definition at line 46 of file EditDocumentController.php.
__construct | ( | ) |
Constructor
Definition at line 409 of file EditDocumentController.php.
References $GLOBALS, and EditDocumentController\getLanguageService().
closeDocument | ( | $code = 0 | ) |
Handling the closing of a document
int | $code | Close code: 0/1 will redirect to $this->retUrl, 3 will clear the docHandler (thus closing all documents) and other values will call setDocument with ->retUrl |
Definition at line 1892 of file EditDocumentController.php.
References EditDocumentController\$storeUrlMd5, EditDocumentController\getBackendUser(), HttpUtility\redirect(), EditDocumentController\setDocument(), and BackendUtility\setUpdateSignal().
Referenced by EditDocumentController\preInit().
compileForm | ( | $editForm | ) |
Put together the various elements (buttons, selectors, form) into a table
string | $editForm | HTML form. |
Definition at line 1440 of file EditDocumentController.php.
compileStoreDat | ( | ) |
Populates the variables $this->storeArray, $this->storeUrl, $this->storeUrlMd5
Definition at line 1860 of file EditDocumentController.php.
References GeneralUtility\compileSelectedGetVarsFromArray(), and GeneralUtility\implodeArrayForUrl().
Referenced by EditDocumentController\preInit().
doProcessData | ( | ) |
Detects, if a save command has been triggered.
Definition at line 502 of file EditDocumentController.php.
Referenced by EditDocumentController\mainAction().
editRegularContentFromId | ( | ) |
Function, which populates the internal editconf array with editing commands for all tt_content elements from the normal column in normal language from the page pointed to by $this->editRegularContentFromId
Definition at line 1832 of file EditDocumentController.php.
References BackendUtility\deleteClause(), EditDocumentController\getDatabaseConnection(), GeneralUtility\logDeprecatedFunction(), and BackendUtility\versioningPlaceholderClause().
Referenced by EditDocumentController\init().
|
protected |
Emits a signal after a function was executed
string | $signalName |
Definition at line 434 of file EditDocumentController.php.
References EditDocumentController\getSignalSlotDispatcher().
Referenced by EditDocumentController\init(), and EditDocumentController\preInit().
fixWSversioningInEditConf | ( | $mapArray = false | ) |
Fix $this->editconf if versioning applies to any of the records
array | bool | $mapArray | Mapping between old and new ids if auto-versioning has been performed. |
Definition at line 1737 of file EditDocumentController.php.
References EditDocumentController\$cmd, $GLOBALS, EditDocumentController\getRecordForEdit(), and GeneralUtility\trimExplode().
Referenced by EditDocumentController\preInit().
|
protected |
Definition at line 819 of file EditDocumentController.php.
References $GLOBALS, BackendUtility\BEgetRootLine(), MathUtility\convertToPositiveInteger(), PageRepository\DOKTYPE_DEFAULT, BackendUtility\getPagesTSconfig(), BackendUtility\getRecord(), GeneralUtility\implodeArrayForUrl(), EditDocumentController\parseAdditionalGetParameters(), and BackendUtility\viewOnClick().
Referenced by EditDocumentController\init().
|
protected |
Definition at line 1990 of file EditDocumentController.php.
References $GLOBALS.
Referenced by EditDocumentController\closeDocument(), EditDocumentController\getLanguages(), EditDocumentController\getNewIconMode(), EditDocumentController\getRecordForEdit(), EditDocumentController\init(), EditDocumentController\languageSwitch(), and EditDocumentController\preInit().
|
protected |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 1212 of file EditDocumentController.php.
References $GLOBALS, $lang, ButtonBar\BUTTON_POSITION_LEFT, BackendUtility\calcAge(), MathUtility\canBeInterpretedAsInteger(), PageRepository\DOKTYPE_RECYCLER, PageRepository\DOKTYPE_SPACER, PageRepository\DOKTYPE_SYSFOLDER, EditDocumentController\getDatabaseConnection(), EditDocumentController\getLanguageService(), EditDocumentController\getNewIconMode(), BackendUtility\getPagesTSconfig(), GeneralUtility\intExplode(), EditDocumentController\openInNewWindowLink(), GeneralUtility\quoteJSvalue(), EditDocumentController\shortCutLink(), and Icon\SIZE_SMALL.
|
protected |
Returns the database connection
Definition at line 2010 of file EditDocumentController.php.
References $GLOBALS.
Referenced by EditDocumentController\editRegularContentFromId(), EditDocumentController\getButtons(), EditDocumentController\getLanguages(), EditDocumentController\languageSwitch(), and EditDocumentController\localizationRedirect().
getLanguages | ( | $id | ) |
Returns sys_language records available for record translations on given page.
int | $id | Page id: If zero, the query will select all sys_language records from root level which are NOT hidden. If set to another value, the query will select all sys_language records that has a pages_language_overlay record on that page (and is not hidden, unless you are admin user) |
Definition at line 1668 of file EditDocumentController.php.
References BackendUtility\deleteClause(), EditDocumentController\getBackendUser(), EditDocumentController\getDatabaseConnection(), EditDocumentController\getLanguageService(), and BackendUtility\getModTSconfig().
Referenced by EditDocumentController\languageSwitch().
|
protected |
Returns LanguageService
Definition at line 2000 of file EditDocumentController.php.
References $GLOBALS.
Referenced by EditDocumentController\__construct(), EditDocumentController\getButtons(), EditDocumentController\getLanguages(), EditDocumentController\init(), EditDocumentController\languageSwitch(), and EditDocumentController\openInNewWindowLink().
getNewIconMode | ( | $table, | |
$key = 'saveDocNew' |
|||
) |
Function used to look for configuration of buttons in the form: Fx. disabling buttons or showing them at various positions.
string | $table | The table for which the configuration may be specific |
string | $key | The option for look for. Default is checking if the saveDocNew button should be displayed. |
Definition at line 1878 of file EditDocumentController.php.
References EditDocumentController\getBackendUser().
Referenced by EditDocumentController\getButtons().
getRecordForEdit | ( | $table, | |
$theUid | |||
) |
Get record for editing.
string | $table | Table name |
int | $theUid | Record UID |
Definition at line 1784 of file EditDocumentController.php.
References $GLOBALS, EditDocumentController\getBackendUser(), BackendUtility\getRecord(), and BackendUtility\getWorkspaceVersionOfRecord().
Referenced by EditDocumentController\fixWSversioningInEditConf().
|
protected |
Get the SignalSlot dispatcher
Definition at line 421 of file EditDocumentController.php.
References EditDocumentController\$signalSlotDispatcher, and GeneralUtility\makeInstance().
Referenced by EditDocumentController\emitFunctionAfterSignal().
init | ( | ) |
Initialize the normal module operation
Definition at line 690 of file EditDocumentController.php.
References $GLOBALS, $lang, EditDocumentController\$retUrl, GeneralUtility\_GP(), EditDocumentController\editRegularContentFromId(), EditDocumentController\emitFunctionAfterSignal(), EditDocumentController\generatePreviewCode(), EditDocumentController\getBackendUser(), EditDocumentController\getLanguageService(), GeneralUtility\implodeArrayForUrl(), GeneralUtility\intExplode(), ExtensionManagementUtility\isLoaded(), GeneralUtility\makeInstance(), GeneralUtility\quoteJSvalue(), GeneralUtility\trimExplode(), and GeneralUtility\writeFileToTypo3tempDir().
Referenced by EditDocumentController\mainAction().
languageSwitch | ( | $table, | |
$uid, | |||
$pid = null |
|||
) |
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.
string | $table | Table name |
int | $uid | Uid for which to create a new language |
int | $pid | Pid of the record |
Definition at line 1533 of file EditDocumentController.php.
References $GLOBALS, $lang, BackendUtility\deleteClause(), EditDocumentController\getBackendUser(), EditDocumentController\getDatabaseConnection(), EditDocumentController\getLanguages(), EditDocumentController\getLanguageService(), BackendUtility\getLinkToDataHandlerAction(), BackendUtility\getLiveVersionOfRecord(), BackendUtility\getRecord(), and BackendUtility\versioningPlaceholderClause().
localizationRedirect | ( | $justLocalized | ) |
Redirects to FormEngine with new parameters to edit a just created localized record
string | $justLocalized | String passed by GET &justLocalized= |
Definition at line 1635 of file EditDocumentController.php.
References $GLOBALS, GeneralUtility\_GP(), BackendUtility\deleteClause(), EditDocumentController\getDatabaseConnection(), HttpUtility\redirect(), GeneralUtility\sanitizeLocalUrl(), and BackendUtility\versioningPlaceholderClause().
Referenced by EditDocumentController\preInit().
mainAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Injects the request object for the current request or subrequest
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 1968 of file EditDocumentController.php.
References $response, EditDocumentController\doProcessData(), MessageInterface\getBody(), EditDocumentController\init(), BackendUtility\lockRecords(), and EditDocumentController\preInit().
openInNewWindowLink | ( | ) |
Creates open-in-window link
Definition at line 1494 of file EditDocumentController.php.
References ButtonBar\BUTTON_POSITION_RIGHT, EditDocumentController\getLanguageService(), GeneralUtility\linkThisScript(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.
Referenced by EditDocumentController\getButtons().
|
protected |
Migrates a set of (possibly nested) GET parameters in TypoScript syntax to a plain array
This basically removes the trailing dots of sub-array keys in TypoScript. The result can be used to create a query string with GeneralUtility::implodeArrayForUrl().
array | $parameters | Should be an empty array by default |
array | $typoScript | The TypoScript configuration |
Definition at line 942 of file EditDocumentController.php.
Referenced by EditDocumentController\generatePreviewCode().
preInit | ( | ) |
First initialization.
Definition at line 444 of file EditDocumentController.php.
References EditDocumentController\$editconf, EditDocumentController\$overrideVals, GeneralUtility\_GET(), GeneralUtility\_GP(), EditDocumentController\closeDocument(), EditDocumentController\compileStoreDat(), EditDocumentController\emitFunctionAfterSignal(), EditDocumentController\fixWSversioningInEditConf(), EditDocumentController\getBackendUser(), GeneralUtility\getIndpEnv(), EditDocumentController\localizationRedirect(), GeneralUtility\sanitizeLocalUrl(), and EditDocumentController\setDocument().
Referenced by EditDocumentController\mainAction().
printContent | ( | ) |
Outputting the accumulated content to screen
Definition at line 1018 of file EditDocumentController.php.
References EditDocumentController\$content, and GeneralUtility\logDeprecatedFunction().
setDocument | ( | $currentDocFromHandlerMD5 = '' , |
|
$retUrl = '' |
|||
) |
Redirects to the document pointed to by $currentDocFromHandlerMD5 OR $retUrl (depending on some internal calculations). Most likely you will get a header-location redirect from this function.
string | $currentDocFromHandlerMD5 | Pointer to the document in the docHandler array |
string | $retUrl | Alternative/Default retUrl |
Definition at line 1939 of file EditDocumentController.php.
References EditDocumentController\$retUrl, GeneralUtility\getIndpEnv(), and HttpUtility\redirect().
Referenced by EditDocumentController\closeDocument(), and EditDocumentController\preInit().
shortCutLink | ( | ) |
Create shortcut icon
Definition at line 1473 of file EditDocumentController.php.
Referenced by EditDocumentController\getButtons().
$cacheCmd |
Definition at line 128 of file EditDocumentController.php.
$closeDoc |
Definition at line 95 of file EditDocumentController.php.
$cmd |
Definition at line 116 of file EditDocumentController.php.
Referenced by EditDocumentController\fixWSversioningInEditConf().
$columnsOnly |
Definition at line 64 of file EditDocumentController.php.
$content |
Definition at line 240 of file EditDocumentController.php.
Referenced by EditDocumentController\printContent().
$data |
Definition at line 111 of file EditDocumentController.php.
$defVals |
Definition at line 72 of file EditDocumentController.php.
$doc |
Definition at line 226 of file EditDocumentController.php.
$docDat |
Definition at line 320 of file EditDocumentController.php.
$docHandler |
Definition at line 330 of file EditDocumentController.php.
$dontStoreDocumentRef = 0 |
Definition at line 392 of file EditDocumentController.php.
$doSave |
Definition at line 104 of file EditDocumentController.php.
$editconf |
Definition at line 55 of file EditDocumentController.php.
Referenced by EditDocumentController\preInit().
Definition at line 185 of file EditDocumentController.php.
$elementsData |
Definition at line 337 of file EditDocumentController.php.
$errorC |
Definition at line 351 of file EditDocumentController.php.
$firstEl |
Definition at line 344 of file EditDocumentController.php.
|
protected |
Definition at line 385 of file EditDocumentController.php.
$MCONF |
Definition at line 278 of file EditDocumentController.php.
$mirror |
Definition at line 121 of file EditDocumentController.php.
$modTSconfig |
Definition at line 380 of file EditDocumentController.php.
$newC |
Definition at line 358 of file EditDocumentController.php.
$noView |
Definition at line 199 of file EditDocumentController.php.
$overrideVals |
Definition at line 80 of file EditDocumentController.php.
Referenced by EditDocumentController\preInit().
$pageinfo |
Definition at line 283 of file EditDocumentController.php.
$perms_clause |
Definition at line 204 of file EditDocumentController.php.
$popViewId |
Definition at line 162 of file EditDocumentController.php.
$popViewId_addParams |
Definition at line 169 of file EditDocumentController.php.
|
protected |
Definition at line 404 of file EditDocumentController.php.
$R_URI |
Definition at line 273 of file EditDocumentController.php.
$R_URL_getvars |
Definition at line 266 of file EditDocumentController.php.
$R_URL_parts |
Definition at line 258 of file EditDocumentController.php.
$recTitle |
Definition at line 192 of file EditDocumentController.php.
$redirect |
Definition at line 135 of file EditDocumentController.php.
$retUrl |
Definition at line 249 of file EditDocumentController.php.
Referenced by EditDocumentController\init(), and EditDocumentController\setDocument().
$returnEditConf |
Definition at line 212 of file EditDocumentController.php.
$returnNewPageId |
Definition at line 143 of file EditDocumentController.php.
$returnUrl |
Definition at line 88 of file EditDocumentController.php.
|
protected |
Definition at line 397 of file EditDocumentController.php.
Referenced by EditDocumentController\getSignalSlotDispatcher().
$storeArray |
Definition at line 299 of file EditDocumentController.php.
$storeTitle = '' |
Definition at line 291 of file EditDocumentController.php.
$storeUrl |
Definition at line 306 of file EditDocumentController.php.
$storeUrlMd5 |
Definition at line 313 of file EditDocumentController.php.
Referenced by EditDocumentController\closeDocument().
$template |
Definition at line 233 of file EditDocumentController.php.
$uc |
Definition at line 155 of file EditDocumentController.php.
$vC |
Definition at line 148 of file EditDocumentController.php.
$viewId |
Definition at line 366 of file EditDocumentController.php.
$viewId_addParams |
Definition at line 373 of file EditDocumentController.php.
$viewUrl |
Definition at line 176 of file EditDocumentController.php.
|
protected |
Definition at line 219 of file EditDocumentController.php.