Go to the source code of this file.
Classes | |
class | user_various |
Example of calling a method in a PHP class from TypoScript. More... | |
Functions | |
user_reverseString ($content, $conf) | |
Call custom function from TypoScript for data processing. | |
user_printTime ($content, $conf) | |
Simply outputting the current time in red letters. |
|
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.typeNum=0 page.10 = USER_INT page.10 { userFunc = user_printTime }
Definition at line 92 of file example_callfunction.php. 00092 { 00093 return '<font color="red">Dynamic time: '.date('H:i:s').'</font><br />'; 00094 }
|
|
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.typeNum=0 page.10 = TEXT page.10 { value = Hello World preUserFunc = user_reverseString preUserFunc.uppercase = 1 }
Definition at line 66 of file example_callfunction.php. References $content. 00066 { 00067 $content = strrev($content); 00068 if ($conf['uppercase']) { 00069 $content=strtoupper($content); 00070 } 00071 return $content; 00072 }
|