8 function mw_sgbd($sgbd_impl, $env)
9 { $this->sgbd_impl = $sgbd_impl;
13 function extention_ok() { return $this->sgbd_impl->extention_ok($this->env); }
15 function connect($host, $base, $user, $password)
16 { return $this->sgbd_impl->connect($host, $base, $user, $password);
19 function select_db($db_name)
20 { return $this->sgbd_impl->select_db($db_name);
23 # ---------------------------------------------------------------------------------
27 function table_exists($table_name)
28 { return $this->sgbd_impl->table_exists
29 ( ($prefix_codes = array_keys($this->env->bdd("table_prefix"))) ?
30 str_replace($prefix_codes, array_values($this->env->bdd("table_prefix")), $table_name)
36 { return $this->sgbd_impl->query
37 ( ($prefix_codes = array_keys($this->env->bdd("table_prefix"))) ?
38 str_replace($prefix_codes, array_values($this->env->bdd("table_prefix")), $sql)
44 { return $this->sgbd_impl->insert_id();
47 function fetch_assoc($rst)
48 { return $this->sgbd_impl->fetch_assoc($rst);
51 function free_result($rst)
52 { return $this->sgbd_impl->free_result($rst);
56 { return $this->sgbd_impl->close();
59 # ---------------------------------------------------------------------------------
63 function data_exists($data_path)
64 { return $this->sgbd_impl->data_exists($data_path);
67 function create_data($data_path)
68 { return $this->sgbd_impl->create_data($data_path);
71 function get_data($data_path, $data_id)
72 { return $this->sgbd_impl->get_data($data_path, $data_id);
75 function open_data($data_path, $FETCH = true)
76 { return $this->sgbd_impl->open_data($data_path, $FETCH);
79 function fetch_data($dh)
80 { return $this->sgbd_impl->fetch_data($dh);
83 function add_data($data_path, $data)
84 { return $this->sgbd_impl->add_data($data_path, $data);
87 function last_index($dh)
88 { return $this->sgbd_impl->last_index($dh);
91 function set_data($data_path, $data_id, $data)
92 { return $this->sgbd_impl->set_data($data_path, $data_id, $data);
95 function del_data($data_path, $data_id)
96 { return $this->sgbd_impl->del_data($data_path, $data_id);
99 function close_data($dh)
100 { return $this->sgbd_impl->close_data($dh);
103 function remove_data($data_path)
104 { return $this->sgbd_impl->remove_data($data_path);