Interface Yiisoft\Db\Connection\ServerInfoInterface
| Implemented by | Yiisoft\Db\Driver\Pdo\PdoServerInfo |
|---|
Should be implemented by a class that provides information about the database server.
Public 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 version_compare(). | Yiisoft\Db\Connection\ServerInfoInterface |
Method Details
Returns the server's session timezone.
| public abstract getTimezone( boolean $refresh = false ): string | ||
| $refresh | boolean |
Whether to reload the server's session timezone. If |
public function getTimezone(bool $refresh = false): string;
Returns a server version as a string comparable by version_compare().
| public abstract getVersion( ): string |
public function getVersion(): string;
Signup or Login in order to comment.