Contains methods which deal with the response sent to the client

Class Methods

The following methods can be invoked on instances of this class.

setContentType(mixed strContentType)

Sets the content type header

getContentType()

Returns the current content type header

setClientCacheExpiry(int iExpiryTimeSeconds)

Sets client cache expiry at the clients user agent / browser

getClientCacheExpiry()

Returns client cache expiry

clientCacheFile(mixed strFileName)

Performs Last-Modified and ETag client validators for caching for a specified file

clientCacheParameters(mixed iModifiedTimeStamp, string strETag)

Performs Last-Modified and ETag client validators for caching

disableOutputModification()

Disables url rewriting

setEnableRewrite(bool bEnableRewrite)

Should the output html be rewritten to contain metadata and other tags

getEnableRewrite()

Returns the current setting of whether the html should be rewritten

setShouldHaveEditLink(mixed bShouldHaveEditLink)

write(string str)

Writes a string to output

writeln(string str)

Writes a line to output

writeFile(mixed strFile, bool bSetHeaders, mixed bAttachment)

Renders a file to output

addRewriteFunction(array arrFunction)

Adds a function to rewrite the contents of the output buffer before sending

rewriteURLs(string strHTML)

Rewrites URLs relative to the domain

start()

Starts output buffering
Internal method

rewrite(mixed strResponse)

end()

Finishes the response

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class