Class: atkOutput
Source Location: /ui/class.atkoutput.inc
Class atkOutput
Class Overview
|
Outputbuffering class.
Any output sent to the browser should be directed through the atkOutput class. Among other things, it buffers debugging output and errormessages, and displays them below the actual output. If $config_output_gzip is set to true, all output is sent gzipped to the browser (saves bandwith). If $config_mailreport is set to a valid email address, this class also takes care of sending error reports to the email address, if any errors occurred during script execution. The atkOutput class is a singleton. The one-and-only instance should be retrieved with the getInstance() method.
Located in /ui/class.atkoutput.inc [line 39]
Wiki documentation
Author(s):
Information Tags:
|
Properties
|
Methods
|
Property Summary
| mixed |
$m_raw |
Store raw output data. |
Method Summary
| String |
gzip() |
Gzip a piece of text. |
| void |
output() |
Output regular text to the browser. |
| void |
rawoutput() |
Output raw, headerless text to the browser. If this method is called, all regular output is suppressed and the contents of the rawoutput is passed as-is to the browser when outputFlush() is called. |
Properties
Store regular output data.
API Tags:
Store raw output data.
API Tags:
Methods
Retrieve the one-and-only atkOutput instance.
API Tags:
| Return: | The instance. |
| Access: | public |
static void sendNoCacheHeaders(
)
|
|
Send no cache headers to the browser.
API Tags:
Display the debug statements
API Tags:
| Return: | htmlcode with debugging |
| Access: | public |
String gzip(
String
$contents
)
|
|
Gzip a piece of text.
Called internally by atkOutput when $config_output_gzip is set to true, but can be used by other scripts too, if they need to gzip some data.
Parameters:
|
String |
$contents: |
The string to gzip. |
API Tags:
| Return: | The gzipped string. |
| Access: | public |
void output(
String
$txt
)
|
|
Output regular text to the browser.
Parameters:
|
String |
$txt: |
The text to output. |
API Tags:
void outputFlush(
[boolean
$nocache = true], [int
$lastmodificationstamp = ""], [string
$charset = ""]
)
|
|
Send all output to the browser.
Parameters:
|
boolean |
$nocache: |
If true, sends no-cache headers to the browser, so the browser will not cache the output in its browsercache. |
|
int |
$lastmodificationstamp: |
Timestamp of last modification. If set, a last-modified header containing this stamp will be sent to the browser. If $nocache is true, this parameter is ignored. |
|
string |
$charset: |
The character set |
API Tags:
void rawoutput(
String
$txt
)
|
|
Output raw, headerless text to the browser. If this method is called, all regular output is suppressed and the contents of the rawoutput is passed as-is to the browser when outputFlush() is called.
Parameters:
|
String |
$txt: |
The text to output. |
API Tags:
void sendCachingHeaders(
[timestamp
$lastmodificationstamp = ''], [bool
$nocache = true]
)
|
|
Send the caching headers
Parameters:
|
timestamp |
$lastmodificationstamp: |
Timestamp of the last modification |
|
bool |
$nocache: |
Send cache headers? |
API Tags: