66 static public function get($className = NULL) {
67 if ($className === NULL) {
68 $className = self::getClassNameByState();
70 if (!isset(self::$instances[$className])) {
71 self::createAndStoreInstance($className);
73 return self::$instances[$className];
84 case self::isInstallToolSession():
85 $className =
'TYPO3\\CMS\\Core\\FormProtection\\InstallToolFormProtection';
87 case self::isBackendSession():
88 $className =
'TYPO3\\CMS\\Core\\FormProtection\\BackendFormProtection';
90 case self::isFrontendSession():
93 $className =
'TYPO3\\CMS\\Core\\FormProtection\\DisabledFormProtection';
113 return isset(
$GLOBALS[
'BE_USER']) &&
$GLOBALS[
'BE_USER'] instanceof \TYPO3\CMS\Core\Authentication\BackendUserAuthentication && isset(
$GLOBALS[
'BE_USER']->user[
'uid']);
122 return is_object(
$GLOBALS[
'TSFE']) &&
$GLOBALS[
'TSFE']->fe_user instanceof \TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication && isset(
$GLOBALS[
'TSFE']->fe_user->user[
'uid']) &&
TYPO3_MODE ===
'FE';
133 if (!class_exists($className, TRUE)) {
134 throw new \InvalidArgumentException(
'$className must be the name of an existing class, but ' .
'actually was "' . $className .
'".', 1285352962);
138 throw new \InvalidArgumentException(
'$className must be a subclass of ' .
'TYPO3\\CMS\\Core\\FormProtection\\AbstractFormProtection, but actually was "' . $className .
'".', 1285353026);
140 self::$instances[$className] = $instance;
155 self::$instances[$className] = $instance;
166 foreach (self::$instances as $key => $instance) {
167 $instance->__destruct();
168 unset(self::$instances[$key]);
const TYPO3_enterInstallScript
static makeInstance($className)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]