TYPO3
7.6
|
Public Member Functions | |
main (ServerRequestInterface $request, ResponseInterface $response) | |
processRequest (ServerRequestInterface $request, ResponseInterface $response) | |
startHandler ($xml_parser, $tag, $attributes) | |
endHandler ($xml_parser, $tag) | |
spellCheckHandler ($xml_parser, $string) | |
collectDataHandler ($xml_parser, $string) | |
defaultHandler ($xml_parser, $string) | |
Public Attributes | |
$extKey = 'rtehtmlarea' | |
$siteUrl | |
$charset = 'utf-8' | |
$parserCharset = 'utf-8' | |
$defaultAspellEncoding = 'utf-8' | |
$aspellEncoding | |
$result | |
$text | |
$misspelled = array() | |
$suggestedWords | |
$wordCount = 0 | |
$suggestionCount = 0 | |
$suggestedWordCount = 0 | |
$pspell_link | |
$pspellMode = 'normal' | |
$dictionary | |
$AspellDirectory | |
$pspell_is_available | |
$forceCommandMode = 0 | |
$filePrefix = 'rtehtmlarea_' | |
$xmlCharacterData = '' | |
Protected Member Functions | |
setMainDictionaryPath () | |
getMainDictionaryCharacterSet () | |
setPersonalDictionaryPath () | |
fixPersonalDictionaryCharacterSet () | |
Protected Attributes | |
$csConvObj | |
$uploadFolder = 'uploads/tx_rtehtmlarea/' | |
$mainDictionaryPath | |
$personalDictionaryPath | |
Spell checking plugin 'tx_rtehtmlarea_pi1' for the htmlArea RTE extension.
Definition at line 24 of file SpellCheckingController.php.
collectDataHandler | ( | $xml_parser, | |
$string | |||
) |
Handler for collecting data within a tag
Definition at line 673 of file SpellCheckingController.php.
defaultHandler | ( | $xml_parser, | |
$string | |||
) |
Default handler for the xml parser
Definition at line 681 of file SpellCheckingController.php.
endHandler | ( | $xml_parser, | |
$tag | |||
) |
Handler for the closing of a tag
Definition at line 542 of file SpellCheckingController.php.
References SpellCheckingController\spellCheckHandler().
|
protected |
Ensures that the personal dictionary is utf-8 encoded
Definition at line 467 of file SpellCheckingController.php.
References SpellCheckingController\$result, and GeneralUtility\SYSLOG_SEVERITY_ERROR.
Referenced by SpellCheckingController\processRequest().
|
protected |
Gets the character set the main dictionary
Definition at line 391 of file SpellCheckingController.php.
References GeneralUtility\SYSLOG_SEVERITY_ERROR, and GeneralUtility\trimExplode().
Referenced by SpellCheckingController\processRequest().
main | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
AJAX entry point
ServerRequestInterface | $request | |
ResponseInterface | $response |
\UnexpectedValueException |
Definition at line 155 of file SpellCheckingController.php.
References SpellCheckingController\processRequest().
processRequest | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Main class of Spell Checker plugin
ServerRequestInterface | $request | |
ResponseInterface | $response |
\InvalidArgumentException | |
\UnexpectedValueException |
Definition at line 169 of file SpellCheckingController.php.
References SpellCheckingController\$defaultAspellEncoding, SpellCheckingController\$dictionary, $GLOBALS, SpellCheckingController\$misspelled, SpellCheckingController\$parserCharset, SpellCheckingController\$pspellMode, $response, SpellCheckingController\$result, GeneralUtility\_POST(), SpellCheckingController\fixPersonalDictionaryCharacterSet(), MessageInterface\getBody(), SpellCheckingController\getMainDictionaryCharacterSet(), GeneralUtility\inList(), GeneralUtility\makeInstance(), SpellCheckingController\setMainDictionaryPath(), SpellCheckingController\setPersonalDictionaryPath(), ExtensionManagementUtility\siteRelPath(), GeneralUtility\SYSLOG_SEVERITY_ERROR, GeneralUtility\tempnam(), GeneralUtility\trimExplode(), GeneralUtility\unlink_tempfile(), and MessageInterface\withHeader().
Referenced by SpellCheckingController\main().
|
protected |
Sets the path to the main dictionary
Definition at line 372 of file SpellCheckingController.php.
References SpellCheckingController\$mainDictionaryPath, and GeneralUtility\SYSLOG_SEVERITY_ERROR.
Referenced by SpellCheckingController\processRequest().
|
protected |
Sets the path to the personal dictionary
Definition at line 434 of file SpellCheckingController.php.
References $GLOBALS, SpellCheckingController\$personalDictionaryPath, and GeneralUtility\_POST().
Referenced by SpellCheckingController\processRequest().
spellCheckHandler | ( | $xml_parser, | |
$string | |||
) |
Handler for the content of a tag
Definition at line 579 of file SpellCheckingController.php.
References GeneralUtility\tempnam(), GeneralUtility\trimExplode(), and GeneralUtility\unlink_tempfile().
Referenced by SpellCheckingController\endHandler(), and SpellCheckingController\startHandler().
startHandler | ( | $xml_parser, | |
$tag, | |||
$attributes | |||
) |
Handler for the opening of a tag
Definition at line 500 of file SpellCheckingController.php.
References SpellCheckingController\spellCheckHandler().
$AspellDirectory |
Definition at line 115 of file SpellCheckingController.php.
$aspellEncoding |
Definition at line 60 of file SpellCheckingController.php.
$charset = 'utf-8' |
Definition at line 45 of file SpellCheckingController.php.
|
protected |
Definition at line 29 of file SpellCheckingController.php.
$defaultAspellEncoding = 'utf-8' |
Definition at line 55 of file SpellCheckingController.php.
Referenced by SpellCheckingController\processRequest().
$dictionary |
Definition at line 110 of file SpellCheckingController.php.
Referenced by SpellCheckingController\processRequest().
$extKey = 'rtehtmlarea' |
Definition at line 35 of file SpellCheckingController.php.
$filePrefix = 'rtehtmlarea_' |
Definition at line 130 of file SpellCheckingController.php.
$forceCommandMode = 0 |
Definition at line 125 of file SpellCheckingController.php.
|
protected |
Definition at line 136 of file SpellCheckingController.php.
Referenced by SpellCheckingController\setMainDictionaryPath().
$misspelled = array() |
Definition at line 75 of file SpellCheckingController.php.
Referenced by SpellCheckingController\processRequest().
$parserCharset = 'utf-8' |
Definition at line 50 of file SpellCheckingController.php.
Referenced by SpellCheckingController\processRequest().
|
protected |
Definition at line 139 of file SpellCheckingController.php.
Referenced by SpellCheckingController\setPersonalDictionaryPath().
$pspell_is_available |
Definition at line 120 of file SpellCheckingController.php.
$pspell_link |
Definition at line 100 of file SpellCheckingController.php.
$pspellMode = 'normal' |
Definition at line 105 of file SpellCheckingController.php.
Referenced by SpellCheckingController\processRequest().
$result |
Definition at line 65 of file SpellCheckingController.php.
Referenced by SpellCheckingController\fixPersonalDictionaryCharacterSet(), and SpellCheckingController\processRequest().
$siteUrl |
Definition at line 40 of file SpellCheckingController.php.
$suggestedWordCount = 0 |
Definition at line 95 of file SpellCheckingController.php.
$suggestedWords |
Definition at line 80 of file SpellCheckingController.php.
$suggestionCount = 0 |
Definition at line 90 of file SpellCheckingController.php.
$text |
Definition at line 70 of file SpellCheckingController.php.
|
protected |
Definition at line 133 of file SpellCheckingController.php.
$wordCount = 0 |
Definition at line 85 of file SpellCheckingController.php.
$xmlCharacterData = '' |
Definition at line 144 of file SpellCheckingController.php.