|
TYPO3 API
SVNRelease
|
Go to the source code of this file.
Classes | |
| class | user_various |
Functions | |
| user_reverseString ($content, $conf) | |
| user_printTime ($content, $conf) | |
| 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 }
| string | Empty string (no content to process) |
| array | TypoScript configuration |
Definition at line 90 of file example_callfunction.php.
| user_reverseString | ( | $ | content, |
| $ | conf | ||
| ) |
USER cObject EXAMPLE FILE
This is an example of how to use your own functions and classes directly from TYPO3. Used in the "testsite" package
Revised for TYPO3 3.6 June/2003 by Kasper Skårhøj XHTML compliant
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 }
| 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. |
Definition at line 65 of file example_callfunction.php.
References $content.
1.7.5.1