本文整理汇总了PHP中myDbHelper::alternativeCon方法的典型用法代码示例。如果您正苦于以下问题:PHP myDbHelper::alternativeCon方法的具体用法?PHP myDbHelper::alternativeCon怎么用?PHP myDbHelper::alternativeCon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myDbHelper
的用法示例。
在下文中一共展示了myDbHelper::alternativeCon方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: alternativeCon
public static function alternativeCon($con, $queryDB = kQueryCache::QUERY_DB_UNDEFINED)
{
if ($con === null) {
$con = myDbHelper::alternativeCon($con);
}
if ($con === null) {
$con = myDbHelper::getConnection(myDbHelper::DB_HELPER_CONN_PROPEL3);
}
return $con;
}
示例2: alternativeCon
public static function alternativeCon($con)
{
if ($con === null) {
$con = myDbHelper::alternativeCon($con);
}
if ($con === null) {
$con = myDbHelper::getConnection(myDbHelper::DB_HELPER_CONN_PROPEL3);
}
return $con;
}
示例3: alternativeCon
public static function alternativeCon($con, $queryDB = kQueryCache::QUERY_DB_UNDEFINED)
{
if ($con === null) {
switch ($queryDB) {
case kQueryCache::QUERY_DB_MASTER:
$con = myDbHelper::getConnection(myDbHelper::DB_HELPER_CONN_MASTER);
break;
case kQueryCache::QUERY_DB_SLAVE:
$con = myDbHelper::getConnection(myDbHelper::DB_HELPER_CONN_PROPEL2);
break;
}
}
if ($con === null) {
$con = myDbHelper::alternativeCon($con);
}
if ($con === null) {
$con = Propel::getConnection(MetadataProfilePeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
return $con;
}
示例4: alternativeCon
public static function alternativeCon($con)
{
if ($con === null) {
$con = myDbHelper::alternativeCon($con);
}
if ($con === null) {
$con = Propel::getConnection(PermissionPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
return $con;
}
示例5: alternativeCon
public static function alternativeCon($con)
{
if ($con === null) {
$con = myDbHelper::alternativeCon($con);
}
if ($con === null) {
$con = Propel::getConnection(GenericDistributionProviderActionPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
return $con;
}
示例6: alternativeCon
public static function alternativeCon($con)
{
if ($con === null) {
$con = myDbHelper::alternativeCon($con);
}
if ($con === null) {
$con = Propel::getConnection(flavorParamsConversionProfilePeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
return $con;
}