示例#1
0
文件: Db.php 项目: shabuninil/combine
 /**
  * @param string $resource
  */
 public function __construct($resource)
 {
     parent::__construct($resource);
     $this->session->access->delete = true;
     $db = Combine\Registry::getDbConnection();
     $this->db = $db->getAdapter();
 }
示例#2
0
 public function __construct()
 {
     $this->resource = !empty($_SERVER['HTTP_X_CMB_RESOURCE']) ? $_SERVER['HTTP_X_CMB_RESOURCE'] : '';
     $this->process = !empty($_SERVER['HTTP_X_CMB_PROCESS']) ? $_SERVER['HTTP_X_CMB_PROCESS'] : '';
     $this->db = Registry::getDbConnection()->getAdapter();
 }
示例#3
0
文件: Db.php 项目: shabuninil/combine
 /**
  * @param string $resource
  */
 public function __construct($resource)
 {
     parent::__construct($resource);
     $this->db = Registry::getDbConnection()->getAdapter();
     $this->session->form->controls = array();
 }