Riferimenti per il file media/scripts/example_callfunction.php

Vai al codice sorgente di questo file.

Composti

class  user_various

Funzioni

 user_reverseString ($content, $conf)
 user_printTime ($content, $conf)


Documentazione delle funzioni

user_printTime content,
conf
 

Simply outputting the current time in red letters.

Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Custom Dynamic Co.../Mixing cached and.../" This TypoScript configuration will also demonstrate it:

includeLibs.something = media/scripts/example_callfunction.php page = PAGE page.10 = USER_INT page.10 { userFunc = user_printTime }

Parametri:
string Empty string (no content to process)
array TypoScript configuration
Restituisce:
string HTML output, showing the current server time.

Definizione alla linea 90 del file example_callfunction.php.

Riferimenti color.

user_reverseString content,
conf
 

Call custom function from TypoScript for data processing

Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Custom Dynamic Co.../Passing a string.../" This TypoScript configuration will also demonstrate it:

includeLibs.something = media/scripts/example_callfunction.php page = PAGE page.10 = TEXT page.10 { value = Hello World preUserFunc = user_reverseString preUserFunc.uppercase = 1 }

Parametri:
string When custom functions are used for data processing the $content variable will hold the value to be processed. When functions are meant to just return some generated content this variable is empty.
array TypoScript properties passed on to this function.
Restituisce:
string The input string reversed. If the TypoScript property "uppercase" was set it will also be in uppercase.

Definizione alla linea 65 del file example_callfunction.php.

Riferimenti $conf, e $content.


Generato il Thu Jan 19 15:18:29 2006 per TYPO3 versione 3.8.1 da  doxygen 1.4.6