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));
}
}