Example #1
0
 /**
  * Tests if a given table exists in current default database
  *
  * @param string $tablename Table name for which to check whether it exists
  * @param array $info Additional info, will be displayed as debug message, if a key "message" exists this will be appended to the error message
  */
 public static function tableExists($tablename, array $info = array())
 {
     self::initializeDbObj();
     $tables = self::$dbObj->admin_get_tables();
     return self::isArrayKey($tablename, $tables, $info);
 }