Permalink
Browse files

Add possibility to overwrite the entire reponse data

  • Loading branch information...
1 parent 6b963c2 commit f422a94cbce8545eb0aaf3fcc4dcbd173eb16a38 @flack committed May 17, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/midcom/response.php
@@ -49,6 +49,11 @@ public function __set($name, $value)
$this->_data[$name] = $value;
}
+ public function set_data($data)
+ {
+ $this->_data = $data;
+ }
+
/**
* Sends the response to the client and shuts down the environment
*/

0 comments on commit f422a94

Please sign in to comment.