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

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

Return a universal unique identifier
public getUuid ( ) : string
Результат string The UUID string
    public function getUuid()
    {
        static $ids;
        if (empty($ids)) {
            $statement = $this->resConnection->executeQuery(implode(' UNION ALL ', array_fill(0, 10, "SELECT UNHEX(REPLACE(UUID(), '-', '')) AS uuid")));
            $ids = $statement->fetchAll(\PDO::FETCH_COLUMN);
        }
        return array_pop($ids);
    }