TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ParseHtmlController Class Reference

Public Member Functions

 __construct ()
 
 init ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 printContent ()
 
 main_parse_html ($openKeys)
 

Public Attributes

 $content
 
 $modData
 
 $doc
 
 $extKey = 'rtehtmlarea'
 
 $prefixId = 'TYPO3HtmlParser'
 

Protected Member Functions

 keepSpanTagsWithId (&$HTMLparserConfig)
 

Protected Attributes

 $moduleName = 'rtehtmlarea_wizard_parse_html'
 

Detailed Description

Content parsing for htmlArea RTE

Definition at line 24 of file ParseHtmlController.php.

Constructor & Destructor Documentation

__construct ( )

Initialize

Definition at line 63 of file ParseHtmlController.php.

References ParseHtmlController\init().

Member Function Documentation

init ( )
Returns
void

Definition at line 71 of file ParseHtmlController.php.

References $GLOBALS, GeneralUtility\_GP(), and GeneralUtility\makeInstance().

Referenced by ParseHtmlController\__construct().

keepSpanTagsWithId ( $HTMLparserConfig)
protected

Modify incoming HTMLparser config in an attempt to keep span tags with id Such tags are used by the RTE in order to restore the cursor position when the cleaning operation is completed.

Parameters
array$HTMLparserConfig,:incoming HTMLParser configuration (wil be modified)
Returns
void

Definition at line 167 of file ParseHtmlController.php.

References elseif, GeneralUtility\inList(), and GeneralUtility\rmFromList().

Referenced by ParseHtmlController\main_parse_html().

main ( )

Main function

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, use main_parse_html() instead

Definition at line 106 of file ParseHtmlController.php.

References GeneralUtility\logDeprecatedFunction(), and ParseHtmlController\main_parse_html().

main_parse_html (   $openKeys)

Rich Text Editor (RTE) html parser

Parameters
array$openKeysUnused
Returns
string

Definition at line 131 of file ParseHtmlController.php.

References $GLOBALS, GeneralUtility\_GP(), BackendUtility\getPagesTSconfig(), GeneralUtility\getUserObj(), ParseHtmlController\keepSpanTagsWithId(), and GeneralUtility\makeInstance().

Referenced by ParseHtmlController\main(), and ParseHtmlController\mainAction().

mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest As this controller goes only through the main_parse_html() method, it is rather simple for now

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

Definition at line 91 of file ParseHtmlController.php.

References $response, MessageInterface\getBody(), ParseHtmlController\main_parse_html(), and MessageInterface\withHeader().

printContent ( )

Print content

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, use mainAction() instead

Definition at line 119 of file ParseHtmlController.php.

References ParseHtmlController\$content, and GeneralUtility\logDeprecatedFunction().

Member Data Documentation

$content

Definition at line 29 of file ParseHtmlController.php.

Referenced by ParseHtmlController\printContent().

$doc

Definition at line 41 of file ParseHtmlController.php.

$extKey = 'rtehtmlarea'

Definition at line 46 of file ParseHtmlController.php.

$modData

Definition at line 34 of file ParseHtmlController.php.

$moduleName = 'rtehtmlarea_wizard_parse_html'
protected

Definition at line 58 of file ParseHtmlController.php.

$prefixId = 'TYPO3HtmlParser'

Definition at line 51 of file ParseHtmlController.php.