本文整理汇总了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>";