@@ -6,6 +6,9 @@ discard block |
||
6 | 6 | public $dbs = array(); |
7 | 7 | public $latest_schema = 36; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $dbname |
|
11 | + */ |
|
9 | 12 | public function __construct($dbc = null,$dbname = null,$user = null,$pass = null) { |
10 | 13 | global $globalDBdriver; |
11 | 14 | if ($dbc === null) { |
@@ -132,6 +135,9 @@ discard block |
||
132 | 135 | return true; |
133 | 136 | } |
134 | 137 | |
138 | + /** |
|
139 | + * @param string $table |
|
140 | + */ |
|
135 | 141 | public function tableExists($table) |
136 | 142 | { |
137 | 143 | global $globalDBdriver, $globalDBname; |
@@ -181,6 +187,11 @@ discard block |
||
181 | 187 | /* |
182 | 188 | * Check if index exist |
183 | 189 | */ |
190 | + |
|
191 | + /** |
|
192 | + * @param string $table |
|
193 | + * @param string $index |
|
194 | + */ |
|
184 | 195 | public function indexExists($table,$index) |
185 | 196 | { |
186 | 197 | global $globalDBdriver, $globalDBname; |
@@ -223,6 +234,10 @@ discard block |
||
223 | 234 | return $columns; |
224 | 235 | } |
225 | 236 | |
237 | + /** |
|
238 | + * @param string $table |
|
239 | + * @param string $column |
|
240 | + */ |
|
226 | 241 | public function getColumnType($table,$column) { |
227 | 242 | $select = $this->db->query('SELECT '.$column.' FROM '.$table); |
228 | 243 | $tomet = $select->getColumnMeta(0); |
@@ -233,6 +248,11 @@ discard block |
||
233 | 248 | * Check if a column name exist in a table |
234 | 249 | * @return Boolean column exist or not |
235 | 250 | */ |
251 | + |
|
252 | + /** |
|
253 | + * @param string $table |
|
254 | + * @param string $name |
|
255 | + */ |
|
236 | 256 | public function checkColumnName($table,$name) |
237 | 257 | { |
238 | 258 | global $globalDBdriver, $globalDBname; |