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

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

Return the next autoincrement ID of a table
public getNextId ( string $strTable ) : integer
$strTable string The table name
Результат integer The autoincrement ID
    public function getNextId($strTable)
    {
        $statement = $this->resConnection->executeQuery('SHOW TABLE STATUS LIKE ' . $this->resConnection->quote($strTable));
        $status = $statement->fetch(\PDO::FETCH_ASSOC);
        return $status['Auto_increment'];
    }