Elgg\Database::getServerVersion PHP Метод

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

Get the server version number
public getServerVersion ( string $type ) : string
$type string Connection type (Config constants, e.g. Config::READ_WRITE)
Результат string Empty if version cannot be determined
    public function getServerVersion($type)
    {
        $driver = $this->getConnection($type)->getWrappedConnection();
        if ($driver instanceof ServerInfoAwareConnection) {
            return $driver->getServerVersion();
        }
        return null;
    }