0 follower

Interface Yiisoft\Db\Connection\ServerInfoInterface

Implemented byYiisoft\Db\Driver\Pdo\PdoServerInfo

Should be implemented by a class that provides information about the database server.

Public Methods

Hide inherited methods

Method Description Defined By
getTimezone() Returns the server's session timezone. Yiisoft\Db\Connection\ServerInfoInterface
getVersion() Returns a server version as a string comparable by {@see version_compare()}. Yiisoft\Db\Connection\ServerInfoInterface

Method Details

Hide inherited methods

getTimezone() public abstract method

Returns the server's session timezone.

public abstract string getTimezone ( boolean $refresh false )
$refresh boolean

Whether to reload the server's session timezone. If false, the timezone fetched before will be returned if available.

                public function getTimezone(bool $refresh = false): string;

            
getVersion() public abstract method

Returns a server version as a string comparable by {@see version_compare()}.

public abstract string getVersion ( )

                public function getVersion(): string;