BUG 0000 adding dashboard initial module
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user