TYPO3 CMS  TYPO3_6-2
TitleCaseFilter.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Form\Filter;
3 
17 
23 class TitleCaseFilter implements FilterInterface {
24 
31  public function filter($value) {
32  $tsfe = $this->getTypoScriptFrontendController();
33  $lower = $tsfe->csConvObj->conv_case($tsfe->renderCharset, $value, 'toLower');
34  return ucwords($lower);
35  }
36 
40  protected function getTypoScriptFrontendController() {
41  return $GLOBALS['TSFE'];
42  }
43 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]