本文整理匯總了PHP中DatabaseConnection::version方法的典型用法代碼示例。如果您正苦於以下問題:PHP DatabaseConnection::version方法的具體用法?PHP DatabaseConnection::version怎麽用?PHP DatabaseConnection::version使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DatabaseConnection
的用法示例。
在下文中一共展示了DatabaseConnection::version方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: populateServerState
private function populateServerState(&$state, Oxygen_Http_Request $request)
{
$state['phpVersion'] = PHP_VERSION;
$state['phpVersionId'] = PHP_VERSION_ID;
$state['databaseDriver'] = $this->connection->databaseType();
$state['databaseDriverVersion'] = $this->connection->version();
$state['databaseTablePrefix'] = $this->connection->tablePrefix();
$state['memoryLimit'] = $this->environment->getMemoryLimit();
$state['processArchitecture'] = strlen(decbin(~0));
// Results in 32 or 62.
$state['internalIp'] = isset($request->server['SERVER_ADDR']) ? $request->server['SERVER_ADDR'] : null;
$state['uname'] = php_uname();
$state['hostname'] = php_uname('n');
$state['os'] = PHP_OS;
$state['windows'] = DIRECTORY_SEPARATOR === '\\';
}
示例2: version
public function version()
{
return $this->connection->version();
}