Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

curScript

Method:

SetCustomOutput

static void SetCustomOutput(string outputFunction)

Installs function for redirecting script output

Description:

This method can be used to install a custom "callback" output: after this call, when the print command (or $ or $...$ commands) are invoked the function "outputFunction" is called instead of the simple "print".

The custom function must have the following prototype:

function void myFunc(string text)

and remains installed only during the current script

Parameters:
outputFunction

the name of the custom function

Notes:

Example:

function void PrintRed(string text)
{
	print('<font color="red">')
	print(text)
	print('</font>')
}
curScript.SetCustomOutput("PrintRed")

the above code causes all output strings to be printed in red text color.

To reinstall the default output function ("print") call the method SetStandardOutput

See also:

GetCustomOutput, SetStandardOutput

Implementation:
C
 

Return to the curScript class