本文整理匯總了PHP中Result::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Result::init方法的具體用法?PHP Result::init怎麽用?PHP Result::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Result
的用法示例。
在下文中一共展示了Result::init方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: run
public function run($force = false)
{
if (!$this->_run || $force) {
if (strlen(trim($this->_query)) < 1) {
$this->build();
}
try {
$stmnt = null;
$stmnt = $this->_pshd->prepare($this->_query);
$stmnt->execute($this->_parameters);
} catch (\Exception $e) {
$this->_pshd->triggerError($this->_query, $this->_parameters, $e);
return $this;
}
parent::init($stmnt, $this->_removePagingEnable);
}
$this->_run = true;
return $this;
}
示例2: Result
if ('marketingconference' == 'marketingconference') {
echo 333;
exit;
}
if (is_dir('/www/marketingconference')) {
echo 11;
exit;
} else {
echo 22;
exit;
}
exit;
require_once '../ebusclient/Result.php';
//1、取得MSG參數,並利用此參數值生成驗證結果對象
$tResult = new Result();
$tResponse = $tResult->init($_POST['MSG']);
if ($tResponse->isSuccess()) {
//2、、支付成功
print "TrxType = [" . $tResponse->getValue("TrxType") . "]<br/>";
print "OrderNo = [" . $tResponse->getValue("OrderNo") . "]<br/>";
print "Amount = [" . $tResponse->getValue("Amount") . "]<br/>";
print "BatchNo = [" . $tResponse->getValue("BatchNo") . "]<br/>";
print "VoucherNo = [" . $tResponse->getValue("VoucherNo") . "]<br/>";
print "HostDate = [" . $tResponse->getValue("HostDate") . "]<br/>";
print "HostTime = [" . $tResponse->getValue("HostTime") . "]<br/>";
print "MerchantRemarks = [" . $tResponse->getValue("MerchantRemarks") . "]<br/>";
print "PayType = [" . $tResponse->getValue("PayType") . "]<br/>";
print "NotifyType = [" . $tResponse->getValue("NotifyType") . "]<br/>";
} else {
//3、失敗
print "<br>ReturnCode = [" . $tResponse->getReturnCode() . "]<br>";