BUG 0000 adding dashboard initial module

This commit is contained in:
Erik Amaru Ortiz
2011-10-28 13:02:22 -04:00
parent 60d79ab34d
commit 89b9dbab56
7 changed files with 427 additions and 36 deletions

View File

@@ -17,6 +17,8 @@ class HttpProxyController {
* @var object - private object to store the http request data
*/
private $__request__;
public $jsonResponse = true;
private $sendResponse = true;
/**
@@ -81,6 +83,11 @@ class HttpProxyController {
{
try {
$result = $this->$name($this->__request__);
if (!$this->jsonResponse) {
return null;
}
if( ! $result )
$result = $this->__data__;
@@ -119,6 +126,11 @@ class HttpProxyController {
$this->__request__ = $data;
}
public function setJsonResponse($bool)
{
$this->jsonResponse = $bool;
}
/**
* Send response to client
*