__construct() public method

Determines whether zLib output compression will be used.
public __construct ( ) : void
return void
示例#1
0
文件: MY_Output.php 项目: ahmatjan/lv
 public function __construct()
 {
     parent::__construct();
     // Set the super object to a local variable for use later
     //$this->CI =& get_instance();
     //$this->CI->load->model('tool/report');
 }
 public function __construct()
 {
     parent::__construct();
     // Added by Ivan Tcholakov, 24-JAN-2016.
     $this->parse_exec_vars = ENVIRONMENT !== 'production';
     //
 }
 function __construct()
 {
     parent::__construct();
     $this->final_output = '';
     //would be just set to 'null' in CI_Output
     $this->_ci_ob_level = ob_get_level();
     $this->cookies = array();
 }
示例#4
0
 function __construct()
 {
     session_start();
     parent::__construct();
     if (isset($_SESSION['logged_in']) && $_SESSION['logged_in'] == true) {
         //  set $this->is_logged_in == true if you don't want to show the cache or use it to make caches.
         // either with $_SESSION or any other logic you need to implement.
         $this->is_logged_in = true;
     }
 }
示例#5
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
 }
 function __construct()
 {
     parent::__construct();
     $this->cleanup();
 }
示例#7
0
 function __construct()
 {
     parent::__construct();
     $this->final_output = '';
 }
示例#8
0
 function __construct()
 {
     parent::__construct();
     //Se fuerza que el contenido sea UTF-8
     $this->set_content_type('text/html; charset=utf-8');
 }
示例#9
0
 function __construct()
 {
     parent::__construct();
     $this->_ci_ob_level = ob_get_level();
     $this->cookies = array();
 }