---
title: "TypoScript per PHP im Backend ansprechen?!"
url: "https://www.typo3.net/d/107621-typoscript-per-php-im-backend-ansprechen"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage"]
created: "2011-10-05"
last_reply: "2011-10-09"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# TypoScript per PHP im Backend ansprechen?!

Extensions › Entwicklung · 1 Antwort · gestartet 2011-10-05

## Eröffnungsbeitrag

**jimmykimmy** · 2011-10-05 · [Beitrag #1](https://www.typo3.net/d/107621-typoscript-per-php-im-backend-ansprechen/1)

Ich habe derzeit ein Problem.
Im Hook "processDatamap_afterDatabaseOperations" speichere ich die aktuelle Aktion mit (also z.B. neue Page mit der ID 7 erstellt).
Nun möchte ich aber eine Reloadsperre für updates einbauen. Sprich: wenn jemand 10 mal in 1 minute die selbe page editiert, braucht es nicht alle geloggt werden. Sinnvoll wäre da eine Zeitspanne (in meinem Fall jedenfalls) von 10 Minuten, also 600 Sekunden.

In meiner selbstgeschriebenen Extension, in der ich auch den Hook anspreche, habe ich ein TypoScript Code und der wichtige Code sieht wie folgt aus:

```typoscript
# Module configuration
module.tx_myext{
	persistence {
		storagePid = {$module.tx_myext.persistence.storagePid}
	}
	
	view {
		templateRootPath = {$module.tx_myext.view.templateRootPath}
		partialRootPath = {$module.tx_myext.view.partialRootPath}
		layoutRootPath = {$module.tx_myext.view.layoutRootPath}
	}
	
	conf {
		analyze {
			reloadBlocker {
				# reloadBocker -> time to block count of page updates of same dataset in seconds
				pages_update = {$module.tx_myext.conf.analyze.reloadBlocker.pages_update}
				# reloadBocker -> time to block count of news updates of same dataset in seconds
				tt_news_update = {$module.tx_myext.conf.analyze.reloadBlocker.tt_news_update}
				# reloadBocker -> time to block count of content element updates of same dataset in seconds
				tt_content_update = {$module.tx_myext.conf.analyze.reloadBlocker.tt_content_update}
			}
		}
	}
}
```

Problem ist jedoch, dass ich im Backend keinen Zugriff auf $GLOBALS[TSFE] habe. Allerdings habe ich dank diesem Thread ([HIER](https://www.typo3.net/d/25100-zugriff-auf-typoscript-constants-im-backend)) das Objekt per Hand erstellt.

Nun aber zum Problem:
Ich bekomme zwar einen TS-Code von meiner Extension, allerdings weiß ich nicht, wo er herkommt.

Der [module.]-Part ist komplett futsch und der [plugin.] Part ist vorhanden, aber unvollständig:

tx_gamification.settings. 	EMPTY!
tx_gamification.persistence.storagePid
tx_gamification.persistence.classes. 	EMPTY!
tx_gamification.view.templateRootPath
tx_gamification.view.layoutRootPath
tx_gamification.view.partialRootPath
tx_gamification.view.defaultPid

Ich weiß z.b. nicht, woher "tx_gamification.persistence.classes." und "tx_gamification.view.defaultPid" kommen und zweitens sind alle Werte leer!

Im Object-Manager sehe ich übrigens alle Daten korrekt!

## Antworten

### [#2](https://www.typo3.net/d/107621-typoscript-per-php-im-backend-ansprechen/2) · aemka · 2011-10-09

Such noch mal weiter hier im Forum. Wir hatten das Thema schon oft und auf jeden Fall auch schon Lösungsansätze, die keine Probleme gemacht haben.

---

Quelle: „TypoScript per PHP im Backend ansprechen?!“, typo3.net, https://www.typo3.net/d/107621-typoscript-per-php-im-backend-ansprechen
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
