protected static function checkTableName($tableName, $con=NULL)
    {
        $connection = self::checkConnection($con);

        $query = $connection->query("SELECT 1 FROM {$tableName} LIMIT 1");
        if($query !== false)
        {
            return $tableName;
        }
        throw new TableDoesNotExistException();
    }
protected static function checkTableName($tableName, $con=NULL)
    {
        $connection = self::checkConnection($con);

        $query = $connection->query("SELECT 1 FROM {$tableName} LIMIT 1");
        if($query !== false)
        {
            return $tableName;
        }
        throw new TableDoesNotExistException();
    }
protected static function checkTableName ( $ tableName , $ con = NULL ) { $ connection = self :: checkConnection ( $ con ) ; $ query = $ connection -> query ( "SELECT 1 FROM {$tableName} LIMIT 1" ) ; if ( $ query !== false ) { return $ tableName ; } throw new TableDoesNotExistException ( ) ; }
checkTableName Return the table name

@param  $tablename
@param  $con

@return string
checkTableName Return the table name