‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Controller\File\EditFileController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\File\EditFileController:
TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
 getButtons ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait
mixed __call (string $methodName, array $arguments)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait
bool __isset (string $propertyName)
 
mixed __get (string $propertyName)
 
 __set (string $propertyName, $propertyValue)
 
 __unset (string $propertyName)
 

Protected Member Functions

 main ()
 
 init (ServerRequestInterface $request)
 
ResponseInterface null process ()
 
 getButtonsInternal ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

string $content
 
string $title
 
DocumentTemplate $doc
 
string $origTarget
 
string $target
 
string $returnUrl
 
TYPO3 CMS Core Resource AbstractFile $fileObject
 
ModuleTemplate $moduleTemplate
 

Private Attributes

array $deprecatedPublicMethods
 
array $deprecatedPublicProperties
 

Detailed Description

Script Class for rendering the file editing screen

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 45 of file EditFileController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\File\EditFileController::__construct ( )

Constructor

Definition at line 114 of file EditFileController.php.

References $GLOBALS, and TYPO3\CMS\Backend\Controller\File\EditFileController\init().

Member Function Documentation

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Backend\Controller\File\EditFileController::getBackendUser ( )
protected

Returns the current BE user.

Returns
‪BackendUserAuthentication

Definition at line 409 of file EditFileController.php.

References $GLOBALS.

◆ getButtons()

TYPO3\CMS\Backend\Controller\File\EditFileController::getButtons ( )

Builds the buttons for the docheader and returns them as an

Deprecated:
‪since TYPO3 v9, will be set protected in TYPO3 v10.0

Definition at line 330 of file EditFileController.php.

References TYPO3\CMS\Backend\Controller\File\EditFileController\getButtonsInternal().

◆ getButtonsInternal()

◆ getLanguageService()

LanguageService TYPO3\CMS\Backend\Controller\File\EditFileController::getLanguageService ( )
protected

◆ init()

TYPO3\CMS\Backend\Controller\File\EditFileController::init ( ServerRequestInterface  $request)
protected

◆ main()

TYPO3\CMS\Backend\Controller\File\EditFileController::main ( )
protected

Main function, rendering the actual content of the editing page

Definition at line 139 of file EditFileController.php.

References TYPO3\CMS\Backend\Controller\File\EditFileController\process(), and TYPO3\CMS\Core\Utility\HttpUtility\redirect().

◆ mainAction()

ResponseInterface TYPO3\CMS\Backend\Controller\File\EditFileController::mainAction ( ServerRequestInterface  $request)

Processes the request, currently everything is handled and put together via "main()"

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 127 of file EditFileController.php.

References TYPO3\CMS\Backend\Controller\File\EditFileController\process().

◆ process()

Member Data Documentation

◆ $content

string TYPO3\CMS\Backend\Controller\File\EditFileController::$content
protected

Module content accumulated.

Definition at line 68 of file EditFileController.php.

Referenced by TYPO3\CMS\Backend\Controller\File\EditFileController\process().

◆ $deprecatedPublicMethods

array TYPO3\CMS\Backend\Controller\File\EditFileController::$deprecatedPublicMethods
private
Initial value:
= array(
'main' => 'Using EditFileController::main() is deprecated and will not be possible anymore in TYPO3 v10.0.',
)

Definition at line 50 of file EditFileController.php.

◆ $deprecatedPublicProperties

array TYPO3\CMS\Backend\Controller\File\EditFileController::$deprecatedPublicProperties
private
Initial value:
= array(
'origTarget' => 'Using $origTarget of class EditFileController from outside is discouraged, as this variable is only used for internal storage.',
'target' => 'Using $target of class EditFileController from outside is discouraged, as this variable is only used for internal storage.',
'returnUrl' => 'Using $returnUrl of class EditFileController from outside is discouraged, as this variable is only used for internal storage.',
'content' => 'Using $content of class EditFileController from outside is discouraged, as this variable is only used for internal storage.',
'title' => 'Using $title of class EditFileController from outside is discouraged, as this variable is only used for internal storage.',
'doc' => 'Using $doc of class EditFileController from outside is discouraged, as this variable is only used for internal storage.',
)

Definition at line 56 of file EditFileController.php.

◆ $doc

DocumentTemplate TYPO3\CMS\Backend\Controller\File\EditFileController::$doc
protected

Document template object

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0, unused

Definition at line 79 of file EditFileController.php.

◆ $fileObject

TYPO3 CMS Core Resource AbstractFile TYPO3\CMS\Backend\Controller\File\EditFileController::$fileObject
protected

the file that is being edited on

Definition at line 103 of file EditFileController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Backend\Controller\File\EditFileController::$moduleTemplate
protected

ModuleTemplate object

Definition at line 109 of file EditFileController.php.

◆ $origTarget

string TYPO3\CMS\Backend\Controller\File\EditFileController::$origTarget
protected

Original input target

Definition at line 85 of file EditFileController.php.

◆ $returnUrl

string TYPO3\CMS\Backend\Controller\File\EditFileController::$returnUrl
protected

Return URL of list module.

Definition at line 97 of file EditFileController.php.

◆ $target

string TYPO3\CMS\Backend\Controller\File\EditFileController::$target
protected

The original target, but validated.

Definition at line 91 of file EditFileController.php.

Referenced by TYPO3\CMS\Backend\Controller\File\EditFileController\process().

◆ $title

string TYPO3\CMS\Backend\Controller\File\EditFileController::$title
protected