本文整理汇总了PHP中DatabaseConnection::tablePrefix方法的典型用法代码示例。如果您正苦于以下问题:PHP DatabaseConnection::tablePrefix方法的具体用法?PHP DatabaseConnection::tablePrefix怎么用?PHP DatabaseConnection::tablePrefix使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DatabaseConnection
的用法示例。
在下文中一共展示了DatabaseConnection::tablePrefix方法的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: tablePrefix
public function tablePrefix($table = 'default')
{
return $this->connection->tablePrefix($table);
}