Example #1
0
 /**
  * @param string $resource
  */
 public function __construct($resource)
 {
     parent::__construct($resource);
     $this->session->access->delete = true;
     $db = Combine\Registry::getDbConnection();
     $this->db = $db->getAdapter();
 }
Example #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();
 }
Example #3
0
 /**
  * @param string $resource
  */
 public function __construct($resource)
 {
     parent::__construct($resource);
     $this->db = Registry::getDbConnection()->getAdapter();
     $this->session->form->controls = array();
 }