コード例 #1
0
 /**
  * Creates a new class instance
  */
 private function __construct()
 {
     if (!defined('TESTSUITE')) {
         $buffer = OutputBuffering::getInstance();
         $buffer->start();
         register_shutdown_function(array('PMA\\libraries\\Response', 'response'));
     }
     $this->_header = new Header();
     $this->_HTML = '';
     $this->_JSON = array();
     $this->_footer = new Footer();
     $this->_isSuccess = true;
     $this->_isAjax = false;
     $this->_isAjaxPage = false;
     $this->_isDisabled = false;
     if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
         $this->_isAjax = true;
     }
     if (isset($_REQUEST['ajax_page_request']) && $_REQUEST['ajax_page_request'] == true) {
         $this->_isAjaxPage = true;
     }
     $this->_header->setAjax($this->_isAjax);
     $this->_footer->setAjax($this->_isAjax);
     $this->_CWD = getcwd();
 }
コード例 #2
0
ファイル: Response.php プロジェクト: nijel/phpmyadmin
 /**
  * Set the ajax flag to indicate whether
  * we are servicing an ajax request
  *
  * @param bool $isAjax Whether we are servicing an ajax request
  *
  * @return void
  */
 public function setAjax($isAjax)
 {
     $this->_isAjax = (bool) $isAjax;
     $this->_header->setAjax($this->_isAjax);
     $this->_footer->setAjax($this->_isAjax);
 }