MetaModels\Helper\TableManipulation::checkTableExists PHP Method

checkTableExists() public static method

Checks whether the given table exists.
public static checkTableExists ( string $strTableName ) : void
$strTableName string The table name to check.
return void
    public static function checkTableExists($strTableName)
    {
        self::checkTablename($strTableName);
        if (!self::getDB()->tableExists($strTableName, null, true)) {
            throw new \Exception(sprintf($GLOBALS['TL_LANG']['ERR']['tableDoesNotExist'], $strTableName));
        }
    }