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

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
 

Detailed Description

Spell checking plugin 'tx_rtehtmlarea_pi1' for the htmlArea RTE extension.

Definition at line 24 of file SpellCheckingController.php.

Member Function Documentation

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().

fixPersonalDictionaryCharacterSet ( )
protected

Ensures that the personal dictionary is utf-8 encoded

Returns
void

Definition at line 467 of file SpellCheckingController.php.

References SpellCheckingController\$result, and GeneralUtility\SYSLOG_SEVERITY_ERROR.

Referenced by SpellCheckingController\processRequest().

getMainDictionaryCharacterSet ( )
protected

Gets the character set the main dictionary

Returns
string 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

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface
Exceptions
\UnexpectedValueException

Definition at line 155 of file SpellCheckingController.php.

References SpellCheckingController\processRequest().

processRequest ( ServerRequestInterface  $request,
ResponseInterface  $response 
)
setMainDictionaryPath ( )
protected

Sets the path to the main dictionary

Returns
string 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().

setPersonalDictionaryPath ( )
protected

Sets the path to the personal dictionary

Returns
string 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 
)
startHandler (   $xml_parser,
  $tag,
  $attributes 
)

Handler for the opening of a tag

Definition at line 500 of file SpellCheckingController.php.

References SpellCheckingController\spellCheckHandler().

Member Data Documentation

$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.

$csConvObj
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.

$mainDictionaryPath
protected
$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().

$personalDictionaryPath
protected
$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
$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.

$uploadFolder = 'uploads/tx_rtehtmlarea/'
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.