Represents the response sent back to the browser.
Located in /Response.php (line 35)
Constructor, creates a new Ismo_Core_Response.
Adds the specified cookie to the response.
This method can be called multiple times to set more than one cookie or to modify an already set one. Returns true if the adding was successful, false otherwise.
Adds a response header with the given name and value.
This method allows response headers to have multiple values. Returns true if the header could be added, false otherwise. False will be returned f.g. when the headers have already been sent. The replace parameter indicates if an already existing header with the same name should be replaced or not.
Deletes the specified cookie from the response.
Sends an error response to the client using the specified status code.
Sends an error response to the client using the specified status code. This will create a page that looks like an HTML-formatted server error page containing the specifed message (if any), setting the content type to "text/html", leaving cookies and other headers unmodified.
If the headers have already been sent this method returns false otherwise true. After this method the response should be considered commited, i.e. both headers and data have been sent to the client.
Sends a temporary redirect respones to the client using the specifed redirect URL.
If the headers have already been sent this method returns false otherwise true. After this method the response should be considered commited.
Examples:
Redirects the browser to http://a.b.c using an Ismo_Core_Url instance.
- $u = new Ismo_Core_Url("http://a.b.c");
- $response->sendRedirect($u);
Redirects the browser to http://d.e.f using a string.
- $response->sendRedirect("http://d.e.f");
Sets the status code for this request.
Sets the status code for this response. This method is used to set the return status code when there is no error (for example, for the status codes SC_OK or SC_MOVED_TEMPORARILY). If there is an error, and the caller wishes to provide a message for the response, the sendError() method should be used instead.
Documentation generated on Mon, 14 Jun 2004 11:59:35 +0200 by phpDocumentor 1.3.0RC3