@@ -6,6 +6,9 @@ discard block |
||
| 6 | 6 | public $dbs = array(); |
| 7 | 7 | public $latest_schema = 23; |
| 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) { |
@@ -131,6 +134,9 @@ discard block |
||
| 131 | 134 | return true; |
| 132 | 135 | } |
| 133 | 136 | |
| 137 | + /** |
|
| 138 | + * @param string $table |
|
| 139 | + */ |
|
| 134 | 140 | public function tableExists($table) |
| 135 | 141 | { |
| 136 | 142 | global $globalDBdriver, $globalDBname; |
@@ -180,6 +186,11 @@ discard block |
||
| 180 | 186 | /* |
| 181 | 187 | * Check if index exist |
| 182 | 188 | */ |
| 189 | + |
|
| 190 | + /** |
|
| 191 | + * @param string $table |
|
| 192 | + * @param string $index |
|
| 193 | + */ |
|
| 183 | 194 | public function indexExists($table,$index) |
| 184 | 195 | { |
| 185 | 196 | global $globalDBdriver, $globalDBname; |
@@ -225,6 +236,11 @@ discard block |
||
| 225 | 236 | * Check if a column name exist in a table |
| 226 | 237 | * @return Boolean column exist or not |
| 227 | 238 | */ |
| 239 | + |
|
| 240 | + /** |
|
| 241 | + * @param string $table |
|
| 242 | + * @param string $name |
|
| 243 | + */ |
|
| 228 | 244 | public function checkColumnName($table,$name) |
| 229 | 245 | { |
| 230 | 246 | $query = "SELECT * FROM ".$table." LIMIT 0"; |