gin for database connection * @param string $pwd Password for database connection * @param string $db Database name * @param string $prefix Tables prefix * * @return bool */ public static function hasTableWithSamePrefix($server, $user, $pwd, $db, $prefix) { return call_user_func_array(array(Db::getClass(), 'hasTableWithSamePrefix'), array($server, $user, $pwd, $db, $prefix)); } /** * Tries to connect to the database and create a table (checking creation privileges). * * @param string $server * @param string $user * @param string $pwd * @param string $db * @param string $prefix * @param string|null $engine Table engine * * @return bool|string True, false or error */ public static function checkCreatePrivilege($server, $user, $pwd, $db, $prefix, $engine = null) { return call_user_func_array(array(Db::getClass(), 'checkCreatePrivilege'), array($server, $user, $pwd, $db, $prefix, $engine)); } /** * Checks if auto increment value and offset is 1. * * @param string $server * @param string $user * @param string $pwd * * @return bool */ public static function checkAutoIncrement($server, $user, $pwd) { return call_user_func_array(array(Db::getClass(), 'checkAutoIncrement'), array($server, $user, $pwd)); } /** * Get used link instance. * * @return PDO|mysqli|resource Resource */ public function getLink() { return $this->link; } }