MetaModels\Helper\TableManipulation::checkTablename PHP Method

checkTablename() public static method

Checks whether the given table name is valid.
public static checkTablename ( string $strTableName ) : void
$strTableName string The table name to check.
return void
    public static function checkTablename($strTableName)
    {
        if (!self::isValidTablename($strTableName)) {
            throw new \Exception(sprintf($GLOBALS['TL_LANG']['ERR']['invalidTableName'], $strTableName));
        }
    }