本文整理汇总了PHP中GetGlobalConnectionOptions函数的典型用法代码示例。如果您正苦于以下问题:PHP GetGlobalConnectionOptions函数的具体用法?PHP GetGlobalConnectionOptions怎么用?PHP GetGlobalConnectionOptions使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetGlobalConnectionOptions函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetConnectionOptions
function GetConnectionOptions()
{
$result = GetGlobalConnectionOptions();
$result['client_encoding'] = 'utf8';
GetApplication()->GetUserAuthorizationStrategy()->ApplyIdentityToConnectionOptions($result);
return $result;
}
示例2: GetConnectionOptions
function GetConnectionOptions()
{
$result = GetGlobalConnectionOptions();
$result['client_encoding'] = 'utf8';
return $result;
}
示例3: GetConnectionOptions
function GetConnectionOptions()
{
$result = GetGlobalConnectionOptions();
GetApplication()->GetUserAuthorizationStrategy()->ApplyIdentityToConnectionOptions($result);
return $result;
}
示例4: GetIdentityCheckStrategy
function GetIdentityCheckStrategy()
{
return new TableBasedIdentityCheckStrategy(new MyPDOConnectionFactory(), GetGlobalConnectionOptions(), 'atig_users', 'user_name', 'user_password', 'MD5');
}
示例5: get_param
<?php
$debug = false;
function get_param($parametro)
{
if (isset($_POST[$parametro])) {
$param_val = $_POST[$parametro];
} elseif (isset($_GET[$parametro])) {
$param_val = $_GET[$parametro];
}
return $param_val;
}
if ($debug) {
ini_set('display_errors', 'On');
error_reporting(E_ALL);
} else {
ini_set('display_errors', 'Off');
error_reporting(0);
}
// Conectamos a la base de datos
include_once dirname(__FILE__) . '/' . 'phpgen_settings.php';
$dbo = GetGlobalConnectionOptions();
//echo "<!--p>\nhost=" . $dbo['server'] . "\ndbname=" . $dbo['database'] . "\nuser=" . $dbo['username'] . "\npassword=" . $dbo['password'] . "\n<p-->\n";
$dbc = pg_pconnect('host=' . $dbo['server'] . ' dbname=' . $dbo['database'] . ' user=' . $dbo['username'] . ' password=' . $dbo['password']);
if (!$dbc) {
if ($debug) {
echo '<h3>Imposible conectar a la Base de Datos</h3>';
}
exit;
}
示例6: GetIdentityCheckStrategy
function GetIdentityCheckStrategy()
{
return new TableBasedIdentityCheckStrategy(new MyConnectionFactory(), GetGlobalConnectionOptions(), 'staff', 'username', 'password', 'SHA256');
}
示例7: GetIdentityCheckStrategy
function GetIdentityCheckStrategy()
{
return new TableBasedIdentityCheckStrategy(new MySqlIConnectionFactory(), GetGlobalConnectionOptions(), 'phpgen_users', 'user_name', 'user_password', 'SHA1');
}