本文整理匯總了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;
}