本文整理匯總了PHP中ps_DB::_clone方法的典型用法代碼示例。如果您正苦於以下問題:PHP ps_DB::_clone方法的具體用法?PHP ps_DB::_clone怎麽用?PHP ps_DB::_clone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ps_DB
的用法示例。
在下文中一共展示了ps_DB::_clone方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<br /><br />
<?php
echo $VM_LANG->_('PHPSHOP_EMAIL_SENDTO') . ": <strong>" . $user->user_email . '</strong>';
?>
<br />
</p>
<!-- Begin Payment Information -->
<?php
if (empty($auth['user_id'])) {
return;
}
if ($db->f("order_status") == "P") {
// Copy the db object to prevent it gets altered
$db_temp = ps_DB::_clone($db);
/** Start printing out HTML Form code (Payment Extra Info) **/
?>
<br />
<table width="100%">
<tr>
<td width="100%" align="center">
<?php
/**
* PLEASE DON'T CHANGE THIS SECTION UNLESS YOU KNOW WHAT YOU'RE DOING
*/
// Try to get PayPal/PayMate/Worldpay/whatever Configuration File
@(include CLASSPATH . "payment/" . $db->f("payment_class") . ".cfg.php");
$vmLogger->debug('Beginning to parse the payment extra info code...');
// Here's the place where the Payment Extra Form Code is included
// Thanks to Steve for this solution (why make it complicated...?)