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:
# 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) 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!