8 function mw_sgbd($sgbd_impl, $env){
9 $this->sgbd_impl = $sgbd_impl;
13 function extention_ok(){
14 return $this->sgbd_impl->extention_ok($this->env);
17 function connect($host, $base, $user, $password){
18 return $this->sgbd_impl->connect($host, $base, $user, $password);
21 function select_db($db_name){
22 return $this->sgbd_impl->select_db($db_name);
25 # ---------------------------------------------------------------------------------
29 function table_exists($table_name){
30 return $this->sgbd_impl->table_exists(
31 ($prefix_codes = array_keys($this->env->bdd("table_prefix"))) ?
32 str_replace($prefix_codes, array_values($this->env->bdd("table_prefix")), $table_name)
38 return $this->sgbd_impl->query(
39 ($prefix_codes = array_keys($this->env->bdd("table_prefix"))) ?
40 str_replace($prefix_codes, array_values($this->env->bdd("table_prefix")), $sql)
46 return $this->sgbd_impl->insert_id();
49 function fetch_assoc($rst){
50 return $this->sgbd_impl->fetch_assoc($rst);
53 function free_result($rst){
54 return $this->sgbd_impl->free_result($rst);
58 return $this->sgbd_impl->close();
61 # ---------------------------------------------------------------------------------
65 function data_exists($data_path){
66 return $this->sgbd_impl->data_exists($data_path);
69 function create_data($data_path){
70 return $this->sgbd_impl->create_data($data_path);
73 function get_data($data_path, $data_id){
74 return $this->sgbd_impl->get_data($data_path, $data_id);
77 function open_data($data_path, $FETCH = true){
78 return $this->sgbd_impl->open_data($data_path, $FETCH);
81 function fetch_data($dh){
82 return $this->sgbd_impl->fetch_data($dh);
85 function add_data($data_path, $data){
86 return $this->sgbd_impl->add_data($data_path, $data);
89 function last_index($dh){
90 return $this->sgbd_impl->last_index($dh);
93 function set_data($data_path, $data_id, $data){
94 return $this->sgbd_impl->set_data($data_path, $data_id, $data);
97 function del_data($data_path, $data_id){
98 return $this->sgbd_impl->del_data($data_path, $data_id);
101 function close_data($dh){
102 return $this->sgbd_impl->close_data($dh);
105 function remove_data($data_path){
106 return $this->sgbd_impl->remove_data($data_path);