TypoScript - globale Variablen: Unterschied zwischen den Versionen
Aus Wikizone
| Zeile 8: | Zeile 8: | ||
=== $TCA === | === $TCA === | ||
| + | |||
| + | === Variablen in Extensions === | ||
| + | |||
| + | <pre> | ||
| + | class tx_wfqbe_results { | ||
| + | |||
| + | var $conf; | ||
| + | var $cObj; | ||
| + | var $pibase; | ||
| + | |||
| + | function main($conf, $cObj, $pibase) { | ||
| + | $this->conf=$conf; | ||
| + | $this->cObj = $cObj; | ||
| + | $this->pibase = $pibase; | ||
| + | } | ||
| + | |||
| + | function myFunction(){} | ||
| + | ... | ||
| + | </pre> | ||
Version vom 5. Mai 2007, 08:19 Uhr
Zugriff auf globale Variablen
Wichtige globale Variablen
$TSFE
Das TypoScript Frontend ist als Objekt in der globalen Variable $TSFE für Plugins verfügbar. Es enthält einige Informationen, Methoden und Objekte zur Steuerung des kompletten Frontend Renderings.
$TCA
Variablen in Extensions
class tx_wfqbe_results {
var $conf;
var $cObj;
var $pibase;
function main($conf, $cObj, $pibase) {
$this->conf=$conf;
$this->cObj = $cObj;
$this->pibase = $pibase;
}
function myFunction(){}
...