Added Canvas 1.1.0, originally not under SCM so no historical development records...
[canvas.git] / library / Response.php
blobd3068372d7e6760f3e01bda63a6d7c3f8d61edf3
1 <?php
2 // @title Response class
3 // @author Matt Todd <matt@matttoddphoto.com>
4 // @created 2005-11-27
5 // @desc Responds to the controller
6 // @requires stdexception.php (StdException class)
8 include_once('stdexception.php');
10 class Response {
11 // public variables
12 public $response = array(); // container for the response data
13 public $error = null; // error object
15 // functions
16 public function __set($name, $value) {
17 return $this->response[$name] = $value;
19 public function __get($name) {
20 return $this->response[$name];
23 public function respond() {
24 return $this->response;
28 class ResponseException extends StdException {