TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rtehtmlarea\Controller\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 = []
 
 $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()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::collectDataHandler (   $xml_parser,
  $string 
)

Handler for collecting data within a tag

Definition at line 675 of file SpellCheckingController.php.

◆ defaultHandler()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::defaultHandler (   $xml_parser,
  $string 
)

Default handler for the xml parser

Definition at line 683 of file SpellCheckingController.php.

◆ endHandler()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::endHandler (   $xml_parser,
  $tag 
)

Handler for the closing of a tag

Definition at line 544 of file SpellCheckingController.php.

References TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\spellCheckHandler().

◆ fixPersonalDictionaryCharacterSet()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::fixPersonalDictionaryCharacterSet ( )
protected

◆ getMainDictionaryCharacterSet()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::getMainDictionaryCharacterSet ( )
protected

Gets the character set the main dictionary

Returns
string character set the main dictionary

Definition at line 393 of file SpellCheckingController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\SYSLOG_SEVERITY_ERROR, and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\processRequest().

◆ main()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::main ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

AJAX entry point

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface
Exceptions

Definition at line 154 of file SpellCheckingController.php.

References TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\processRequest().

◆ processRequest()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::processRequest ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

◆ setMainDictionaryPath()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::setMainDictionaryPath ( )
protected

◆ setPersonalDictionaryPath()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::setPersonalDictionaryPath ( )
protected

◆ spellCheckHandler()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::spellCheckHandler (   $xml_parser,
  $string 
)

◆ startHandler()

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::startHandler (   $xml_parser,
  $tag,
  $attributes 
)

Handler for the opening of a tag

Definition at line 502 of file SpellCheckingController.php.

References TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController\spellCheckHandler().

Member Data Documentation

◆ $AspellDirectory

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$AspellDirectory

Definition at line 115 of file SpellCheckingController.php.

◆ $aspellEncoding

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$aspellEncoding

Definition at line 60 of file SpellCheckingController.php.

◆ $charset

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$charset = 'utf-8'

Definition at line 45 of file SpellCheckingController.php.

◆ $csConvObj

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$csConvObj
protected

Definition at line 29 of file SpellCheckingController.php.

◆ $defaultAspellEncoding

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$defaultAspellEncoding = 'utf-8'

◆ $dictionary

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$dictionary

◆ $extKey

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$extKey = 'rtehtmlarea'

Definition at line 35 of file SpellCheckingController.php.

◆ $filePrefix

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$filePrefix = 'rtehtmlarea_'

Definition at line 130 of file SpellCheckingController.php.

◆ $forceCommandMode

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$forceCommandMode = 0

Definition at line 125 of file SpellCheckingController.php.

◆ $mainDictionaryPath

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$mainDictionaryPath
protected

◆ $misspelled

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$misspelled = []

Definition at line 75 of file SpellCheckingController.php.

◆ $parserCharset

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$parserCharset = 'utf-8'

◆ $personalDictionaryPath

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$personalDictionaryPath
protected

◆ $pspell_is_available

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$pspell_is_available

Definition at line 120 of file SpellCheckingController.php.

◆ $pspell_link

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$pspell_link

Definition at line 100 of file SpellCheckingController.php.

◆ $pspellMode

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$pspellMode = 'normal'

◆ $result

◆ $siteUrl

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$siteUrl

Definition at line 40 of file SpellCheckingController.php.

◆ $suggestedWordCount

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$suggestedWordCount = 0

Definition at line 95 of file SpellCheckingController.php.

◆ $suggestedWords

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$suggestedWords

Definition at line 80 of file SpellCheckingController.php.

◆ $suggestionCount

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$suggestionCount = 0

Definition at line 90 of file SpellCheckingController.php.

◆ $text

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$text

Definition at line 70 of file SpellCheckingController.php.

◆ $uploadFolder

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$uploadFolder = 'uploads/tx_rtehtmlarea/'
protected

Definition at line 133 of file SpellCheckingController.php.

◆ $wordCount

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$wordCount = 0

Definition at line 85 of file SpellCheckingController.php.

◆ $xmlCharacterData

TYPO3\CMS\Rtehtmlarea\Controller\SpellCheckingController::$xmlCharacterData = ''

Definition at line 144 of file SpellCheckingController.php.