TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
EditFileController Class Reference
Inheritance diagram for EditFileController:
AbstractModule

Public Member Functions

 __construct ()
 
 main ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 getButtons ()
 
- Public Member Functions inherited from AbstractModule
 __construct ()
 
 processRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

 $content
 
 $title
 
 $doc
 
 $origTarget
 
 $target
 
 $returnUrl
 

Protected Member Functions

 init ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $fileObject
 
- Protected Attributes inherited from AbstractModule
 $moduleTemplate
 
 $request
 

Detailed Description

Script Class for rendering the file editing screen

Definition at line 32 of file EditFileController.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 84 of file EditFileController.php.

References $GLOBALS, and EditFileController\init().

Member Function Documentation

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 304 of file EditFileController.php.

References $GLOBALS.

getButtons ( )

Builds the buttons for the docheader and returns them as an array

Returns
array

Definition at line 235 of file EditFileController.php.

References ButtonBar\BUTTON_POSITION_LEFT, EditFileController\getLanguageService(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by EditFileController\main().

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 294 of file EditFileController.php.

References $GLOBALS.

Referenced by EditFileController\getButtons(), and EditFileController\init().

init ( )
protected

Initialize script class

Exceptions
InsufficientFileAccessPermissionsException
InvalidArgumentException
RuntimeException

Definition at line 98 of file EditFileController.php.

References EditFileController\$title, GeneralUtility\_GP(), ResourceFactory\getInstance(), EditFileController\getLanguageService(), GeneralUtility\makeInstance(), GeneralUtility\sanitizeLocalUrl(), and Icon\SIZE_SMALL.

Referenced by EditFileController\__construct().

mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

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

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

Definition at line 222 of file EditFileController.php.

References EditFileController\main().

Member Data Documentation

$content

Definition at line 39 of file EditFileController.php.

Referenced by EditFileController\main().

$doc

Definition at line 51 of file EditFileController.php.

$fileObject
protected

Definition at line 79 of file EditFileController.php.

$origTarget

Definition at line 58 of file EditFileController.php.

$returnUrl

Definition at line 72 of file EditFileController.php.

$target

Definition at line 65 of file EditFileController.php.

Referenced by EditFileController\main().

$title

Definition at line 44 of file EditFileController.php.

Referenced by EditFileController\init().