Contao\Database::tableExists PHP Метод

tableExists() публичный Метод

Determine if a particular database table exists
public tableExists ( string $strTable, string $strDatabase = null, boolean $blnNoCache = false ) : boolean
$strTable string The table name
$strDatabase string The optional database name
$blnNoCache boolean If true, the cache will be bypassed
Результат boolean True if the table exists
    public function tableExists($strTable, $strDatabase = null, $blnNoCache = false)
    {
        if ($strTable == '') {
            return false;
        }
        return in_array($strTable, $this->listTables($strDatabase, $blnNoCache));
    }